cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Bowler" <paulbow...@www.aventix.co.uk>
Subject xslt transformer removing namespace attributes
Date Thu, 10 Apr 2003 11:54:47 GMT
I'm trying to get the session transformer working in cocoon 2.1.

My xslt file reads:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" encoding="UTF-8" indent="yes"/>
	<xsl:template match="manage">
		<html xmlns:session="http://cocoon.apache.org/session/1.0">
			<head>
				<title>Manager</title>
			</head>
			<body>
				<h1>Manager</h1>
				<h2>Hello:
				<session:getxml xmlns:session="http://cocoon.apache.org/session/1.0" 
context="authentication" path="/authentication/ID"/>
				</h2>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

After this is transformed (before the session transformer is applied) the result is:

<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Manager</title>
</head>
<body>
<h1>Manager</h1>
<h2>Hello:
<session:getxml context="authentication" path="/authentication/ID"></session:getxml>
</h2>
</body>
</html>

Where has the namespace attribute gone in the <session:getxml ...> tag?

When this is then forwarded on to the session transformer nothing is done as it will not work
without the 
xmlns:session being defined.

Any ideas?

Paul.


--
Paul Bowler
Aventix Associates Ltd

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message