Demon News wrote:
They are using Biztalk, and what is actually happening is that <element
attrib="abc"/> is actually being converted to:
<element attrib="abc">
</element>
which, because of the whitespace is causing problems. I could probably get
round this by using the indent="no" parameter in xslt but for readability
that puts everything on one line and I don't see why this should be
happening.
I only use indent="yes" for debugging, later when I'm sure the output is
correct and only read by XML-parsers, I set indent="no".
But IIRC, if you avoid whitespace in the XSLT, there won't be any in the
output either. For example:
<out:element><xslt:attribute name="attrib">
<xslt:value-of select="'foo'" /<
</xslt:attribute></out:element>
xslt:attribute will be replaced, so you can use whitespace inside it.
--
Pascal Schmitt