Hi,
I am using XSLT 1.0 with Xalan Java-version 2.7.1.
What I am trying to do is to exchange the text nodes of the processed XML with
text nodes with the same id from a second XML document.
My XSL:
<xsl:template match="*[not(parent::*/text())]">
<xsl:variable name="hid" select="@hid"/>
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:for-each
select="document('out/_EL_task_installation.xml')/TRANSLATION/*[(_at_)hid=$hid]">
<xsl:copy-of select="*| text()"/>
</xsl:for-each>
<xsl:apply-templates select="*[not(parent::*/text())]"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
The transformation works fine in XMLSpy, however when using a batch file to
transform with Xalan, the transformation results in nearly empty document like
this:
<?xml version="1.0" encoding="UTF-8"?><task hid="d0e2"/>
There is no error message. I guess this line is the problem:
<xsl:for-each
select="document('out/_EL_task_installation.xml')/TRANSLATION/*[(_at_)hid=$hid]">
Any ideas?
Thanks
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de
--~------------------------------------------------------------------
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>
--~--