[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML in String value

Subject: RE: XML in String value
From: Jeff Beadle <Jbeadle@xxxxxxxx>
Date: Tue, 22 Jan 2002 13:47:11 -0500
microsoft.xmldom string
you're missing one thing ... 


>     Set oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM")
>     Set oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM")
>     oXmlDoc.async = false
>     oXslDoc.async = false

	oXslDoc.validateOnParse = false

this will tell the msxsl parser to not attempt to validate the namespaces
included--and necessary for xsl--otherwise it'll fail validation every time.

If looked at the parse error results, you'd see the problem.  (See the msxml
sdk for more details ... I believe the interface is IXMLDOMParseError, you
can access this interface via the parseError member on the IXMLDOMDocument
interface).


-Jeff


-----Original Message-----
From: John_Radgowski@xxxxxxxxxxxxxxx
[mailto:John_Radgowski@xxxxxxxxxxxxxxx]
Sent: Tuesday, January 22, 2002 1:30 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  XML in String value


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

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.