This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Problem with generate-id() with stylus
- To: xsl-list at mulberrytech dot com
- Subject: Problem with generate-id() with stylus
- From: Paul Terray <terray at 4dconcept dot fr>
- Date: Fri, 18 Aug 2000 11:22:27 +0100
- Reply-To: xsl-list at mulberrytech dot com
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@4dconcept.fr
tel : 01 34 58 70 76
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list