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

RE: imbedding xsl stylesheet within xml doc ???

Subject: RE: imbedding xsl stylesheet within xml doc ???
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 2 Sep 2004 21:43:03 +0100
stylesheet in xml
I don't think the XSLT 1.0 spec uses either of the terms "imbed" or
"processor statement" so I'm not sure why you put them in quotes.

But section 2.7 of the spec does discuss how a stylesheet may be embedded in
a source document, and gives an example:

http://www.w3.org/TR/xslt#section-Embedding-Stylesheets

I'm not sure how widely supported this feature is, or how widely used. It
works in Saxon, and I've got one situation where I use it myself: a one-off
document with its own stylesheet, where the stylesheet is completely
specific to that document; in  this case I find it eases maintenance to keep
the stylesheet embedded within the document. (And it gives me a test case,
of course!).

Michael Kay
www.saxonica.com


> -----Original Message-----
> From: Bovy, Stephen J [mailto:STEPHEN.Bovy@xxxxxx] 
> Sent: 02 September 2004 21:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  imbedding xsl stylesheet within xml doc ???
> 
> The xsl spec states that the xml-stylesheet processing instruction can
> use an href that uses a relative url fragment.  It also tantalizingly 
> imples that this method can be used to "imbed" a sytle sheet within
> the "processor statement" itself, (which seems quite bizarre).
> 
> Can anyone explain to me or show me how to use this technique ???

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.