You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Christopher Kelly <ch...@uk.yahoo-inc.com> on 2002/04/03 20:23:29 UTC
namespace prefixes with schema processing
i'm trying to work out why enabling schema processing disables namespace
prefixes in the parsed output. take the following example:
DOMPrint -n collection.xml
<collection xmlns:y="uri:yahoo" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xmlns:yes="uri:yes" xs:noNamespaceSchemaLocation="collection.xsd">
<instances>
<!--
<instance guid="MSD001"/>
<instance guid="MSD002"/>
-->
</instances>
<bootstrapGuid>bsp</bootstrapGuid>
<y:timeKeeper>
<created>1999-05-31T13:20:00.000-05:00</created>
<accessed xs:nil="true"/>
<modified xs:nil="true"/>
</y:timeKeeper>
</collection>
DOMPrint -n -s collection.xml
<collection xmlns:y="uri:yahoo" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xmlns:yes="uri:yes" xs:noNamespaceSchemaLocation="collection.xsd">
<instances>
<!--
<instance guid="MSD001"/>
<instance guid="MSD002"/>
-->
</instances>
<bootstrapGuid>bsp</bootstrapGuid>
<timeKeeper>
<created>1999-05-31T13:20:00.000-05:00</created>
<accessed xs:nil="true"/>
<modified xs:nil="true"/>
</timeKeeper>
</collection>
notice the y: has disapeared from <timeKeeper> - why is this?
this makes it impossible to serialise the instance document back to disk and
parse it again.
i have attached the schemas.
chris.
--
christopher kelly <ch...@uk.yahoo-inc.com>
yahoo! enterprise solutions, 10 ebury bridge road, london, sw1w 8pz
pgp public key: http://kuffworks.com/cck.pgp
tel: +44 (0)207 808 4525
gsm: +44 (0)7796 688 050
sms: page-cck197@uk.yahoo-inc.com
Re: namespace prefixes with schema processing
Posted by Tinny Ng <tn...@ca.ibm.com>.
I think there is a bug. Would you please open a bugzilla bug report?
Thanks!
Tinny
----- Original Message -----
From: "Christopher Kelly" <ch...@uk.yahoo-inc.com>
To: <xe...@xml.apache.org>
Sent: Wednesday, April 03, 2002 1:23 PM
Subject: namespace prefixes with schema processing
> i'm trying to work out why enabling schema processing disables namespace
> prefixes in the parsed output. take the following example:
>
> DOMPrint -n collection.xml
>
> <collection xmlns:y="uri:yahoo"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xmlns:yes="uri:yes"
xs:noNamespaceSchemaLocation="collection.xsd">
>
> <instances>
> <!--
> <instance guid="MSD001"/>
> <instance guid="MSD002"/>
> -->
> </instances>
> <bootstrapGuid>bsp</bootstrapGuid>
> <y:timeKeeper>
> <created>1999-05-31T13:20:00.000-05:00</created>
> <accessed xs:nil="true"/>
> <modified xs:nil="true"/>
> </y:timeKeeper>
> </collection>
>
> DOMPrint -n -s collection.xml
>
> <collection xmlns:y="uri:yahoo"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xmlns:yes="uri:yes"
xs:noNamespaceSchemaLocation="collection.xsd">
>
> <instances>
> <!--
> <instance guid="MSD001"/>
> <instance guid="MSD002"/>
> -->
> </instances>
> <bootstrapGuid>bsp</bootstrapGuid>
> <timeKeeper>
> <created>1999-05-31T13:20:00.000-05:00</created>
> <accessed xs:nil="true"/>
> <modified xs:nil="true"/>
> </timeKeeper>
> </collection>
>
> notice the y: has disapeared from <timeKeeper> - why is this?
>
> this makes it impossible to serialise the instance document back to disk
and
> parse it again.
>
> i have attached the schemas.
>
> chris.
>
> --
>
> christopher kelly <ch...@uk.yahoo-inc.com>
> yahoo! enterprise solutions, 10 ebury bridge road, london, sw1w 8pz
> pgp public key: http://kuffworks.com/cck.pgp
> tel: +44 (0)207 808 4525
> gsm: +44 (0)7796 688 050
> sms: page-cck197@uk.yahoo-inc.com
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org