cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martyn Wilson <flaps_2...@yahoo.com>
Subject syntax error in namespace reference generated in cocoon webapp
Date Fri, 18 Apr 2003 23:17:16 GMT
I get the following syntax from a cocoon transform:

<rpt:data-block
xmlns:xmlns:sql="http://apache.org/cocoon/SQL/2.0">

Note the 'xmlns:xmlns:'.

When I try run the transform outside of cocoon, there
is no error.

Is this a cocoon or xalan bug?

Herer is the xml:

<?xml version="1.0" encoding="UTF-8" ?> 
<rpt:report-sql
xmlns:rpt="http://cocoon.clsw.com/report"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:http="http://xml.apache.org/cocoon/requestgenerator/2.0">
	<rpt:data-blocks>
		<rpt:data-block
xmlns:sql="http://apache.org/cocoon/SQL/2.0">
			<rowset>
				<row> 
					<headline_id>49</headline_id> 
				</row>
			</rowset>
		</rpt:data-block>
	</rpt:data-blocks>
</rpt:report-sql>

and here is the stylesheet section

	<xsl:template match="/rpt:report-sql">
		<rpt:report-xinclude-headlines>
			<xsl:apply-templates select="rpt:data-blocks"/>
			<xi:include>
				<xsl:attribute name="href">reports/<xsl:value-of
select="$label"/>/headlines.xml#xpointer(/headlines)</xsl:attribute>
			</xi:include>			
		</rpt:report-xinclude-headlines>
	</xsl:template>

please advise

=====
Martyn Wilson

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
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