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

Re: sequential numbering in xslt

Subject: Re: sequential numbering in xslt
From: a kusa <akusa8@xxxxxxxxx>
Date: Tue, 12 Jan 2010 10:17:18 -0600
Re:  sequential numbering in xslt
Thanks. Its still not working so maybe I will just state what I want.
Is there any way to iterate through the XML files in the directory
using XSLT so that I can generate a new sequence at the rootnode of
each file? Or is this not possible at all with XSLT?




On 1/11/10, David Carlisle <davidc@xxxxxxxxx> wrote:
>
>
>   <xsl:if test="$documents[1]">
>
> there is the same as
>
>   <xsl:if test="$documents">
>
> or perhaps most explictly
>
>   <xsl:if test="exists($documents)">
>
> it is just checking teh remaining sequence is non empty so as to
> terminate teh recursion.
>
> The recursive template you have iterates along the sequence of documents
> but doesn't actually do anything with any of the documents.
> perhaps inside the
> <car seq="{$current-number}">
> you want to do something with $document[1] eg
>
> <xsl:copy-of select="$document[1]"/>
>
> instead of
>
> <xsl:copy-of select="@*|node()"/>
>
> which copies the child nodes of the current  document node from your
> initial input document, not any nodes from the documents in your
> collection sequence. as the named template doesn't chnage the current
> node so it is still the / node matched by  <xsl:template match="/">
>
> David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.