|
Subject: [xsl] MS XML Parser From: "Ruane, Conleth" <Conleth.Ruane@xxxxxxxxxx> Date: Fri, 16 Nov 2001 08:59:14 +0100 |
I'm having a problem that I think has to do with the MS XML Parser.
the XSL snippet:
<someTag><xsl:text
disable-output-escaping="yes">XXXX&#x0D;&#x0A;YYYY</xsl:text></s
omeTag>
outputs
<someTag>XXXX
YYYY</someTag>
when processed by Saxon, which is what I want,
but the following VB code in an asp page produces just
<someTag>XXXX
YYYY</someTag>
The line is a Unix linefeed (just 1 character) instead of DOS linefeed
which is what I want.
*******************************
' load the xml message sent
set doc = Server.CreateObject("Msxml2.DOMDocument.3.0")
doc.async=false
doc.resolveExternals = false
doc.validateOnParse = false
doc.load Request
' check for errors
if doc.parseError <> 0 then
writeFail "Error parsing initial XML message: " &
doc.parseError
cleanUpAsp
Response.End
end if
' XSL Transformation
'Load the XSL
set xsl = Server.CreateObject("Msxml2.DOMDocument.3.0")
xsl.async = false
xsl.load Server.MapPath("xslScript")
'Transform
set sblDoc = Server.CreateObject("Msxml2.DOMDocument.3.0")
sblDoc.async = false
sblDoc.validateOnParse = true
sblDoc.preserveWhiteSpace = true
Doc.preserveWhiteSpace = true
doc.transformNodeToObject xsl, sblDoc
********************************************
sblDoc.xml then contains
<someTag>XXXX
YYYY</someTag>
It seems that DOMDocument is interpreting the escaped chars again before
outputing the XML
Any ideas how I can force the required output.
Conleth Ruane
> COMPAQ EMEA HQ IM, Munich
Telephone: +49-89-9392-4393
mailto:Conleth.Ruane@xxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] XSLT on a client side in , Vadim Permyakov | Thread | RE: [xsl] MS XML Parser, Julian Reschke |
| Re: [xsl] xls to XML, Deruyck Serge | Date | Re: [xsl] Getting attribute from ro, Ragulf Pickaxe |
| Month |