[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Dynamic dispatch of functions/templates (was match
On Thu, Dec 23, 2010 at 8:37 AM, David Lee <dlee@xxxxxxxxxxx> wrote: > Still thinking how to change > <xsl:apply-templates select="text()"/> > > <xsl:template match="some_xpath/text()" > > .. Can I ask a question (it may be stupid), if that is the only thing you are trying to do then isn't that easy? E.g.: XML: <root> <a>first-text <b>second-text</b> </a> </root> XSL: <xsl:template match="text()[parent::b[parent::a[parent::root]]]"> text=<xsl:value-of select="." /> </xsl:template> Ok, there is probably a more elegant way to express that but it works, right? Or did I miss something in the talk about multiple text nodes?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|