RELAX NG by Eric van der Vlist will be published by O'Reilly & Associates (ISBN: 0596004214)

You are welcome to use our annotation system to give your feedback.


Name

xsd:string — Any string.

Derived from:

xsd:anySimpleType

Primary:

xsd:string

Known subtypes:

xsd:normalizedString

Data parameters (facets):

enumeration, length, maxLength, minLength, pattern.

Synopsis

<xsd:simpleType name="string" id="string">
  <xsd:restriction base="xsd:anySimpleType">
    <xsd:whiteSpace value="preserve"/>
  </xsd:restriction>
</xsd:simpleType>

Description

The lexical and value spaces of xsd:string are the set of all possible strings composed of any character allowed in a XML 1.0 document without any treatment done on whitespaces.

Restrictions

This is the only datatype that leaves all the whitespaces. When whitespaces are not significant, xsd:token is preferred.

Example

The value of the following element:

<title lang="en">
  Being a Dog Is 
  a Full-Time Job
</title>

is the full string "Being a Dog Is a Full-Time Job", with all its tabulations and CR/LF if the title element is a xsd:string type .


You are welcome to use our annotation system to give your feedback.
[Annotations for this page]
All text is copyright Eric van der Vlist, Dyomedea. During development, I give permission for non-commercial copying for educational and review purposes. After publication, all text will be released under the Free Software Foundation GFDL.