[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.