XML XSLT %0A%09%09 ? fix?

kingsaban

New Member
I'm getting weird characters being appended to the front of my hash (#) "%0A%09%09#2", I'm using Eclipse and java processor Xalan 2.7.1\[code\] <xsl:for-each select="fps-photo-atlas/portion"><a><xsl:attribute name="href" > #<xsl:value-of select="normalize-space(food-number)" /></xsl:attribute><xsl:value-of select="food-description" /></a></xsl:for-each>\[/code\]Preferred output is...\[code\] <body><a href="http://stackoverflow.com/questions/10405988/#1">Rice </a></body>\[/code\]Actual output is..\[code\] <body><a href="http://stackoverflow.com/questions/10405988/%0A%09%09#1">Rice </a></body>\[/code\]Fixed it Solution (thanks Ign)\[code\]<xsl:attribute name="href" >#<xsl:value-of select="normalize-space(food-number)" /></xsl:attribute>\[/code\]
 
Back
Top