Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSLT - Issues with special characters  

$
0
0

Hi

In the example below, the xslt.load in vs2010 reports an error with line 5,  

Now on paper, this is a valid HTML code !!

Unfortunately a google search results in conflicting info.

>> I want to know what to do for XSLT to accept these or if i need to transform them ?

(i am guessing there maybe other codes it does not like)

There is web reference to " " but no mention of the function to do this for you.

HttpUtility.Decode() is happy with them as is Encode()

Thanks

pS: when you add a space using vs2010, it places the   in the html !

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
            xmlns:myObj="urn:PadRightFunc" xmlns:ns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"><xsl:output method="html"/><xsl:template match="/">&nbsp;<br /><strong>This is a test file for SERGE</strong><br />&nbsp;<br /><hr /><xsl:for-each select="ns:TestRun/ns:ResultSummary/ns:RunInfos/ns:RunInfo" ><br /><hr />
    Timestamp <xsl:value-of select="@timestamp" /><br /></xsl:for-each><br />&nbsp;<br /></xsl:template></xsl:stylesheet>



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>