cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject [C2]: Namespace bug in XalanTransformer
Date Wed, 06 Dec 2000 11:53:03 GMT

namespaces are not correctly handled by the current Xalan Version inside C2.
The endElement event does not contain the correct information. Here is my
simple test case.

If you use the following XML file:

<?xml version="1.0"?>
<page xmlns:sunshine="">

and this pipeline:

<map:generate src="test.xml"/>
<map:transform src="test.xsl"/>
<map:transform type="log">

with a stylesheet which this stylesheet:

<xsl:template match="test">

<xsl:template match="node()|@*"><xsl:copy>
	<xsl:apply-templates select="node()|@*"/>

The log transformer gets the following events:
[setup] ---------------------------- [Wed Dec 06 12:47:33 GMT+01:00 2000] ----------------------------
[startElement] uri=null,local=page,raw=page

[startPrefixMapping] prefix=sunshine,uri=
[startElement] uri=,local=wrong,raw=sunshine:wrong
[            ] 1. uri=,local=sunshine,qname=xmlns:sunshine,type=CDATA,value=
[endElement] uri=,local=,qname=sunshine:wrong
[endPrefixMapping] prefix=sunshine


[endElement] uri=,local=,qname=page

The endElement event has no uri and no local name set.

Carsten Ziegeler

Open Source Group              sunShine - Lighting up e:Business
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn                  

View raw message