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

RE: Ignore Namespace while transformation

Subject: RE: Ignore Namespace while transformation
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 28 Sep 2005 13:10:04 +0100
ignore namespace
An element name consists of two parts: the namespace name and the local
name. Asking to ignore the namespace is the same as asking to ignore the
local name. You can ignore both by using *. You can ignore the local name by
using prefix:*. In 2.0 you can ignore the namespace using *:local. This
isn't available in 1.0, on the theory that a local-name is meaningless
unless you know what namespace it is in.

Michael Kay
http://www.saxonica.com/ 


> -----Original Message-----
> From: jaya vardhani [mailto:jayavardhani@xxxxxxxxxxx] 
> Sent: 28 September 2005 07:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Ignore Namespace while transformation
> 
> Hi
> 
> My XML goes like this:
> 
> <?xml version="1.0"?>
> <SubmitRequestResponse xmlns="urn:Cserv.CWS">
>   <SubmitRequestResult>
>     <CAPI xmlns="http://integration.api.com"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
> xsi:schemaLocation="http://integration.api.com
> DocumentInquiry.xsd">
> 	<CHeader Version="2.0">
>            ..............
>         </CHeader>
>     </CAPI>
>   </SubmitRequestResult>
> </SubmitRequestResponse>
> 
>    In my xsl i am not able to match with any element
> pattern from the XMl. When i remove the xmlns from
> <SubmitRequestResponse> and <CAPI> elements its
> working fine. Is there any way that i can transform
> the XML without taking these namespaces into
> consideration? Please give a solution.
> 
> Thanks&Regards,
> Jaya M.
> 
>  
>   
> 
> 
> 		
> __________________________________________________________ 
> Yahoo! India Matrimony: Find your partner now. Go to 
> http://yahoo.shaadi.com

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.