|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Problem using Muenchian method (apply-templates or
-----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Saldate, DanielX Sent: Monday, May 20, 2002 11:36 AM To: XSL List (E-mail) Subject: Problem using Muenchian method (apply-templates or key) with MSXML 3.0 & 4.0 > I've run into an interesting problem with MSXML 3.0 SP2 and 4.0 SP1. This > seems to be related to invoking either of these parsers from code, but I'm > not absolutely sure yet. > I have an XML data island embedded into a web page that looks somewhat like > the XML pasted below. Remove the XML node in your stylesheet's XPath statements. Using the following code, <html> <xml id="XMLData"> <foo> <bar>test</bar> </foo> </xml> <script language="javascript"> function myfunc() { var doc = new ActiveXObject("Microsoft.XMLHTTP"); xmlHTTP.Open ("POST", "MyPage.asp", false); xmlHTTP.Send (XMLData.xml); } </script> <body onload="javascript:myfunc()"> </body> </html> Only the elements "foo" and "bar" and the child text node are transmitted: the "xml" tag is a client-side identifier and is not part of the XML structure. So, the document node is being matched, giving you the HTML result in the root template match, but none of the other XML data can be matched because there is no "XML" node in the document. Kirk Allen Evans "XML and ASP.NET", New Riders Publishing Available at Amazon.com http://www.amazon.com/exec/obidos/ASIN/073571200X XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








