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

Re: XML namespaces problem

Subject: Re: XML namespaces problem
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Wed, 30 Nov 2005 12:11:29 +0100
xml namespace xpath problem
Andrew Ballantine wrote:

>Hi there,
>
>I am having a problem with XML namespaces being present on a message that I am attempting to transform. 
>
>The namespace xlmns="..." (actual namespace removed but it is a valid url - no actual data there though) in the first element is causing XSL to fail to be able to transform the message properly. With this removed, it works fine, but with it present, it does not. Is there any way I can get XSL to disregard the namespace or otherwise work around this problem, without pre-transforming using another XSL file?
>  
>

is this namespace defined in your XSLT as well ? if not your selects,
xpath etc...most likely wont return anything because XSLT cant address
the
elements/attributes....http://www.rpbourret.com/xml/NamespacesFAQ.htm is
always a good starting point to understand namespaces.

when u say 'fail to transform'....whats the error message (and what XSLT
processor u using?).

>Also interestingly enough, if the namespace is prefixed (i.e. takes the form xmlns:prefix="..."), then I can "avoid" the problem by using relative paths from the following element. However, in this case the namespace is not prefixed and is causing the XSL to fail to transform the message properly.
>  
>

a short xml and xslt representative example would probably let us help u
more.

gl, Jim Fuller

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.