OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]