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

RE: Re: Language-specific output

Subject: RE: Re: Language-specific output
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 2 Feb 2006 13:35:56 -0000
RE:  Re: Language-specific output
> Now it is true that some stylesheets are not valid by 
> themselves but are 
> ok if they are imported or included from other stylesheets.

Yes: I've never felt that was one of the most elegant properties of the
language!
 
> 
> Now the problem is how that situation is handled:
> 
> 1. One possibility is to allow the user to specify the main 
> stylesheet through some action 
> 
> 2. Another approach is to analyze all the stylesheets from 
> the current 
> project and see how they are related wrt include/import and determine 
> automatically the main stylesheet.

I think you have to do 1. A common scenario is to have A and B as
alternative entry points with the bulk of the real logic in C: so the user
can invoke A or B as the entry module, and both of these import C.

Even if 2 yields one stylesheet A that imports all the others (say B, C, and
D), that doesn't stop B being a valid entry point.

To take a concrete example, when I format the XSLT spec for publication, B
is the entry point for producing the main published document; A (which
imports B) is an overlay that produces the version with diff markup.

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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.