Subject: RE: Ignore Namespace while transformation
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 28 Sep 2005 13:10:04 +0100
|
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
|