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 1:44:00 PM
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


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