This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Marking up a simple "and" condition in Boolean operations
- To: xsl-list at mulberrytech dot com
- Subject: Re: Marking up a simple "and" condition in Boolean operations
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 20 Jul 2000 00:25:43 +0100 (BST)
- References: <7B618A3866FAD1118CA30008C7244C4903EA01A7@us-bv-m05.bv.tek.com>
- Reply-To: xsl-list at mulberrytech dot com
> How do I mark up a simple *and*?
use and.
<xsl:when test="Image"> <!-- I need an "and
NegNumber" test here -->
<xsl:when test="Image and NegNumber">
although I suspect you don't need your tests at all as
it appears that what you want is
<Graphic>
<xsl:for-each select="URL|Image|NegNumber">
<xsl:attribute name="{name()}" select="."/>
</xsl:for-each>
<xsl:apply-templates select="Caption"/>
</Graphic>
(untested)
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list