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

Re: an Xpath question - $tag/$subtag

Subject: Re: an Xpath question - $tag/$subtag
From: "Anil" <anilj@xxxxxxxxxxxxx>
Date: Mon, 7 Jul 2003 17:03:26 -0400
question tag
Hi David,

    This was my orginal post


"  Hi All,
  here is my problem..i have to use 2 variables to reach a tag in my xml, i
tried using
    <xsl:apply-templates select="$tag/$subtag">
it didnt work, does anyone know another way of doing it? or is it doable at
all?  "


   I am not sure if you saw the first part of my post. I sure didnt do a
good job of explaining what kind of variables $tag and $subtag are.

Thnx for replying.


cheers,
Anil



----- Original Message -----
From: "David Carlisle" <davidc@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, July 07, 2003 4:16 PM
Subject: Re:  an Xpath question - $tag/$subtag


>
>
> > it didnt work, does anyone know another way of doing it? or is it
> > doable at
>
> how are we supposed to help if you don't say what you are trying to do,
> you posted some sequence of characters that you say are not XSLT, and
> ask what they should be.
>
> It's like saying aslfkhalsfh LSAKFG Afl  is not correct English,
> could you please tell me what the correct form is. Without some idea of
> teh intended meaning, this can be difficult.
>
> / is an operator on node sets in Xpath, if $tag and $subtag are nodeset
> valued  variables, then $tag/$subtag is a legal operatin (and always
> equivalent to $subtag unles $tag is empty) otherwise it is an error.
>
> David
>
>  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

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.