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

Namespace prefixes in Schemas

Subject: Namespace prefixes in Schemas
From: "António Mota" <amsmota@xxxxxxxxx>
Date: Tue, 15 Aug 2006 23:46:27 +0100
 Namespace prefixes in Schemas
Hello all:

It's been a while since i don't work with XML, so bear with me if this
is a stupid question...

Isaw several Schemas that have the xs namespace, like

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

and then the elements and type are referenced as

<xs:element name="Titulo" type="xs:string"/>

But i also saw the same thing with

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="Titulo" type="xsd:string"/>

and others with

<schema xmlns="http://www.w3.org/2001/XMLSchema">

<element name="Titulo" type="string"/>

My problem is that i'm transforming a schema in something else, and i
need to access some nodes with XPath expression, like

//elements

to access all the elements of the Schema

So how can i know what is the prefix that a random Schena is using, or
how can i access nodes independently of their prefixes?


Thanks all.


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.