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

Re: Dynamic dispatch of functions/templates (was match

Subject: Re: Dynamic dispatch of functions/templates (was matching text() )
From: iwanttokeepanon <iwanttokeepanon@xxxxxxxxx>
Date: Fri, 7 Jan 2011 14:38:17 -0600
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?

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.