[XSL-LIST Mailing List Archive Home]
RE: [xsl] Multiple xml-stylesheet processing instructions
Subject: RE: [xsl] Multiple xml-stylesheet processing instructions|
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 4 Mar 2005 12:05:12 -0000
I got this from JAXP: TransformerFactory#getAssociatedStylesheet:
Get the stylesheet specification(s) associated via the xml-stylesheet
processing instruction (see http://www.w3.org/TR/xml-stylesheet/) with the
document document specified in the source parameter, and that match the
given criteria. Note that it is possible to return several stylesheets, in
which case they are applied as if they were a list of imports or cascades in
a single stylesheet.
I don't know where JAXP got it from.
> -----Original Message-----
> From: Colin Paul Adams [mailto:colin@xxxxxxxxxxxxxxxxxx]
> Sent: 04 March 2005 10:48
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Multiple xml-stylesheet processing instructions
> Not so very long ago, someone asked a question, either on this list,
> or on the Saxon list (I don't remember, and I can't find the posting
> concerned), about the meaning of multiple aml-stylesheet PIs in an xml
> Michael Kay replied to the effect that he interprets it (and
> implements it so in Saxon) as a bunch of xsl:imports to be made into a
> wrapper stylesheet.
> Michael, could you please explain your reasoning for adopting this
> interpretation as against another possible interpretation, namely that
> each stylesheet should be applied as a separate, chained,
> I have gone over-and-over http://www.w3.org/TR/xml-stylesheet/ and
> HTML 4.0 (to which it refers), and I cannot see anything decisive in
> favour of wither strategy.
> Colin Paul Adams
> Preston Lancashire