[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: extract namespace
If you can do it in JAXP, it'd probably be a lot quicker. The XPath would be along the lines of the node selected in the <value-of/> below. That said, here's the XSLT: <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> <output method="text" encoding="utf-8" /> <template match="*"> <value-of select="concat('Default namespace: ', namespace::*[name() = ''])" /> </template> </stylesheet> If you run this against itself, you'll get: Default namespace: http://www.w3.org/1999/XSL/Transform Hope that helps. Cheers! ~ Scott -----Original Message----- From: IZASKUN GUTIERREZ GUTIERREZ [mailto:igutierrez027@xxxxxxxxxxxxx] Sent: Thursday, May 08, 2008 3:25 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: extract namespace Hello everybody! I need extract from the one document .xml the namesmace that dont have prefix for example xmlns = http://... Can I extract with JAXP or I need one template in XSLT to extract the namespace? Anybody can help me? Regards Izaskun
|
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
|