This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: new to XSl/variable usage
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 20 May 2002 09:00:03 +0100
- Subject: RE: [xsl] new to XSl/variable usage
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> I am dong the following
>
> <xsl:for-each select="contains($objName,'"')">
>
The contains() function returns a boolean, so there's not much point
trying to iterate over it. You can only use xsl:for-each iteration to
iterate over a node-set. In other cases you need to use a recursive
template. You will find an example by searching for "replace" in the FAQ
for this list.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list