[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: "Adam Retter" <adam.retter@xxxxxxxxxxxx>
Date: Wed, 1 Nov 2006 13:42:39 -0000
adam retter
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:  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

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.