Hi,
Thanks for your answer.
But my question was bad.
The question don't use docbook here. Only xml.
I have a xml file interpreted (dynamically) by my browser (FFX)
If I use FireBug to analyse the code, I have HTML (It is a beautiful HTML GUI). That's right !
But my file is always in xml (blabla.xml).
If I have 2 HTML files, no problem with anchors.
But I would like to call a xml interpreted file from another (or the same) interpreted XML through the GUI.
For my browser, the link is blabla.html#myref.
Unfortunately, blabla.html does not exist.
Cordialement,
____________________________________________
Christopher COMPAGNON
AXA GROUP SOLUTIONS - Procurement, BI Supply
Département Solutions Business Intelligence
Domaine BI France - Reporting Opérationnel
( 01 44 45 04 16 (55 04 16)
E-mail:
____________________________________________
Pensez à l'environnement avant d'imprimer ce message
-----Message d'origine-----
De : Shlomi Fish [mailto:]
Envoyé : lundi 22 février 2010 11:37
À :
Cc : Compagnon Christopher; docbook-apps
Objet : Re: [docbook] Question about xml
On Monday 22 Feb 2010 11:20:35 Compagnon Christopher wrote:
> Hi,
>
>
>
> I have a question about xml.
Which DocBook/XML? DocBook 4 or DocBook 5?
>
> In HTML, a reference by anchor is « myfile.html#myref » and points on an
> anchor :
>
> <a name=myref >...</a>
>
That's antiquated HTML. Better use the id="..." attribute there now. (And make
sure you quote your attribute values).
>
>
> How to obtain the same comportement with xml, pointing a link to another
> part of a xml document ?
In DocBook 5, you should use <link xlink:href="#anchor"> and xml:id="anchor"
for that.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
Please reply to list if it's a mailing list post - http://shlom.in/reply .