xsl-list
[Top] [All Lists]

[xsl] How to prevent spaces in the output

2008-01-24 13:23:05
Hello every one:
I am facing some difficulties with the spaces in the resulting output. For example:

<xsl:template match="something" >
<xsl:for-each select="@*">
                       <formatting:ATTRIBUTENAME>
                           <xsl:value-of select="concat(' ',name(.))" />
                       </formatting:ATTRIBUTENAME>
                       =
                       <formatting:ATTRIBUTEVALUE>
                           <xsl:value-of
                               select="concat('&quot;',.,'&quot;')" />
                       </formatting:ATTRIBUTEVALUE>
                   </xsl:for-each>
</xsl:template>


the output is :
<formatting:ATTRIBUTENAME>
attri
</formatting:ATTRIBUTENAME>
=
<formatting:ATTRIBUTEVALUE>
"value"
</formatting:ATTRIBUTEVALUE>


Then when I convert it to html, there are spaces like this: attri = "value"

How do I avoid this ??





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>