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

Re: need to get value of required nodes only

Subject: Re: need to get value of required nodes only
From: "Asim Qazi" <qazi@xxxxxxxxxxx>
Date: Wed, 10 Mar 2004 10:37:30 -0800
text get value
Hi Jeni,

    Thankx for the heal dear, i always found this list very helping, thankx
for all upeople are doing.

    one more thing jenni i purchased of of ur books "Beginning XSLT" i found
it be a helping one.
    can u plz guide me for a book which have some Professional Examples on
XML/XSL driven Applications, so that i can practice them and learn more.

Thank You
Qazi Asim


----- Original Message -----
From: "Jeni Tennison" <>
To: "Asim Qazi" <qazi@xxxxxxxxxxx>
Cc: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, March 08, 2004 1:40 AM
Subject: Re:  need to get value of required nodes only


> Hi Qazi,
>
> > i m getting a xml like this now i want to get the value of test2 and
> > test 4 Main Nodes. and all sub links of these two main nodes. and
> > just want two print like this
> [snip]
>
> You can select the two <menu-heads> elements that you're interested in
> using a predicate that tests true for those two elements. I guess that
> the best predicate to use would be one based on their menunumber
> attribute; something like:
>
>   menu-heads[@menunumber = 1 or @menunumber = 3]
>
> If you apply templates to only those <menu-heads> elements, then those
> are the only ones that will be processed. You need something like:
>
> <xsl:template match="menu-options">
>   <xsl:apply-templates select="menu-heads[@menunumber = 1 or
>                                           @menunumber = 3]" />
> </xsl:template>
>
> <xsl:template match="menu-heads">
>   <xsl:value-of select="@name" />
>   <xsl:text>&#xA;</xsl:text>
>   <xsl:apply-templates select="sublinks" />
> </xsl:template>
>
> <xsl:template match="sublinks">
>   <xsl:text>&#x9;</xsl:text>
>   <xsl:value-of select="." />
>   <xsl:text>&#xA;</xsl:text>
> </xsl:template>
>
> Cheers,
>
> Jeni
>
> ---
> Jeni Tennison
> http://www.jenitennison.com/
>
>
>  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.