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

Re: question on default namespace

Subject: Re: question on default namespace
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 09 Mar 2009 09:20:59 -0400
Re:  question on default namespace
At 2009-03-09 14:10 +0100, Torsten Schassan wrote:
I tried to transform a document with a default namespace. In the result
I wanted to include the contents of another document that is in no
namespace. The xslt-snippet below didn't work, only when I deleted the
xpath-default-namespace and added to all elements processed the
namespace it worked. Are there any other solutions that include the
xpath-default-namespace?

You can declare xpath-default-namespace any number of times by adding it to *any* instruction using:


xpath-default-namespace=

... or to any literal result element using:

xsl:xpath-default-namespace=

There is no obligation to use it only on the document element.

It has scope for all the descendants until it hits another such declaration

Can I "reset" an xpath to no use of a namespace?

Any time you want. Just use an empty string.


I hope this helps.

. . . . . . . . . Ken

--
XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz
XQuery/XSLT/XSL-FO training in Los Angeles/Anaheim - 2009-06-01/10
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.