[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] apply one template to another
Subject: RE: [xsl] apply one template to another From: "Adam Retter" <adam.retter@xxxxxxxxxxxx> Date: Wed, 1 Nov 2006 13:42:39 -0000 |
Hmm the code I posted, I tested here and it didn't do that - I was using Saxon 8. Here the /root/xform/xforms:model/xforms:instance matching template was always used and the /root/xform/xforms:model/xforms:instance/page/contact template never got a look in. What XSLT Processor do you use? Thanks Adam. -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: 01 November 2006 13:30 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] apply one template to another > If certain nodes in this extra information exist I want to replace the > corresponding node in /root/xform/xforms:model/xforms:instance/page with > them. That much was clear, but that's what the code you posted (and my suggested rewrite) both did, assuming they matched the input at all (which still isn't clear) http://www.mulberrytech.com/xsl/xsl-list/#posting says: Well-composed questions frequently include a small XML sample, an XSLT stylesheet, the results received, and the result that was desired - all in miniature, to make it comprehensible to readers new to your problem. (It is also not uncommon to discover what a problem actually is in the process of reducing it to an illustrative version.) David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] apply one template to ano, David Carlisle | Thread | Re: [xsl] apply one template to ano, David Carlisle |
Re: [xsl] template which handles id, David Carlisle | Date | Re: [xsl] apply one template to ano, David Carlisle |
Month |