[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OT: XSL Question
- From: Eddie Robertsson <email@example.com>
- To: Rajesh Kommineni <firstname.lastname@example.org>
- Date: Fri, 23 Mar 2001 10:44:30 +1100
Rajesh Kommineni wrote:
> Hello every one,
> I have this xml file
> am trying to write an xsl trasnformation that outputs
> the nodes based on what is present inside input node.
> so here the output should be device and interface.
> Is this possible at all? How can I match based on text
> nodes? I tried using variables but didnt work. Can any
> one help me out?
I haven't tested this but something like this should work:
First save the value of <input> in a variable:
<xsl:variable name="input" select="input"/>
Then iterate through all the nodes with this name:
<xsl:for-each select="node()[name() = $input]">