Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: suitable data type to store patterns..

From: "Michael Kay" <mike@--------.--->
To: "'dave'" <ceek63@-----.--->, <xmlschema-dev@--.--->
Date: 1/10/2008 5:58:00 PM
> I need to store some pattern values such as "[/<*ab^&[[1"  
> (excluding quotes) in XML. What would be the data type for an 
> element which would store such values as is?

xs:string. Of course, if there are any restrictions on the characters that
may appear, then you can use a type derived form xs:string by restriction.
But you haven't mentioned any such restrictions.

Of course, special characters such as "<" and "&" will have to be escaped as
in any well-formed XML document. The schema type doesn't affect that.
> 
> So that when I parse this element, I should be able to get 
> the raw value as is. 

> I guess I am referring to any Entity 
> translations occurring in this context.

I think this sentence may be the key to understanding your question, but I
really don't know what you mean by it. Schema validation is applied to the
content of elements and attribute after entity references have been
expanded. There is no way in the schema of constraining whether and where
entities can be used.

Michael Kay
http://www.saxonica.com/


From gokuiuc@y... Fri Jan 11 00:10:49 2008
Received: from maggi


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