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

How to find out the namespace prefix

Subject: How to find out the namespace prefix
From: Kenneth Stephen <marvin.the.cynical.robot@xxxxxxxxx>
Date: Fri, 21 Jan 2005 17:46:13 -0600
prefix for out
Hi,

    I am processing an XML Schema document with XSL. Here is a small snippet :

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ewcm="http://w3.ibm.com/standards/xml/released/ewcm"
	targetNamespace="http://w3.ibm.com/standards/xml/released/ewcm"
	elementFormDefault="qualified">
    <xsd:element name="Metadata">
.
.

     What I'd like to do when processing the "<xsd:element
name="Metadata" line is to print out "ewcm:Metadata" . I can figure
out the URI to the namespace for Metadata by looking at the
"targetNamespace" attribute. How can I figure out if a prefix has been
defined for that namespace and if so what it is (in this case, it is
"ewcm")?

Thanks,
Kenneth

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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