xsl-list
[Top] [All Lists]

RE: Default namespace problem

2005-08-31 13:06:54
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>