[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Suggestions for a slightly less verbose (and easier to author) XML

  • To: <xml-dev@l...>
  • Subject: Suggestions for a slightly less verbose (and easier to author) XML
  • From: "Rob Lugt" <roblugt@e...>
  • Date: Sun, 23 Jun 2002 21:38:39 +0100

less verbose
Last week there were a few posts regarding making XML less verbose.  I'm
quite sure these suggestions must have been aired before, but how about
adding the following simplifications to XML 1.2?

1)  Allow </> as an abbreviation for any closing tag.  After all
<xsl:template>...</xsl:template> is rather long-winded and the element name
in the closing tag is completely redundant.  I believe the closing tag
syntax is probably a throw-back to SGML compatibility, but if XML 1.x
discards that baggage then I think this would be a good thing to do.  I for
one get fed up with typing this redundant information especially when
authoring XSLT stylesheets.

The ETag production would change to

[42]    ETag    ::=    '</' Name? S? '>'

If Name is specified (it's optional), it must match Name from the STag
production.

2)  Allow non-quoted simple parameter values.  Sometimes I get caught out
when copying-and-pasting HTML into my XML documents because the parameter
values are unquoted.  I'm not sure why XML added this constraint - perhaps
to make parsing easier?  Anyway, I would like to be able to specify NmToken
values without having to use quotes like so:
<test p1="not a nmtoken" p2=3.0 p3=1 p4=nmtoken/>

The AttValue production would need to change to:

[10]    AttValue    ::=    '"' ([^<&"] | Reference)* '"'  |  "'" ([^<&'] |
Reference)* "'"  | NmToken

3)  Remove the restriction preventing ]]> from being included in PCDATA.
This was only included "for compatibility" anyway.

These suggestions have the virtue of being backwards compatible because they
would not break any existing well-formed documents.

All the best
~Rob

--
Rob Lugt
ElCel Technology
http://www.elcel.com/



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.