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

RE: extract namespace

Subject: RE: extract namespace
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Thu, 8 May 2008 15:46:32 -0500
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() = ''])" />

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

for example

xmlns = http://...

Can I extract with JAXP or I need one template in XSLT to extract the

Anybody can help me?



Current Thread


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.
First Name
Last Name
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.