Skip Menu |

This queue is for tickets about the XML-Validator-Schema CPAN distribution.

Report information
The Basics
Id: 8603
Status: new
Priority: 0/
Queue: XML-Validator-Schema

People
Owner: Nobody in particular
Requestors: jacob [...] j-e-b.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.08
Fixed in: (no value)



Subject: Namespace Issue
I know namespace support is somewhat, um, non-existant, but this backfired on me just reverse of what I expected. Here's the schema I created with IBM Websphere Studio Application Developer: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com" xmlns:midgard="http://www.ibm.com"> <element name="PRCHAR01"> <complexType mixed="false"> <sequence> <element ref="midgard:Name"></element> <element ref="midgard:Geschlecht"></element> </sequence> </complexType> </element> <element name="Name" type="string"></element> <element name="Geschlecht"> <simpleType> <restriction base="string"> <enumeration value="m"></enumeration> <enumeration value="w"></enumeration> </restriction> </simpleType> </element> </schema> And this XML was automatically created by WSAD from the schema: <?xml version="1.0" encoding="UTF-8"?> <midgard:PRCHAR01 xmlns:midgard="http://www.ibm.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com midgard.xsd "> <midgard:Name>midgard:Name</midgard:Name> <midgard:Geschlecht>m</midgard:Geschlecht> </midgard:PRCHAR01> and now I get: Inside element 'PRCHAR01', element 'Name' does not match content model '(midgard:Name,midgard:Geschlecht)'. Oops? I would have expected a "'midgard:Name' does not match (Name,Geschlecht)", but that one? Is there an easy way to preserve the namespace when checking (or drop it when compiling the Schema)? Wishlist for 1.09, of cause. Until then I'll manually edit my schemas...