[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Reading the XML declaration using XSL
Subject: RE: [xsl] Reading the XML declaration using XSL From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 20 Jan 2005 09:02:34 -0000 |
The XML declaration isn't part of the data model that the XSLT processor sees. Its only purpose is to tell the XML parser how to construct the data model. By the time a document has been parsed its original encoding is of no further interest. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Kenneth Stephen [mailto:marvin.the.cynical.robot@xxxxxxxxx] > Sent: 20 January 2005 04:59 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Reading the XML declaration using XSL > > Hi, > > I'd like to change the way an XML file gets rendered in a browser. > The effect that I want to achieve is what Mozilla does when one does a > "View source" - i.e. displays the XML as a text document with syntax > highlighting. I can write an XSL program to read XML and produce > syntax highlighted output, and associate the XSL to the XML via the > xml-stylesheet PI. However, if the XML file that I'm processing has an > XML declaration at the top, then I'm at a loss as to how to process > that. I've been unable to figure out a way to use XSL to read the XML > declaration and process that. Any ideas / suggestions? > > Thanks, > Kenneth
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Reading the XML declarati, Dimitre Novatchev | Thread | RE: [xsl] Reading the XML declarati, Jarno.Elovirta |
RE: [xsl] unexpected <TD> tags, omprakash . v | Date | RE: [xsl] How to Display as text th, Michael Kay |
Month |