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

RE: Two source documents with one stylesheet

Subject: RE: Two source documents with one stylesheet
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 16 Feb 2005 23:20:57 -0000
xsl two sources
You can do <xsl:apply-templates select="$doc1/*">, and a template rule that
matches the document element will then be fired. Template rules aren't
specific to a particular document. If you need different rules to process
different documents, use modes.

Michael Kay
http://www.saxonica.com/

 

> -----Original Message-----
> From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx] 
> Sent: 16 February 2005 22:19
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Two source documents with one stylesheet
> 
> I'm working on a project to produce an FO document. The FO 
> document will have two fo:simple-page-master elements (one to 
> produce portrait output and the other to produce landscape 
> output) and will produce three fo:page-sequence elements. The 
> input consists of two source documents.
> 
> What I hope to do is pass the URIs for these documents to the 
> stylesheet as parameters and use them in two document() 
> functions inside two variable declarations. Creating the 
> variables works without a problem. 
> 
> What has got me stuck is how to use the elements in the 
> documents defined by the variables. Specifically, I can't use 
> a variable in the match attribute of a template and I can't 
> think of a way to accomplish this task without that.
> 
> Do I have to first merge the two source documents, then 
> process them with the stylesheet in a two-pass process, or is 
> there a single-pass solution?
> 
> -- 
> Charles Knell
> cknell@xxxxxxxxxx - email

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.