Hi NG,
I have the following xml-file (simplified):
<?xml version="1.0" encoding="ISO-8859-1"?>
<dir:directory xmlns:dir="http://apache.org/cocoon/directory/2.0">
<dir:file name="cook0002.xml">
</dir:directory>
and the following xsl-file:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dir="http://apache.org/cocoon/directory/2.0">
<xsl:template match="dir:directory">
<xsl:element name="demos">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="dir:file">
<xsl:element name="demo">
<xsl:element name="file">
<xsl:value-of select="@name"/>
</xsl:element>
<xsl:element name="symbol">
<xsl:value-of select="document(@name)/document/title"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
the output should be:
<?xml version="1.0" encoding="UTF-16"?>
<demos>
<demo>
<file>cook0002.xml</file>
<symbol>Wiener Schnitzel</symbol>
</demo>
</demos>
It works with Xselerator, but cocoon 2.1 gives me only the
following output:
<?xml version="1.0" encoding="UTF-16"?>
<demos>
<demo>
<file>cook0002.xml</file>
<symbol/>
</demo>
</demos>
Any hints for solving my problem?
Thanx in advance,
Gerald
--
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/