You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Keith Jensen <kj...@ellora.com> on 2001/04/17 05:37:35 UTC
[PATCH] [Bug 1328] New - Nested fails in 1.3.1 when the instance element is not in the same namespace as the parent element.
Per Ted Leung's directions for submitting a patch, I am submitting
this patch again. I've included a differences output this time, as
well as the patched file.
Thanks for any help reviewing and committing this change.
Keith Jensen
ActiveHealth Management
www.activehealthmanagement.com
Phone: 978-784-1153
Fax: 978-784-1158
> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: Thursday, April 12, 2001 5:06 PM
> To: xerces-j-dev@xml.apache.org
> Cc: kjensen@ahm-usa.com
> Subject: [Bug 1328] New - Nested <xsd:any namespace="#any"> fails in
> 1.3.1 when the instance element is not in the same namespace as the
> parent element.
>
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1328
>
> *** shadow/1328 Thu Apr 12 14:06:08 2001
> --- shadow/1328.tmp.26301 Thu Apr 12 14:06:08 2001
> ***************
> *** 0 ****
> --- 1,64 ----
> +
> +=============================================================
> ===============+
> + | Nested <xsd:any namespace="#any"> fails in 1.3.1 when the
> instance element |
> +
> +-------------------------------------------------------------
> ---------------+
> + | Bug #: 1328 Product:
> Xerces-J |
> + | Status: NEW Version: 1.3.1
> |
> + | Resolution: Platform: PC
> |
> + | Severity: Major OS/Version:
> Windows NT/2K |
> + | Priority: High Component:
> Schema-Structures |
> +
> +-------------------------------------------------------------
> ---------------+
> + | Assigned To: xerces-j-dev@xml.apache.org
> |
> + | Reported By: kjensen@ahm-usa.com
> |
> +
> +-------------------------------------------------------------
> ---------------+
> + | URL:
> |
> +
> +=============================================================
> ===============+
> + | DESCRIPTION
> |
> + In xerces-j 1.3.1 the behavior of <xsd:any
> namespace="#any"> has changed from
> + xerces-j 1.3.0. In 1.3.0 I was able to use xsd:any to
> create a complexType that
> + allows any other elmement from any namespace as its
> content. In 1.3.1 an error
> + occurs if the matching element is in a different namespace
> than the parent
> + element.
> +
> + The following files can be used to reproduce this error:
> +
> + File: any.xsd
> +
> + <?xml version="1.0" encoding="UTF-8"?>
> + <xsd:schema
> + xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
> + xmlns:NS="http://www.any.com"
> targetNamespace="http://www.any.com"
> + xmlns:NS1="http://www.any1.com"
> + elementFormDefault="qualified">
> +
> + <xsd:import namespace="http://www.any1.com"
> schemaLocation="any1.xsd"/>
> + <xsd:complexType name="elemType">
> + <xsd:sequence minOccurs="1" maxOccurs="1">
> + <xsd:any namespace="##any" minOccurs="1"
> + maxOccurs="1"/>
> + </xsd:sequence>
> + </xsd:complexType>
> +
> + <xsd:element name="elem" type="NS:elemType" minOccurs="1"
> + maxOccurs="1"/>
> + </xsd:schema>
> +
> +
> + File: any.xml
> +
> + <?xml version="1.0" encoding="UTF-8"?>
> + <NS:elem
> + xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
> + xmlns:NS="http://www.any.com"
> + xmlns:NS1="http://www.any1.com"
> + xsi:schemaLocation="http://www.any.com any.xsd"
> + >
> + <NS1:elem1>arbitray string</NS1:elem1>
> + </NS:elem>
> +
> +
> + Here is the output from validation of th einstance document.
> +
> + Parsing file: e:\xml\ahmif\spreadsheet\any.xml
> + Document parsing failed as follows:
> + [Error] :9:12: The content of element type
> "NS:elem" must
> + match "##any:uri=http://www.any.com".
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>