"Jose' Matos" <[EMAIL PROTECTED]> schrieb am 14.05.04 19:13:29:
> 
>   I have disabled anchors inside the paragraphs although they there is no 
> problem with the xml convertion path. Later if needed this could be turned 
> on only for xml with just one line.
> 

Fine! I will have to test all this but it may take some time - I have to set up a 
separate chroot environment for this. I will come back on this topic.

I hope by "disabled" you don't mean really "erased". The id attribute of the anchor 
immediately after  an element should be brought "inside the element" as an id 
attribute of the element itself - then you can erase that anchor as it is not needed 
anymore.

I think you must decide how to do this in a "level" that is previous to the one you 
are doing it now: at the level of parsing the .lyx file and deciding how to export a 
LyX "token".

I think the general rule should be: titles of whatever LyX environments, be it 
sections, subsections, chapters, tables, figures, equations - whatever, those titles 
should NOT be exported as 

<element><anchor id="thetitle"><title>sometitle</title>

but as 

<element id="thetitle><title>sometitle</title>

There may be some other anchors out there, not in such context. I don't care - at the 
moment - about them. I am interested only at the anchors that hold id attributes that 
should actually be id attributes of the preceding elements.

I hope it's clear. 

>   I have now both sgml and xml working paths. It is funny because due to the 
> different defaults they present different output for the same lyx file. :-)
> 

Why not? It all depends on the DTD of the markup language. If one DTD (or, if you 
like, Jade's interpretation of a DTD) says "xrefs to anchors unsupported", but the 
other DTD (or, if you like again, some validating XML parser's interpretation of the 
DTD or schema) says "everything O.K. with xrefs to anchors", then this is a "natural" 
consequence.

>   PS: Next issue, please. ;-)

Don't worry, José - we have a long way in front of us. :-D

Did you do the same also for: <table>, <figure>, <sect1>, <sect2>, <sect3>, <chapter>, 
<equation>, <inlineequation>  and, more generally, for *every* other element? As you 
see in the title of this thread, I am talking about "elements" not only <para>'s. 
Thus, it must be:

<table id="sometableid">
<title>
Some table title
</title>
...
</table>

and NOT:

<table>
<title><anchor id="sometableid">
Some table title
</title>
...
</table>

The same goes for the other elements accordingly. I think that's enough work for the 
moment. ;-)

Thank you very much for your efforts José - we are building a fantastic application 
here!

Chris

-- 
Regards

Chris Karakas
http://www.karakas-online.de

Reply via email to