I have problem using xsl:strip space. It seems dosn't work with cocoon's xsl 
transformer.

Example:

my xsp:

<xsp:page ...>
<root>
...
<esql:connection>
...
        <user>
        <esql:row-results>
                <name>
                        <esql:get-string column="name"/>
                </name>
        </esql:row-results>
        </user>
...
</root>
</esql:connection>
...
</xsp:page>

and my xsl:

<xsl:stylesheet ..>
<xsl:strip-space elements="*"/>
...
<xsl:template match="name">
                <INPUT type="text" name="username">
                        <xsl:attribute name="value"><xsl:value-of 
select="."/></xsl:attribute>
                </INPUT>
</xsl:template>
...
</xsl:stylesheet>

And after transformation username field (and other fields) contain a lot of 
spaces, but i'm sure they should not...
Of course i can use normalize-space()method for each value, but i guess it's 
not the best way over this problem.

Ivan.

Env: cocoon 2.0.3, tomcat4.0.4, JDK1.4.0_01, SuSE Linux 8.0

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to