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

Re: apply one template to another

Subject: Re: apply one template to another
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 1 Nov 2006 14:03:42 GMT
Re:  apply one template to another
> What XSLT Processor do you use?

I didn't use any processor because you (still) haven't posted any input
that could be processed!!!

However now you point it out you don't apply templates to any children
of xforms:instance, so  the template matchiong
won't be used.

It's a general feature of xslt that templates just say what to do _if_
template matching is applied to a matching node, just defining a
template doesn't on its own cause anything to happen, you need to apply
templates to the node (or at least allow the default template for teh
parent node to implictly apply templates to this node).

If you want to apply templates to the  children of xforms:instance
<xsl:copy-of select="child::node()"/>
<xsl:apply-templates mode="copy"/.

You can also almost certainly just write the match attribute as
unless you have other instances of that element elsewhere in the
 document that you need to handle differently.


Current Thread


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.
First Name
Last Name
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.