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

How to work xml string line with a xslt file

Subject: How to work xml string line with a xslt file
From: "Yang" <sfyang@xxxxxxxxxxxxx>
Date: Thu, 12 Apr 2001 18:40:13 +0800
string line
Hi,
      I have a problem of applying xslt file to a xml string.

      I try to apply the following typical  codings  which are using xml
file and xsl file to work our a html page
      for the xml string data.

      First ,I form a simple  xml string , <doc><d>10</d></doc>   and
directly insert it as argument of source.load like this

           source.load('<doc><d>10</d></doc>')    but I got a blank page.

      Then change to   source.loadxml(xmlstring) command  I got error
message that the object is not supported.
       I am using IE5.5  msxml3.

      Please someone give me a help.

      ** typical processing xml and xsl coding;***
       source = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
                source.async = false;
                source.load('a.xml');

                style = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
                style.async = false;
                style.load('a.xsl');

                transformer = new ActiveXObject("MSXML2.XSLTemplate");
                transformer.stylesheet = style.documentElement;

                var xslproc = transformer.createProcessor();
                xslproc.input = source;
                xslproc.addParameter("ProdCode", prodcode);

                xslproc.transform();...


 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.