[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Problem with generate-id() with stylus
Hello,
I'm trying to insert a list of figures at the beggining of a document, from a custom DTD to HTML. I use the following code for each figure : <xsl:template match="figure"> <a name="{generate-id()}"/> </xsl:template> and for the figurelist : <xsl:template match="figurelist"> <p>Figures :</p> <xsl:for-each select="//figure"> <a href="#{generate-id()}"> <div style="margin-top: 1em"> <xsl:apply-templates select="caption"/> </div> </a> </xsl:for-each></xsl:template> An extract from my xml file is : <frame id="nb2h1u1v"> <figure size="0"> <caption>Blablabla</caption> <graphic content="36226001.gif" notation="gif" pos="276,0" size="0" picnum="1" view="0,0,1000,1000" orient="0" depth="1" pagewide="1" width="13cm"/> </figure> </frame> However, the two generate-id() do not give the same id, so my link does not work :-( The crazy thing is that I do exactly the same thing for table, and it works... Is this a problem from the XSL processor, or am I doing something wrong ? I am using stylus and its processor for this (very good product, BTW). -- Paul Terray - terray@xxxxxxxxxxxx tel : 01 34 58 70 76 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|