This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Newbie: See if a node exists!
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 7 Jun 2002 12:01:44 -0600 (MDT)
- Subject: Re: [xsl] Newbie: See if a node exists!
- Reply-to: xsl-list at lists dot mulberrytech dot com
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