| Subject: Re: [xsl] How to prevent spaces in the output From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 24 Jan 2008 22:10:57 +0100 | 
<xsl:template match="something/@*"> <formatting....
<xsl:template match="something">
    <xsl:apply-templates select="@*" />
    ... other things on "something"
</xsl:template><xsl:template match="something/@*">
    <formatting...
</xsl:template>
HTH, Cheers, -- Abel Braaksma
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('"',.,'"')" /> </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 ??
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] How to prevent spaces in the , Mansour | Thread | Re: [xsl] How to prevent spaces in , Mansour | 
| [xsl] How to prevent spaces in the , Mansour | Date | Re: [xsl] How to prevent spaces in , David Carlisle | 
| Month |