Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Re: Language-specific output

From: "Michael Kay" <mike@------------>
To:
Date: 2/2/2006 1:37:00 PM
> 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent