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

Re: Noob: hmm using nested templates, how do i get the

Subject: Re: Noob: hmm using nested templates, how do i get the nodes within
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 18 Sep 2003 10:03:07 +0100
can xsl otherwise be nested

   <xsl:template match="//Row">

Never start a match pattern with // (it does not do anythiung useful)

   <xsl:when test='(aaa="null")'></xsl:when>

The brackets aren't needed there but otherwise OK.
but you don't need an xsl:choose here at all.

  <xsl:choose>
  <!--Here we put nothing if nodevalue=null -->
  <xsl:when test='(NA="null")'></xsl:when>
  <xsl:otherwise><xsl:value-of select="NA"/></xsl:otherwise>
  </xsl:choose>


All of teh above can be replaced by
  <xsl:value-of select=NA[not(.='null']"/>



   <xsl:variable name="cell" select="//Row/[*]"/> <---------------Here's
   where i think i go wrong, how do i select the nodes 

You can never put a [ after a / I can't really guess what you mean
here but perhaps you mean //Row/* but that would searchg the entire
document for all teh Row elements and then make a node set of all their
children, I doubt you want that as teh result would have no connection
to the cell that you are currently processing.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.