cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Hoechstaedter <>
Subject xsl:copy-of select
Date Mon, 09 Jun 2008 14:50:19 GMT
Hallo everybody,

I have the following problem. I transform an sql statement by a xsl 
which looks like the following:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
<xsl:template match="/page">
      <table border = "1">
            <xsl:copy-of select="sql:email"/>

Everything works fine except the copy-of select statement. I want to 
acces a single field from the sql statement. When I type <xsl:copy-of 
select="."/> cocoon prints the whole resultset to the screen. I already 
tried ${sql:email}, or thing like name()="sql:email", but nothing works 
for me. Thanks for any advice.

The sitemap statement looks like this:

<map:match pattern = "runsql">
         <map:generate src="resource/internal/sql/sql.xml"/>
         <map:transform type="sql">
                    <map:parameter name="use-connection" value="personnel"/>
                    <map:parameter name="show-nr-of-rows" value="true"/>
                    <map:parameter name="clob-encoding" value="UTF-8"/>
         <map:transform src="resource/internal/transform2Table.xsl"/>
        <map:serialize type="html"/>


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

View raw message