xsl-list
[Top] [All Lists]

Re: Handling Tree Fragments

2005-09-26 08:30:54
Use the node-set extension function for your processor - or if it
supports exslt common then use that for the extra portability.

Other than that you could use function-available and a choose-when to
choose the correct node-set extension for the main big players, but
that's a bit tiresome.

The other way is to use document('') to return the stylesheet itself eg:

<xsl:variable name="RTF">
  some constructed nodes
</xsl:variable>

and:

 <xsl:apply-templates select="document('')//xsl:variable[(_at_)name = RTF]"/>




On 9/26/05, Gustave Stresen-Reuter <tedmasterweb(_at_)mac(_dot_)com> wrote:
Hi,

I'm wondering if someone can point out how to use tree fragments as
node sets in XSLT 1.0. Some processors (Saxon) seem to handle tree
fragments without any additional work but others (Sablotron and
libxslt) don't seem to like them very much.

I've read the documentation on exslt.org and tried to implement the
conversion of tree fragments to node sets using their documentation,
but I just cannot get it to work (complains about not being able to
find the imported file).

Ideally, I'd like to avoid using extensions altogether, but I realize
that that may be impossible.

Any ideas?

Ted Stresen-Reuter


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



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