Subject: Re: [xsl] generate-id() explanation From: Florent Georges <lists@xxxxxxxxxxxx> Date: Mon, 24 May 2010 09:51:06 -0700 (PDT) |
a kusa wrote: > A generate-id() when used within an XML document on multiple > nodes, generates unique id values for each of the nodes. > Is this correct? Yes. And it is guaranteed to generate always the same ID when called on the same node. The typical example is the creation of a table of content: you pass through the entire document in a first pass, in a mode dedicated to generating the ToC, using generate-id on say, the section elements, to generate links to the sections; then you pass through the entire document a second time, to format the actual content, setting on each section the same ID used in the ToC (by calling generate-id again on the section elements). Regards, -- Florent Georges http://fgeorges.org/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] generate-id() explanation, David Carlisle | Thread | Re: [xsl] generate-id() explanation, Dimitre Novatchev |
Re: [xsl] generate-id() explanation, David Carlisle | Date | Re: [xsl] generate-id() explanation, Dimitre Novatchev |
Month |