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

Re: [SML] Re: SML ?!?

  • From: "Liam R. E. Quin" <liamquin@i...>
  • To: xml-dev@i...
  • Date: Fri, 26 Nov 1999 23:46:39 -0500 (EST)

pictuers
On Fri, 26 Nov 1999, James Tauber wrote:
[...]
> Why? Because in *markup* there is a distinction between content and markup.

That I agere with.

> The character data content of an element is content. The value of an
> attribute is markup.

> Attributes, like other markup, provide information in
That is subjective, and I don't agree.
Nowhere is it stated in the XML spec that this must be so.

It is a useful convention that some people choose to follow.  One reason
I often advise people to follow it is that attribuets are syntactically
impoverished in XML, as in SGML, and can't contain sub-elements.  As
a result,
    <document title="pictuers ofmy dog"> ... </document>
sort of works, but
    <document title="e = m c <sup>2</sup"> .. </document>
fails miserably (is not even well-formed XML, and certainly does not
"mean" what one might hope).

The Text Encoding Initiative P3 Guidelines provide other ways of
representing the difference between a reviewer's comments and original
content, and also of representng uncertainty in the reading of a text
that one is transcribing.

Restricting editorial comment to attributes seems to me to give it
some pretty severe limits.  What if you want to add a footnote with
a cross reference?

I agree that attributes can be useful, and that there are several
sets of conventions when make a distinction between "content" and
"markup" in some way that may consider attributes to be part of
markup.

However, let's not make the mistake of saying that that's the only
way to use XML.

For my own part, I'd be giernally be willing to accept this:
    <e>
      <xml:atts>
	<att>value</att>
	<att>value</att>
      </xml:atts>
      content
    </e>
(just as an example, not intended as a specific proposal) which retains
the distinction ebtween attributes and content, but does not need the
extra syntactic form.  But I'm happy with attributes too.

I think attribtues actually fall into the category of things that if
the average writer of an HTML browser can understand, they must be
pertty simple :-) :-) :-)

-- 
Liam Quin, Barefoot Computing, Toronto;  The barefoot agitator
l i a m q u i n     at    i n t e r l o g    dot   c o m
Ankh on irc.sorcery.net, http://www.valinor.sorcery.net/~liam/


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.