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

Re: performing 2 conversions on 2 diff xmls?

Subject: Re: performing 2 conversions on 2 diff xmls?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 07 Oct 2003 12:03:07 -0400
diff conversions
James,

At 11:40 AM 10/7/2003, you wrote:
I have:

1) An xsl (first.xsl) which selects and copies elements from an xml doc (first.xml) to create a resulting xml doc(second.xml)

2) An xsl (second.xsl) which performs a transformation on the second.xml to create a web page (html tags)

is there any way to incldue the first transformation at the top of second.xsl file. I thought about using import or include but didnt think it was appropriate?

Nope, xsl:include and xsl:import won't work here since you are not combining the stylesheets, you are chaining them. (The result of the first serves as input to the second.)


Using the node-set extension function, you can create the functional equivalent of this *if* your two stylesheets' templates don't clash. (Modes are your friends.)

Or many processing environments provide other means of specifying that two transforms are to be pipelined like this. XSLT itself doesn't specify how this should be done.

Check your processor's docs.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.