Subject: RE: [xsl] An all-in-one XML data set (usually a separate file) that contains a built-in stylesheet (not as a separate file)|
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 24 Feb 2006 00:16:49 -0000
XSLT as a language supports the idea of keeping a stylesheet embedded within the source document that it transforms, and I occasionally use such embedded stylesheets with Saxon. But I don't know which if any browsers support them. The other way around ought to be trivial, you just put the "source document" in a global variable. Ought to be, but isn't because of the silly inability in XSLT 1.0 to convert RTFs to node-sets. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Graves, Jim (CONTR) [mailto:jim.graves@xxxxxxx] > Sent: 23 February 2006 22:32 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] An all-in-one XML data set (usually a separate > file) that contains a built-in stylesheet (not as a separate file) > > All, > > > Working scenario/problem: someone can see the file in the browser (IE) > and simply click on it, then it runs the XSLT on the XML contained in > the file (containing both XSLT and XML) and the result is displayed in > the browser. > > That is, how can one have an 'all-in-one' XML data set (usually a > separate file) that contains a built-in stylesheet (not as a separate > file)? > > > Or is it the other way 'round? An XSLT file that contains the > XML input > data? > > > Thanks in advance for your help.