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

Modifying namespace definitions in xs:schema elements

Subject: Modifying namespace definitions in xs:schema elements
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Sat, 10 Oct 2009 21:09:26 +0200
 Modifying namespace definitions in xs:schema elements
Hi,

given an XML Schema, I should split this schema into two parts,
according to properties of elements and complex/simpleTypes.
Basically, I've succeeded to do this, using a couple of XSLT
transformations. But...

The original schema contains <xs:schema ... xmlns="a.b"
targetNamespace="a.b" ...>. I would like to modify this for one of the
results of the filtering, to become, e.g., xmlns="a.b.c"
targetNamespace="a.b.c". (The ultimate goal is to separate the
definitions made by the splt schemas into two different namespaces.)

Exploring the set of attributes in xs:schema (by <xsl:choose>
<xsl:when test="true()"> <xsl:value-of
select="concat(namespace-uri(),local-name())"/>...) has shown me that
the namespace definitions (xmlns="...") are not passed to template
processing.

Does this mean that what I want to be done cannot be achieved at all,
using XSLT techniques?

Thanks
-W

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.