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

RE: can the document( ) function refer to a DOM object

Subject: RE: can the document( ) function refer to a DOM object in memory?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 17 Dec 2001 19:46:30 -0000
uriresolver refer to document
You could write a URIResolver that recognizes the URI "" and resolves it by
returning a DOMSource object pointing to the stylesheet DOM.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Spinelli,
> Frank
> Sent: 17 December 2001 17:15
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  can the document( ) function refer to a DOM object in
> memory?
>
>
> We are using Xalan, and are building (or assembling)  the
> XSLT style sheet
> programatically.
>
> Then the generated style sheet then is passed to the Xalan
> xslt processor as
> a DOM object.
>
> Whenever this style sheet uses a document( ) function, we
> want this to work
> exactly the same as if the same style sheet were being
> processed in a stand
> alone transformation initiated from the command line, where
> the style sheet
> has been input as a file.
>
> The purpose of the document( ) function, in this situation,
> is to read data
> that is contained within the style sheet, itself.
>
> It works fine if, in the Java program, we first write (i.e.,
> serialize) the
> programmatically generated xslt style sheet to the file
> system, then use
> setSystemId( ) to inform the Xslt process of the URI to
> access the style
> sheet in the file system, and proceed with the transformation.
>
> My question -- is it possible to avoid writing the style
> sheet to the file
> system, which seems necessary in order to have a valid,
> physical URI to use
> with the setSystemID( ) step, so that the document( )
> function in its turn
> can access it?
>
> Is it possible to have setSyetemID( ) refer directly to the DOM object
> version of the style sheet already in memory?  Or to
> accomplish this result
> in some other way?
>
> Thanks,
> Frank S.
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.