This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xslt spec - or condition
- From: "Jason Macki" <jmacki at iisd dot ca>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 18 Jul 2002 15:17:29 -0500
- Subject: RE: [xsl] xslt spec - or condition
- Reply-to: xsl-list at lists dot mulberrytech dot com
The template:
<xsl:template select="chapter|appendix">
</xsl:template>
Will match both chapter and appendix elements, so you're correct when
you read the select statement as "chapter or appendix".
This means that a call to <xsl:apply-templates /> will match *both*
chapter and appendix elements to the above template (that's what they
mean by "and").
-----Original Message-----
From: subbu@boltblue.com [mailto:subbu@boltblue.com]
Sent: Thursday, July 18, 2002 10:23 AM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] xslt spec - or condition
hi
I was going through the XSLT Spec and found the following line there
"chapter|appendix matches any chapter element and any appendix element"
what catches me is that the above line reads chapter and appendix
when i would have thot that '|' would be more close to 'or' than 'and'.
i thot it shud read chapter or appendix.
can somebody explain me what i am missing?
thanks
--------------------------------------------------------------
Sent with "Me-Mail", Boltblue's FREE mobile messaging service.
http://www.boltblue.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