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

Re: Use same xml file with different XSL stylesheets

Subject: Re: Use same xml file with different XSL stylesheets
From: "Ignacio Garcia del Campo" <igarc001@xxxxxxxxxxx>
Date: Wed, 28 Mar 2007 12:08:00 -0400
Re:  Use same xml file with different XSL stylesheets
Not exactly.
If I use the document function to load the base.xml file, the referenced stylesheet does not use the contents of the loaded base.xml file for its templates.


The file is loaded, but its contents are never used.


From: Steve <subsume@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Use same xml file with different XSL stylesheets
Date: Wed, 28 Mar 2007 11:48:55 -0400

Are you looking for the document() function?

--S

On 3/28/07, Ignacio Garcia del Campo <igarc001@xxxxxxxxxxx> wrote:
Hello all,

I have two different xsl stylesheets that will be applied to the same set of
xml documents.


Is there a way to create references to the BASE xml files to save space?

Let's say my xml file is 100 lines, if I want to apply the two XSL
stylesheets, I need to create two files base_01.xml and base_02.xml with 101
lines in each.


The extra line adds the reference to the XSL stylesheet to be used.

I would like to know if it is possible to create the files with just a few
lines, something like this:

------------------
base_01.xml
------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="stylesheet1.xsl" ?>
<?XML REFERENCE TO BASE.XML TO BE PROCESSED ?>

------------------
base_02.xml
------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="stylesheet2.xsl" ?>
<?XML REFERENCE TO BASE.XML TO BE PROCESSED?>


Thank you.

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.