I've got a XSL template to generate some standard code given parameters in an XML file. All seems to work fine, but some parts seem to insert line feeds where I actually want spaces. e.g.
Given the XSL:
Notice there is a space between the @name & @callby and again between @callby and @type. For some reason these appear in the resulting html as line feeds. Then there is a line feed after the , which appears correctly.
Heres some output:
---------------------------
-------------------------------
I've tried taking the spaces out, making lots of them. But nothing works. HELP!
Code:
<sub name="ChangePst">
<arg name="a1" type="t1" callby="IN"/>
<arg name="a2" type="t2" callby="IN"/>
<body>
Some body stuff!
</body>
</sub>
Code:
<xsl:for-each select="arg"><xsl:value-of select="@name"/> <xsl:value-of select="@callby"/> <xsl:value-of select="@type"/>,
</xsl:for-each>
Heres some output:
---------------------------
Code:
a1
IN
t1,
a2
IN
t2,
I've tried taking the spaces out, making lots of them. But nothing works. HELP!