Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] The meaning of the "string" datatype?

From: David Carlisle <davidc@---.--.-->
To: costello@-----.---
Date: 4/15/2009 12:18:00 PM
> it would be perfectly valid to place a billion characters between the start tag and end tag.
> Do you agree?

yes except it's nothing really to do with the string type or with XSD.
The same comments apply to well formed XML, or to DTD (PCDATA) or Relax
NG (text).

An actual processor of course will have implementation limits over and
above the XML well formedness requirements. Most have limits on the
length of element names, attribute values, and if they are building a
tree rather than just streaming they may well have limits on the size of
element content (your example) and/or the total size of the document.

SGML DTD used to allow you to specify all kinds of costraints such as
length of element names, total "capacity' etc in the SGML declaration
but XML simplified that all away by working in an idealised world where
the specification assumed processors with infinite capacity, and just
pragmatically allow them to fail when some system defined capacity is
exceeded.


David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent