Subject: Re: [xsl] Question about variable definition and types From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx> Date: Fri, 7 Mar 2008 12:31:56 +0100 |
The presence of the attribute "as" determines whether the value of
the variable is evaluated to a sequence or a temporary tree
[snip]
Ah.... thanks for the explanation. That clears up a lot :-)
It's worth adding the when you do as="element()+" the elements represented by that variable aren't siblings because they don't have a common parent.
<xsl:variable name="foo" as="element()+"> <a/> <b/> </xsl:variable>
here a/following-sibling::b returns false
...so it's worth bearing that in mind when deciding what the as attribute should be.
<xsl:variable name="foo" as="document-node()"> <a/> <b/> </xsl:variable>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Question about variable d, Andrew Welch | Thread | Re: [xsl] Question about variable d, Andrew Welch |
[xsl] XSL omit part of a text insid, buddhi | Date | RE: [xsl] XSL omit part of a text i, Michael Kay |
Month |