![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Schema to express fixed length fields within a tag. [Thread Next] RE: Schema to express fixed length fields within a tag.To: "'kurt steele'" <kurtsteele@-----.--->, <xmlschema-dev@--.---> Date: 9/28/2005 10:32:00 AM > I have an XML document containing this set of fixed-length > within a tag: > > <?xml version="1.0"?> > <data>8.5 6.54 3.11 6.76 123.0</data> > > These are dew point readings from a sensor, each field is 5 > bytes long. What would be a schema for this instance? Can a > schema describe untagged data? You can describe this as a space-separated list of decimals. You might also be able to devise a pattern that constrains each decimal to occupy five character positions (not bytes!) but I'm not sure I would bother. > > Right now I let this lite XML to flow over the wireless > connection then use XSL to generate a fully tagged document. > My schema describes the latter. Can a reference to a > stylesheet be embededded in a schema such as to say, "apply > this transform to the data before validating"? No, but you can write a schema-aware XSLT 2.0 stylesheet that invokes schema validation on its output. Michael Kay http://www.saxonica.com/ From shashikala_shamarao@y... Wed Sep 28 21:57:02 2005 Re | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
