[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] =?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Should_XML_applications_follow_Postel?==
On Thu, Apr 19, 2018 at 11:55 PM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:
I agree with that as far as it goes. The reason for escaping all > characters is that although the rule that specifies when they MUST be escaped is well-embodied in software, it isn't well-known to document authors; it rarely comes up and so is easily missed. Similarly, it's easy to get the 9-character token "<![CDATA[" subtly wrong, in which case it will not do what the author expects.
If you are writing a generic XMLWriter component, that's true. But it's commonplace for the "author" of a document nowadays to be another piece of software driven by higher-level concerns. If you are using XML to communicate, the details of how you use it are part of the implementation of that communication.
That would make hash of non-English character content, violating Goal 6 ("XML documents should be human-legible and reasonably clear.") Writing French or Greek or Hindi text with HNCRs is a non-starter, and even if you are allowed to write using, there are also the script-specific punctuation marks that aren't allowed in names. You really don't want them to be HNCRs either. In any case, my examples were just that, examples.
Certainly. Although I note that there is an XML plugin for gawk, which supplements the BEGIN and END patterns with things like XMLSTARTELEMENT. Pretty neat. There are similar plugins for JSON and Postgres. -- John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org weirdo: When is R7RS coming out? Riastradh: As soon as the top is a beautiful golden brown and if you stick a toothpick in it, the toothpick comes out dry.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|