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

Re: How many passes through the document

Subject: Re: How many passes through the document
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Sat, 22 Sep 2012 18:57:52 +0100
Re:  How many passes through the document
On Sat, Sep 22, 2012 at 6:03 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> On 22 September 2012 11:50, Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx> wrote:
>> Will the stylesheet below result in 2 passes through the document. I
>> the normal recursive descent parsing and 2 to evaluate the global
>> variable?
>
> Assuming the variable gets evaluated, then:
>
>>    <xsl:variable name="all">
>>       <xsl:apply-templates select="*"/>
>
> ...will construct a node list containing just the root element of the
> primary input document node, and then "push" it at the templates in
> the stylesheet:
>
>>    <xsl:template match="*">
>>       stuff
>
> this template will be matched, and all it does is add a text node to
> the result... so the processing started by the variable stops there.
>
Sorry for posting this crap.
I think David was right to suggest I post a complete example which I
subsequently did.

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.