|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Xref numbering test
At 08:27 AM 12/16/2003, Andrew wrote:
First build a nodeset of all the <stepX>'s with their id's and how you want to number them: 1. This will only work when using XSLT 2.0, or a node-set extension function, since ordinarily (in XSLT 1.0) you cannot iterate over, or query into, a result-tree-fragment this way. 2. Even so, how is it better than simply calculating the number of each step using the same <xsl:number count="step1|step2|..." ... /> instruction, where you need it? <xsl:template match="step1|step2...">
<xsl:variable name="currentId" select="@id"/>
<xsl:for-each select="$steps">
<xsl:value-of select="step[@id = $currentId]/@number"/>
...could as easily be <xsl:template match="step1|step2..."> <xsl:number count="step1|step2....| " .../> (Look ma, no variable.) Cheers, Wendell
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
|

Cart








