Hi,
I am using the Translate() function in one of the .XSLT file to remove the
spaces, like this:
<xsl:for-each select=".//Illustration">
<xsl:value-of select="translate(./@illusName, ' ', '')"/>
….
This works fine with command line msxsl and XML editors like XMLSpy.
However, if you use .NET's
XSLTransform.Transform() method to access the same .xslt file, it doesn't
remove the spaces.
I also tried the following workarounds, but it still doesn't work:
<xsl:element name="{translate(./@illusName, ' ', '')}">
<xsl:value-of select="translate(./@illusName, ' ', '')"/>
Is this a known problem with .NET?
Plz help!
Martin Honnen - 23 Feb 2007 12:57 GMT
> This works fine with command line msxsl and XML editors like XMLSpy.
> However, if you use .NET's
[quoted text clipped - 6 lines]
>
> Is this a known problem with .NET?
I can't reproduce the problem with a simple example and .NET 1.1. Can
you post a minimal XML input document, minimal XSLT stylesheet and your
.NET code that runs the transformation?

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/