Subject: Re[2]: [xsl] How do you un-escape in HTML From: Arthur Maloney <ArthurMaloney@xxxxxxxxxx> Date: Fri, 12 Dec 2003 10:21:07 +0000 |
Hello David, David thank you for your response you are correct it is some kind of double escaped. I've traced this back to MSXML4 both sp1 & sp2. Should it behave like this, or is this a bug of some kind? In my code: fld is a field in an adodb recordset from an SQL Server 2000 Database eltColumn is a document element MSXML2.IXMLDOMElement Case Else strColValue = validXMLContent(fld.Value) eltColumn.Text = strColValue end case Original value ? fld.Value allowed on 'background-position' This is converted to valid xml content strColValue= "allowed on 'background-position'" Which I think is correct XML. When I look at whats inside using text method. ? eltColumn.text allowed on 'background-position' This agrees with my input. When I look at the built DOM ? eltColumn.text allowed on 'background-position' However when I use the xml method it is double escaped?. ?eltcolumn.xml <percentage>allowed on &apos;background-position&apos;</percentage> DC> No. If you had that you would be fine and it would all just work DC> (although actually you don't need to quote ' as ' unless you want DC> to) DC> What you have is double escaped, first you have replaced ' by &_apos; DC> then you have replaced that by &_amp;apos; DC> The solution is not to do that. DC> David -- Best regards, Arthur mailto:ArthurMaloney@xxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How do you un-escape in H, David Carlisle | Thread | RE: Re[2]: [xsl] How do you un-esca, Andreas L. Delmelle |
RE: [xsl] Why template match differ, SHEIKH Sajjad | Date | [xsl] Re: Re: Re: Re: Unbounded ele, Dimitre Novatchev |
Month |