Subject: RE: [xsl] extract namespace From: "Scott Trenda" <Scott.Trenda@xxxxxxxx> Date: Thu, 8 May 2008 15:46:32 -0500 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] extract namespace, IZASKUN GUTIERREZ GU | Thread | RE: [xsl] extract namespace, Michael Kay |
[xsl] extract namespace, IZASKUN GUTIERREZ GU | Date | RE: [xsl] Help with an xsl:if, Michael Kay |
Month |