cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Br├╝ggebors <>
Subject Stylesheet to match rowset
Date Mon, 20 Feb 2006 22:35:39 GMT
I'm new to cocoon (and XSL-transformatons), so please excuse my beginner's 

I have a rowset from a sql-query:

<?xml version="1.0" encoding="ISO-8859-1"?>
<page xmlns:sql="">

<rowset xmlns="">
		<k_kurz>Amt fuer Bla</k_kurz>
		<k_plzort>25464 Rellingen</k_plzort>
		<k_plzort>91710 Gunzenhausen</k_plzort>

and I'm trying to convert this into a simple html-table:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
	<xsl:template match="page">
	<html xmlns="">
				<xsl:for-each select="rowset/row" >
					<td><xsl:value-of select="k_num"/></td>
					<td><xsl:value-of select="k_kurz"/></td>
					<td><xsl:value-of select="k_plzort"/></td>

This only works, when I delete the xmlns="" 
at the beginning of the rowset. In real-life I cannot delete this, because the 
sql-transformer builds the rowset in my pipeline.

Which template will match the rowset with the namespace-attribute?


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

View raw message