help in selecting elements
I have an xml that is a tree of various elements that repeat within each other i.e.
RF
-RU
--RSS
--RF
---RU
---RSS
... and so on
what I want to do is just get all the rss elements and their children, but there xpaths are different, and have not been able to find a generic one that will just give me all the RSS elements + the children regards of where it is in the xml. any one have any ideas
trying something like this, which does not work
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="RSS/RF">
<xsl:copy>
<xsl:value-of select="normalize-space(.)"/>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
thanks for any help you might be able to offer.
|