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

Managing namespaces ... again

Subject: Managing namespaces ... again
From: "Georg Hohmann" <georg.hohmann@xxxxxxxxx>
Date: Mon, 19 Jun 2006 10:59:26 +0200
managing namespaces
Hi,

i've asked a namespace-problem before but here i have another one
which might be solved if someone could push my nose on the right
xsl-function.

I have a source xml with a single namespace like this:

<exp:test xmlns:exp="http://www.whatever.xyz">
  <exp:tag1>Content</exp:tag1>
  <exp:tag2>Content</exp:tag2>
<exp:test>

I want to generate a target xml file which uses another namespace but
not the one from the source file. To adress the nodes in the source
file i declare the source namespace (exp) in combination with the
target namespace (new) inside the xslt like this:

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exp="http://www.whatever.xyz"
xmlns:new="http://www.whatever2.xyz">

The target xml file now has both namespaces declared inside the root
element, but i only want the new one to be declared. Is there a way to
suppres the output of a specific namespace in the target?

Greetings,
GH

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.