[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem with generate-id() with stylus

Subject: Problem with generate-id() with stylus
From: Paul Terray <terray@xxxxxxxxxxxx>
Date: Fri, 18 Aug 2000 11:22:27 +0100
cv thorbj rn ravn

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()}"/>

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"/>

An extract from my xml file is :
<frame id="nb2h1u1v">
<figure size="0">
<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"/>

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.