Subject: Re: [xsl] xsl:variable doesn't work here From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 01 Mar 2002 15:29:56 -0500 |
Instead of
<xsl:if test=".//article[.//author='C. J. Date']"> .. <xsl:copy-of select=".//article[.//author='C. J. Date']"/>
i want to store the condition in a variable condition and write
<xsl:variable name="condition">.//article[.//author='C. J. Date']</xsl:variable>
<xsl:if test="$condition"> .. <xsl:copy-of select="$condition"/>
Cheers, Wendell
But this does not work. I also tried {$condition} instead of $condition.
Whats wrong?
............................................................................ .......... ROBERT SÖSEMANN (robert.soesemann@xxxxxx)
schwärzlocherstr. 29/1 | 72070 tübingen tel : 07071 / 400 880
icq# : 100 467 870 pgp-keys : www.webspace-journey.de/pgp.asc ............................................................................ ..........
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:variable doesn't work her, Robert Sösemann | Thread | RE: [xsl] xsl:variable doesn't work, Michael Kay |
[xsl] xsl:variable doesn't work her, Robert Sösemann | Date | Re: [xsl] Can keys go out of scope?, Peter Davis |
Month |