[Om3] Content of CDName and other texts: with or w/o whitespace?
Christoph LANGE
ch.lange at jacobs-university.de
Mon May 26 19:44:06 CEST 2008
Dear all,
finally finishing the support for importing OpenMath CDs into SWiM, I
realised that leading and trailing whitespace is used for the content of the
Name, CDName, and other elements, and that this is apparently valid w.r.t. the
Relax NG Schema. However, I think it makes it quite hard to process CDs
automatically, as the programmer (me in this case) always has to remember that
there can be whitespace and thus must wrap any reference to the content of
such an element into some function like normalize-space() in XPath or trim()
in many other languages. Is this intended, to make the CD XML source code more
readable, or should we rather do away with it?
Best,
Christoph
--
Christoph Lange, DERI Galway/Jacobs Univ. Bremen, http://kwarc.info/clange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://openmath.org/pipermail/om3/attachments/20080526/7195f1ab/attachment.pgp
More information about the Om3
mailing list