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

RE: Default namespace problem

Subject: RE: Default namespace problem
From: "Jacoby, Peter R." <PJACOBY@xxxxxxxxxxxx>
Date: Wed, 31 Aug 2005 16:06:54 -0400
r namespace
> XML:
> <OrderRequest xmlns:bt="http://www.csgsystems.com/bta">
>
> Works fine!!
>
> But if XML has a default namespace instead:
>
> XML:
> <OrderRequest xmlns="http://www.csgsystems.com/bta">
>


Those two OrderRequest elements are *very* different.  The first is in no
namespace (or the same as its parent), the second is explicitly in the
{ttp://www.csgsystems.com/bta} namespace.

If your XSLT matches OrderRequest in no namespace (which it probably does if
the
first XML works) then when you try to run it against the second version it
will
not match.  In order to match you would have to change your XSLT to
match="bt:OrderRequest" where bt has been bound to the correct URI (which it
has
from the excerpt you originally posted).

Hope this helps.

-Peter

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.