Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] apply one template to another

From: "Adam Retter" <adam.retter@------------>
To:
Date: 11/1/2006 2:49:00 PM
David,

My input document that could be processed is at the bottom of my
originial post, if you cant see it let me know and I will re-post it.

Thanks for the pointers so far, I will give some of these a try this
afternoon :-)

Thanks Adam.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 01 November 2006 14:04
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] 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
/root/xform/xforms:model/xforms:instance/page/contact"
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
replace
<xsl:copy-of select="child::node()"/>
by
<xsl:apply-templates mode="copy"/.

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

David


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent