WXS: whiteSpace

Discussion in 'XML' started by Gustaf Liljegren, Aug 26, 2003.

  1. I've got a few questions about the whiteSpace facet.

    1. It seem to differ from the other factes, because it *modifies* the
    value instead of checking it. Is this correct?

    2. Is this change kept after validation? Will a schema parser report the
    value according to the whiteSpace facet? Or is the modified value only
    for validation purposes?

    3. Does whiteSpace have priority over the other facets? That is, is this
    element correct

    <a>1234</a>

    according to this simple type:

    <xsd:simpleType name="something">
    <xsd:restriction base="xsd:string">
    <xsd:whiteSpace value="collapse"/>
    <xsd:length value="4"/>
    </xsd:restriction>
    </xsd:simpleType>

    Thanks,

    Gustaf
     
    Gustaf Liljegren, Aug 26, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. threecrans
    Replies:
    0
    Views:
    1,470
    threecrans
    Jul 3, 2003
  2. Oli Filth
    Replies:
    9
    Views:
    3,365
    Uncle Pirate
    Jan 17, 2005
  3. Gustaf Liljegren

    WXS: Empty element with attributes

    Gustaf Liljegren, Aug 21, 2003, in forum: XML
    Replies:
    1
    Views:
    500
    Gustaf Liljegren
    Aug 21, 2003
  4. Replies:
    10
    Views:
    800
    Eric Brunel
    Dec 16, 2008
  5. MRAB
    Replies:
    3
    Views:
    408
Loading...

Share This Page