Hi,

I just found myself wondering whether support for whitespace handling
has been implemented fully with Castor XML or not. It looks like Castor
XML definitely can successfully handle the xml:space attribute just
fine.

But when starting with an XML schema and the usage of 

<xs:whitespace value="preserve" />

On a restriction that derives from <xs:string>, I am not sure whether
it's me who's thinking along the wrong lines or not.

Imagine an element within an XML document as follows:

<someElement> </someElement>

Even though I use the <xs:whitespace value="preserve" /> facet on the
simpl type definition for the 'someElement' element definition, Castor
monas at validation, telling me that the length of the value used has to
be of a minimum size of '1' (which happens to be another facet defined
on the same simple type).

Debugging shows that instead of " ", "" is passed around. Any idea why ?


Or in other words, who's wrong here ? 

- Castor ? 
- Me (conceptually) ? 

Thanks
Werner

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to