Re: [xsl] Recursion

Subject: Re: [xsl] Recursion
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 28 May 2012 12:19:25 +0100
On 28/05/2012 11:58, Vasu Chakkera wrote:
                         <xsl:with-param name="include-tree"
                             select="concat($include-tree,'/',$doc-name)"/>

It's inconvenient/inefficient to use a string here and repeatedly concat to it and test for substrings with contains()


You want a sequence of file names so code it as a sequence of strings.


<xsl:with-param name="include-tree" as ="xs:string*" > select="$include-tree, $doc-name"/>

then you can use = rather than contains() to test if a string is in the sequence.


(not directly related to your recursion question, but treating XSD as XML input is usually considered dangerous. saxon and some other XSD processors can give you an xml view of the schema component model with all the XSD cross referencing and file splitting issues resolved by teh schema processor)


David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread