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

Re: Newbie: See if a node exists!

Subject: Re: Newbie: See if a node exists!
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 7 Jun 2002 12:01:44 -0600 (MDT)
xsl does node exist
David Carlisle wrote:
>  <xsl:choose>
>   <xsl:when test="./BLOCK">
>   <xsl:call-template name="Title"/>      <------- the problem is that this
> apply-templates doesn't work
>   <xsl:apply-templates select="BOOK"/>   <------- nider does this
>   </xsl:when>
> 
> Well you haven't shown us a template called Title so we have no idea why
> that does not work,
> 
>  <xsl:apply-templates select="BOOK"/>
> 
> will work but produce nothing as BOOK will select an empty set as your
> sample input showed that tehre were no elements called BOOK, although
> there were some called Book.
> 
> David


Do you get the feeling you're wasting your time with this guy? I think this
thread accounts for about 20 minutes of your life that you will never get
back. He gives you not even an acknowledgement, and then says 'OH I FOUND THE 
ANSWER: <xsl:apply-templates select="BLOCK"/>'

*smacks forehead*

I have my charitable days where I educate a dozen newbies, but half the time I
end up deleting my email before I finish it, thinking "Why am I wasting my
time with this person.."

Guess I'm becoming cranky in my old age.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 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.