Re: [xslt] Selecting on nodeset in variable from stylesheet
- From: Elizabeth Mattijsen <liz dijkmat nl>
- To: xslt gnome org
- Subject: Re: [xslt] Selecting on nodeset in variable from stylesheet
- Date: Sun, 14 Dec 2003 22:50:54 +0100
At 15:30 -0600 12/14/03, Shaun McCance wrote:
>The whole node set vs. result tree issue always confuses beginners, and
>understandably so. Here's the basic rule: An XPath expression inside
>of a select attribute gives you a node set (except, of course, when it
>gives you a number or something else). A template always gives you a
>result tree fragment. If you variable looks like this:
>
><xsl:variable name="foo" select="some/xpath/expression"/>
Ok, fine. But if you're inside a called template with parameters,
and that template is called with a variable as a parameter, how are
you going to know inside the template whether the variable refers to
a result tree or a node-set?
Liz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]