On Monday 17 May 2004 12:54, Chris Karakas wrote:
> "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.

In 1.3.4:

 <para>
<anchor id="first-par">blah blah...
  </para>

In 1.4cvs:
  <para  id = "first-par">
<!-- anchor id="first-par" -->blah blah...
  </para>

  Notice that the previous anchor is commented, that is why I called it 
disabled. :-)

> 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>

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>

Instead of
<table id="someid">
<title>...</title>
....
</table>

Is that OK with you?

> 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.

  Now the anchor id is always transfered to its parent element. This only 
happens for the first, all other are ignored.
 
[...]
> >   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:

  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é. ;-)

> 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!

  That would not be possible without the others guys in this list. 8-)

> Chris

-- 
José Abílio

LyX and docbook, a perfect match. :-)

Reply via email to