Re: [xsl] need to get value of required nodes only

Subject: Re: [xsl] need to get value of required nodes only
From: "Asim Qazi" <qazi@xxxxxxxxxxx>
Date: Mon, 8 Mar 2004 14:42:46 -0800
Hi
    first of all thankx a lot for answering.

plz dont go for 'MenuNumber' i need to get vales on the 'Name' attribute.
and i t can be one or more . like

value of 'test1','test3' and 'test4' :)

Qazi Asim


----- Original Message -----
From: <Jarno.Elovirta@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, March 07, 2004 11:15 PM
Subject: RE: [xsl] need to get value of required nodes only


> Hi,
>
> >     i need small help in xsl, i m a beginner to XSL.
> >     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
>
> You could have given it a go, you know…
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                 xmlns="http://www.w3.org/1999/xhtml";
>                 version="1.0">
>   <xsl:template match="menu-options">
>     <html>
>       <head>
>         <title/>
>       </head>
>       <body>
>         <xsl:for-each select="menu-heads[@menunumber mod 2 = 1]">
>           <h2>
>             <xsl:value-of select="@name"/>
>           </h2>
>           <ul>
>             <xsl:for-each select="sublinks">
>               <li>
>                 <a href="{@href}">
>                   <xsl:value-of select="."/>
>                 </a>
>               </li>
>             </xsl:for-each>
>           </ul>
>         </xsl:for-each>
>       </body>
>     </html>
>   </xsl:template>
> </xsl:stylesheet>
>
> Cheers,
>
> Jarno
>
>  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