[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] one element and two namespaces
hello there I have following xml code where same element has two different name spaces. <root> <first> <record></record> </first> <first xmlns="http://www.imsproject.org/metadata"> <record></record> </first> .... ..... ... </root> I am able to extract all the element with the name first except the one with this namespace declaration. I need to treat all element with the name "first" equally. Pls. help. thanks Sunil Dua -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Joseph Coffman Sent: Wednesday, August 22, 2001 8:22 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: XMLDOM xml to html translation problem I've searched high and low for a solution to this seemingly simple problem. I'm using ASP on a win2000 server machine running IIS5.0 and attempting to translate an xml to html using an xslt script I have written. I have found code in numerous places doing this translation serverside using the XMLDOM transformNode method. I have attempted to copy the code but as yet have been unable to make it function correctly. Rather than printing the translated HTML, it prints the xsl document to the client browser. Included below is the actual code being used, I would appreciate any feedback. thanks **************************************************************************** * <%@ LANGUAGE="VBSCRIPT" %> <!--#include file="adovbs.inc"--> <% resume_file = Request.querystring("resume") xml_file = Server.Mappath("xml/" + resume_file) xsl_file = Server.Mappath("xml/resume.xsl") set xmlPage = Server.CreateObject("Microsoft.XMLDOM") xmlPage.async = false xmlPage.load(xml_file) set xmlStyle = Server.CreateObject("Microsoft.XMLDOM") xmlStyle.async = false xmlStyle.load(xsl_file) Response.Write xmlPage.transformNode(xmlStyle) %> **************************************************************************** * At this point the client browser receives the xmlStyle page, NOT the translated page. Any idea why? Joseph Coffman 703 284 8624 703 486 4567 BBN Technologies A Verizon Company XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|