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

Re: document() source

Subject: Re: document() source
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 29 Oct 2005 16:51:32 +0100
Re:  document() source
>>>>> "Fraser" == Fraser Goffin <goffinf@xxxxxxxxxxx> writes:

    Fraser> I see that in XSLT I can use the document() function BUT
    Fraser> it APPEARS that it must retrieve the XML from the file
    Fraser> system or a resolvable URI ??

    Fraser> In my case the second instance doc is already 'in memory'
    Fraser> (having been retrieved from a database) so I really just
    Fraser> want to pass the XML itself as a string.

    Fraser> Does anyone know whether this is possible using XSLT, or
    Fraser> will I need to look at a programmatic (ie. Java)
    Fraser> implementation alternative :-(

What you can do is make up a uri scheme (maybe call it string), and
then write a URI Resolver for your processor, which returns the text
of the string given the appropriate URI. You will want to do something
like store the string in a hash table, whose key is the uri.
-- 
Colin Adams
Preston Lancashire

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.