RE: [xsl] Newbie: See if a node exists!

Subject: RE: [xsl] Newbie: See if a node exists!
From: Americo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Fri, 7 Jun 2002 19:29:34 +0100
I'm sorry if it seams like that. I do appriciate your help and you all gave
me a lots of ideas. It wasn't my intension to say that I've found the answer
just by my self, that is not true. it was simply a case of putting the right
tag in the right place.

I would like to thanks to every one that help me, expecialy to David.

And yes, you probably are wasting your time with me for I do not have
anything new to show you and you probably have a lot to teach me. I aknolage
your spanking and turn away.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Mike Brown
Sent: Friday, June 07, 2002 7:02 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Newbie: See if a node exists!


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




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread