|
Subject: [xsl] XML in String value From: John_Radgowski@xxxxxxxxxxxxxxx Date: Tue, 22 Jan 2002 13:29:39 -0500 |
Hello all
Is it possible to use a string value instead of an XML file when applying
an XSL file. The XSL file appears to be parsing the XML if I put the XML
string into a file but does not if I have it in a string
ex:
Does not work:
sXml = (some XML string)
sXsl = "webmenu.xsl" --. XSL file on server
Set oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM")
Set oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM")
oXmlDoc.async = false
oXslDoc.async = false
oXmlDoc.load(sXml) --> not loaded from file
oXslDoc.load(Server.MapPath(sXsl))
Response.Write(oXmlDoc.transformNode(oXslDoc)) -> XSL file not
working correctly
Works: sXml = "webmenu.xml" --> file has same XML as string value
sXsl = "webmenu.xsl" --. XSL file on server
Set oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM")
Set oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM")
oXmlDoc.async = false
oXslDoc.async = false
oXmlDoc.load(sXml) --> not loaded from file
oXslDoc.load(Server.MapPath(sXsl))
Response.Write(oXmlDoc.transformNode(oXslDoc)) -> XSL file not
working correctly
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] outputting a mixture of e, Dean Missikowski | Thread | Re: [xsl] XML in String value, Jeni Tennison |
| Re: [xsl] outputting a mixture of e, Dean Missikowski | Date | Re: [xsl] Xalan ODBC extension - im, David N Bertoni/CAM/ |
| Month |