[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] use variable in
Re: [xsl] use variable in
Subject: Re: [xsl] use variable in <xsl:if test=
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Fri, 1 Mar 2002 18:47:25 -0500
Assuming that you intend to test to see if there are any nodes included in
$condition:
test='$condition'
or
test='count($condition)>0'
Tom P
[Robert Sösemann]
How in the world ;-) can i use a variable in <xsl:if test=..>
<xsl:variable name="condition" select="*[.//author='C. J. Date']"/>
<xsl:template match="node()[name()=$entity]">
<xsl:if test="boolean(string($condition))">
<xsl:copy-of select="*"/>
</xsl:if>
</xsl:template>
This does not work neigther with
{$condition}
nor
anything else.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread
- Re: [xsl] use variable in <xsl:if test=, (continued)
- Mike Brown - Fri, 1 Mar 2002 20:11:54 -0700 (MST)
- Matt Gushee - Fri, 1 Mar 2002 20:07:59 -0700
- Robert Sösemann - Sat, 2 Mar 2002 09:52:43 +0100
- Peter Davis - Sat, 2 Mar 2002 02:18:50 -0800
- Thomas B. Passin - Fri, 1 Mar 2002 18:47:25 -0500 <=
- Wendell Piez - Fri, 01 Mar 2002 18:55:41 -0500
- Matt Gushee - Fri, 1 Mar 2002 17:19:47 -0700
- Robert Sösemann - Sat, 2 Mar 2002 10:04:55 +0100
- Wendell Piez - Mon, 04 Mar 2002 12:43:45 -0500
<- Previous Index Next ->
Re: [xsl] use variable in <xsl:if t, Peter Davis
Thread
Re: [xsl] use variable in <xsl:if t, Wendell Piez
Re: [xsl] use variable in <xsl:if t, Matt Gushee
Date
Re: [xsl] use variable in <xsl:if t, Wendell Piez
Month
Subject: Re: [xsl] use variable in <xsl:if test= From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Fri, 1 Mar 2002 18:47:25 -0500 |
Assuming that you intend to test to see if there are any nodes included in $condition: test='$condition' or test='count($condition)>0' Tom P [Robert Sösemann] How in the world ;-) can i use a variable in <xsl:if test=..> <xsl:variable name="condition" select="*[.//author='C. J. Date']"/> <xsl:template match="node()[name()=$entity]"> <xsl:if test="boolean(string($condition))"> <xsl:copy-of select="*"/> </xsl:if> </xsl:template> This does not work neigther with {$condition} nor anything else. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] use variable in <xsl:if t, Peter Davis | Thread | Re: [xsl] use variable in <xsl:if t, Wendell Piez |
Re: [xsl] use variable in <xsl:if t, Matt Gushee | Date | Re: [xsl] use variable in <xsl:if t, Wendell Piez |
Month |