This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: a novice Q


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]