xsl-list
[Top] [All Lists]

RE: imbedding xsl stylesheet within xml doc ???

2004-09-02 13:43:03
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(_dot_)Bovy(_at_)ca(_dot_)com] 
Sent: 02 September 2004 21:12
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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 ???

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--