Re: [xsl] document() source

Subject: Re: [xsl] document() source
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 31 Oct 2005 10:12:14 +0000
>>>>> "Andrew" == andrew welch <andrew.j.welch@xxxxxxxxx> writes:

    Andrew> It would've be great if 2.0
    Andrew> had an inbuilt way of accepting XML as string in a
    Andrew> param...

Well, it does:

you pass the document as a data: URI, then you can pass that URI to
the fn:doc() function.
Ot the fn:document() function. The latter will work with XSLT 1.0 also.

This requires that the XML parser is capable of resolving data:
URIs. If the parser has a configurable resolver, then there is no
problem.
-- 
Colin Adams
Preston Lancashire

Current Thread