xsl-list
[Top] [All Lists]

Re: document() source

2005-10-31 03:12:14
"Andrew" == andrew welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> 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

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>