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

XML to XML via XSLT, and then CSS?

Subject: XML to XML via XSLT, and then CSS?
From: Sebastian Tennant <sebyte@xxxxxxxxxxxxxxx>
Date: Fri, 13 Jan 2006 13:14:10 +0000
xml to xml via xsl
Hi all,

It's possible to use XSLT to transform an XML document into HTML and
then style the HTML using an external CSS style sheet by way of the
HTML <link> tag, which the XSLT style sheet includes in the result
tree.

This works because browsers treat the <link> tag in a special way.

But what if transformation is not into HTML?

A processing instruction such as 

  <?xml-stylesheet href="css-sheet.css" type="text/css" ?>

is sufficient to display an XML document using an XML enabled browser,
but what if I what to transform the original XML document into a new
XML document (using XSLT) and then have the browser style it using
CSS?

The original XML document needs a new processing instruction:

  <?xml-stylesheet href="xslt-sheet.xsl" type="text/xsl" ?>

and the XSLT style sheet then needs to include a processing
instruction in the result tree that links to the CSS style sheet.

In short my question is this:

How do you pass processing instructions to a result tree, so that I can
point my XML enabled browser at an XML document, have it transformed
into another XML document using XSLT, and then have it styled using
CSS?

sdt

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.