xsl-list
[Top] [All Lists]

Re: [xsl] Issue with Xalan nodeset

2010-11-25 10:49:07
Etheridge, Stephen wrote:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xalan="http://xml.apache.org/xalan";
exclude-result-prefixes = "xalan">

<xsl:output method="text" indent="yes" />
<xsl:variable name="old_file" select="/*"></xsl:variable>
<xsl:param name="secondFile"></xsl:param>
<xsl:variable name="new_file" 
select="xalan:nodeset($secondFile)/*"></xsl:variable>

        <xsl:template match="/">
                Parameter secondFile is set as
                <xsl:value-of select="$secondFile"/>

What does output method="xml" and
                <xsl:copy-of select="$secondFile"/>
give you for your input?
I am not familiar with the types Xalan allows as parameters and how Java types are mapped to XSLT/XPath types. Are you using Xalan XSLTC or Interpreter? Have you tried to set the parameter to an XSLTCSource http://xml.apache.org/xalan-j/xsltc/xsltc_trax_api.html instead of a DOMSource?

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

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