[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Is a token element with a carriage return, or leading/trailing spaces, valid?

From: Costello, Roger L. <costello@mitre.org>
Date: Thu, 15 Feb 2007 10:47:32 -0500
Message-ID: <B8415163A689094689542C617ECA0366016652B4@IMCSRV5.MITRE.ORG>
To: <xmlschema-dev@w3.org>
Is a token element with a carriage return

Hi Folks,
 
Consider this element declaration:
 
      <element name="Title" type="token"/>

And consider these two instances of the element:

      <Title>My Life and 
      Times</Title>

      <Title> My Life and Times </Title>

In the first instance, the data has a carriage return.

In the second instance, the data has leading and trailing spaces.

Are the instances valid or invalid?

    XML Spy says they are invalid.

    Oxygen XML says they are valid.

Which is correct?

/Roger
Received on Thursday, 15 February 2007 15:47:42 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.