xsl-list
[Top] [All Lists]

RE: Match Question

2003-01-20 14:55:22
Can't wait.  Any good links to what will be new with XSLT 2.0?  To busy to
really look for myself at the moment.

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Michael Kay
Sent: Monday, January 20, 2003 2:48 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Match Question


Michael Semcheski wrote:

match="z:row[(_at_)Type='Matrix']/z:row[(_at_)MatrixOpt='1']
| z:row[(_at_)Type='Matrix']/z:row[(_at_)MatrixOpt='5']
| z:row[(_at_)Type='Matrix']/z:row[(_at_)MatrixOpt='6']"
 

Try

match="z:row[(_at_)Type='Matrix']/z:row[(_at_)MatrixOpt='1' or
@MatrixOpt='5' or @MatrixOpt='6']"

for something that is a bit less cumbersome.


With XSLT 2.0 you can write

match="z:row[(_at_)Type='Matrix']/z:row[(_at_)MatrixOpt=('1', '5', '6')]"

FWIW!

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>