This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: IF-Test.....continued
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 12 Mar 2002 13:24:15 -0000
- Subject: RE: [xsl] IF-Test.....continued
- Reply-to: xsl-list at lists dot mulberrytech dot com
Well, match="book" won't match an element called <Book>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of laksh vr
> Sent: 12 March 2002 11:29
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] IF-Test.....continued
>
>
> Well,i've enclosed the template rule which involves IF
> test.
>
>
> <xsl:template match="book">
> <xsl:if test="not(@ISBN)">
> <xsl:attribute name="NOCODE">
> <xsl:text>B01</xsl:text>
> </xsl:attribute>
> </xsl:if>
> </xsl:template>
>
> The Book element has the following format
> <Book NAME="book-name" AUTHOR="author-name"
> ISBN="91-6637-401-7"/>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.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