cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: FW: xslt transformer removing namespace attributes
Date Thu, 10 Apr 2003 14:36:26 GMT
But the output method set in the XSL should have no influence on the 
pipe, should it?


Paul Bowler wrote:
> Matthew,
> I think I have found the problem and have posted it back to the group to help others
who may have the same problem in 
> the future.
> The xslt file has the output method set to 'html'. Changing this to 'xml' allows the
namespace to be passed down 
> correctly.
> Regards,
> Paul.
> On Thu, 10 Apr 2003 14:51:37 +0200, Matthew Langham wrote
>>I'm forwarding this message from Paul to the dev list because I think the
>>answer has something to do with the second namespace (xmlns:session) not
>>being passed on to the session transformer (next component in the pipeline).
>>I seem to remember this problem from somewhere and reckon someone on the
>>dev-list will have the anser
>>-----Original Message-----
>>From: Paul Bowler []
>>Sent: Thursday, April 10, 2003 1:55 PM
>>Subject: xslt transformer removing namespace attributes
>>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"
>>	<xsl:output method="html" encoding="UTF-8" indent="yes"/>
>>	<xsl:template match="manage">
>>		<html xmlns:session="">
>>			<head>
>>				<title>Manager</title>
>>			</head>
>>			<body>
>>				<h1>Manager</h1>
>>				<h2>Hello:
>>				<session:getxml xmlns:session=""
>>context="authentication" path="/authentication/ID"/>
>>				</h2>
>>			</body>
>>		</html>
>>	</xsl:template>
>>After this is transformed (before the session transformer is applied) the
>>result is:
>><META http-equiv="Content-Type" content="text/html; charset=UTF-8">
>><session:getxml context="authentication"
>>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?

View raw message