cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark H" <>
Subject SourceWritingTransformer, namespaces problem with Cocoon 2.1
Date Sat, 01 Mar 2003 16:52:02 GMT
I'm trying to write an XSP to a file using SourceWritingTransformer but the
latest DOMStreamer (v2.1) with setNormalizeNamespacesOn to true adds a
namespace to every element rather than to the xsp:page element (so that the
logicsheets don't work), when I setNormalizeNamespacesOn to false it outputs
no namespaces and my hack of adding namespaces in an xsl stylesheet doesn't

<xsl:attribute name="esql:esqlDummyAttr"

I've also tried adding the namespaces in the xsp:page in the xsl stylesheet
but I'm not sure if SourceWritingTransformer is stripping them out or DOM
serializer is ignoring them:

<xsl:template match="page">
	<xsp:page xmlns:xsp=""

Any ideas, namespaces in general seem to cause me a lot of headaches.


<xsp:page xmlns:xsp="">
	<content title="Students Home">
		<esql:connection xmlns:esql="">


<map:match pattern="createTemplate">
	<map:act type="request">
		<map:parameter name="parameters" value="true"/>
		<!--gets the semi pseudo code from the db-->
		<map:generate type="serverpages" src="util/executeQuery.xsp">
			<map:parameter name="datasourceName" value="{global:datasourceName}"/>
			<map:parameter name="xpath" value="/structure{path}"/>
		<!--converts semi pseudo code into XSP-->
		<map:transform src="util/createTemplate.xsl">
			<map:parameter name="datasourceName" value="{global:datasourceName}"/>
			<map:parameter name="path" value="{path}"/>
		<!--wraps the proper tags around the XSP for the write-source
		<map:transform src="util/createFile.xsl">
			<map:parameter name="filename" value="views{path}.xsp"/>
		<!--writes it to a file-->
		<map:transform type="write-source"/>
		<map:serialize type="xml"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message