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

sub-documents with their own stylesheets

Subject: sub-documents with their own stylesheets
From: Ken MacLeod <ken@xxxxxxxxxxxxxxxx>
Date: 18 Jul 2000 14:33:08 -0500
sub-documents with their own stylesheets
newbie alert!  I'm just starting into XSL.  In researching this
problem I've looked at the tutorials listed on the W3C page and in the
XSL FAQ, read through the examples in the FAQ surrounding
document(), and talked with one XSL guru (thanks Eric!).

The question is: can I use XSL alone to take two XML docs, each with
their own stylesheet, and merge them in to one output document.

A concrete example: I want to create an XHTML page with two areas from
the two seperate XML docs:

 +-------------+
 |     TOP     |
 | +---+ +---+ |
 | | A | | B | |
 | +---+ +---+ |
 +-------------+

A.xml has A.xsl, B.xml has B.xsl.  Both transform well standalone and
I _could_ use an external tool to insert them into TOP.xhtml.

What I want to do, though, is create a TOP.xsl that can replace
placeholder elements in TOP.xhtml with content from A and B
transformed by their respective stylesheets.

Two possible solutions (thanks Eric!), as long as I have complete
control over all the schemas and stylesheets, are:

  1) use unique namespaces, xsl:include, document(), and just apply
     all the styling in one swell foop.

  2) do roughly the same, but using "mode"

Both of these require a lot more control and hand-holding in the
stylesheets than I'd prefer, and would make reusing other's
stylesheets somewhat more difficult.

Is this something I can do directly within XSL, or should I go ahead
and merge them externally?

Thanks,

  -- Ken


 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.