Re: [xsl] remaining part of( IF-Test...continued )

Subject: Re: [xsl] remaining part of( IF-Test...continued )
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 12 Mar 2002 12:10:09 -0700 (MST)
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


Current Thread