Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / February 2007

Tip: Looking for answers? Try searching our database.

Translate() doesn't work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gaurav - 23 Feb 2007 02:00 GMT
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/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.