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

RE: Reading the XML declaration using XSL

Subject: RE: Reading the XML declaration using XSL
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 20 Jan 2005 09:45:09 +0200
xpath xml declaration
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?

XPath source tree doesn't contain information about the document that was used
to generate the tree (well, basedir is there but you can't access it). This
applies to encoding too. A feature of XPath & XSLT.

Cheers,

Jarno

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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