On Monday 17 May 2004 17:53, Chris Karakas wrote: > > > For sections and any other paragraph that you can set from menu that is > > correct, but for table and figures what we have now is: > > > > <table> > > <title id="someid">...</title> > > .... > > </table> > > Is that OK with you? > > No.
This can be solved but it will take a little bit more time, I will see how it can be done as I need to do some kind of multi-level analysis. This can be easily solved using an external script though. :-) > I am not even sure if an id in the title is semantically correct for > the DocBook SGML DTD - from the "feeling" of it, I would say no. Sure it is. :-) According to the TDG (Docbook: The Definitive Guide) the list of common attributes is: Arch Conformance ID Lang OS Remap Role Revision RevisionFlag UserLevel Vendor XrefLabel So we are on the safe side here. > Anyway, > I need the id in the table element (or equation, inlineequation etc. > element), because I want to use xrefs to a table (equation, > inlineequation and so on), not to a title. Sematically, you never point > to a title, rather to an element which might also have a title. Makes sense. If I don't get this for 1.4 I will get a script to do it. ;-) > > Now the anchor id is always transfered to its parent element. This > > only happens for the first, all other are ignored. > > Good. Can't you determine which anchor comes from a "title" setting in > the .lyx file and which not? Actually, only anchors that are due to > titles need to be transfered into the element as id's. Other anchors are > not relevant to our discussion here. I try to make the code as general as possible, that is why it is (almost) possible to pass another layout file, as use the docbook frontend to get xhtml without changing any LyX code. We are almost there. I know what needs to be done, though. :-) > > I forgot about equation and inline equation, but here it is easy as > > there is only one id. :-) > > > > I will do it soon. If not I will beg for help to André. ;-) > > Fine. Tell me when you are ready, I have more stuff. :-D Go on. :-) > O.K., I just could not resist: while you are looking at equation and > inlineequation, have a look at: > > http://www.karakas-online.de/forum/viewtopic.php?t=860 > > and make some thoughts for a future discussion. This cost me the whole > weekend and made me backstep to 1.2.0. I will open a new thread about it > when we are ready, but you can of course answer in that thread too. ;-) I will answer there an make copy to post here. :-) > Chris -- José Abílio LyX and docbook, a perfect match. :-)