This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: a novice Q
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: a novice Q
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 7 Aug 2000 16:01:18 +0100
- Reply-To: xsl-list at mulberrytech dot com
> a XSLT novice question, and I promise this is not my home work.
> I have the following XML :
[snip]
> and the following XSL
>
> <xsl:template match="Test/Test2/Q">
> <xsl:if test=".[QT/text() = 'text 1' and AT/text() !=
> 'NULL']">
Your XPath syntax is invalid, and should be rejected (this syntax is a
carry-over from Microsoft IE5 XSL). The "." should not be followed by a
predicate. Write
<xsl:if test="QT/text() = 'text 1' and AT/text() != 'NULL'">
Mike Kay
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list