|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: remaining part of( IF-Test...continued )
laksh vr wrote:
> hello,
> This mail is the second part of my earlier mail.I'm
> really sorry for the inconvenience.
> I'm really sorry for i've sent a mail with specifying
> my problem.
>
> My problem is the <book> element gets eliminated in
> the output altogether.
Well, the part of your stylesheet that you shared with us didn't copy the book
element to the result tree. It just appended a NOCODE attribute to what I can
only presume was an element added to the result tree prior to the invocation
of that template.
Perhaps you meant
<xsl:template match="Book">
<xsl:copy>
<xsl:if test="not(@ISBN)">
<xsl:attribute name="NOCODE">
<xsl:text>B01</xsl:text>
</xsl:attribute>
</xsl:if>
</xsl:copy>
</xsl:template>
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | personal: http://hyperreal.org/~mike/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








