Uche Ogbuji | 31 May 2012 19:43
Gravatar

"Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

I'm hoping this helps spread the word and rekindle discussion of MicroXML and related developments.

http://www.ibm.com/developerworks/opensource/library/x-microxml1/index.html

"Parts of the XML community have always grumbled that XML is difficult to understand and process. XML is fundamentally complex, for a variety of historical reasons, and people have proposed simplified versions for over a decade. HTML5 has become a threat to some of XML's most basic tenets, causing much discussion. From those discussions, MicroXML has emerged. MicroXML, a backward-compatible simplification of XML, is significant because of the stature of some of the individuals involved and because of the timing. John Cowan has already developed a MicroXML parser in Java™ and other related tools. In this article, learn about MicroXML and its technical differences from XML 1.x and related standards."

--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
John Cowan | 31 May 2012 20:51

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Uche Ogbuji scripsit:

> I'm hoping this helps spread the word and rekindle discussion of MicroXML
> and related developments.
> 
> http://www.ibm.com/developerworks/opensource/library/x-microxml1/index.html

Thanks so much!  This is an excellent article and I hope it will attract
more attention to MicroXML.  "One person is a crank, two are a conspiracy,
three are a movement."

Here are my <minor-nits/>.

--

-- 
De plichten van een docent zijn divers,         John Cowan
die van het gehoor ook.                         cowan <at> ccil.org
      --Edsger Dijkstra                         http://www.ccil.org/~cowan

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Peter Flynn | 26 Jun 2012 01:12
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

"Whitespace in attributes is not normalized in MicroXML as it is in XML."

While I don't see this as a particular problem (at least for my own
work), I'm curious as to why this approach was chosen. It certainly fits
the principle of least interference...was there some idea that web
designers might want to embed rather more in an attribute than most of
us would expect?

///Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 26 Jun 2012 09:06

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Peter Flynn scripsit:

> "Whitespace in attributes is not normalized in MicroXML as it is in
> XML."
>
> While I don't see this as a particular problem (at least for my own
> work), I'm curious as to why this approach was chosen. It certainly
> fits the principle of least interference...was there some idea that
> web designers might want to embed rather more in an attribute than
> most of us would expect?

Since there is no DTD, the only normalization you would get is changing
line endings inside attribute values to spaces.  This was primarily
to allow an attribute with space-separated values to be divided across
multiple lines, back in the day of 80-column maximum lines.

Quoth Tim Bray here on xml-dev in 2003:

"We screwed up in letting attribute normalization into XML.  It still
boggles my mind in retrospect that during the discussions back in 96-97,
nobody piped up to say 'why are you morons doing this?'  Because we
probably would have said 'D'oh, right, lose it.'  Sigh."  said it should
have been removed from XML in the first place.

Quoth James Clark in his blog:

"I think this has to go.  HTML5 does not do attribute value
normalization. This means that it is theoretically possible for a
MicroXML document to be interpreted slightly differently by an XML
processor than by a MicroXML processor.  However, I think this is
unlikely to be a problem in practice.  Do people really put newlines in
attribute values and rely on their being turned into spaces?  I doubt it."
it from MicroXML.

--

-- 
There is / One art                      John Cowan <cowan <at> ccil.org>
No more / No less                       http://www.ccil.org/~cowan
To do / All things
With art- / Lessness                     --Piet Hein

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 31 May 2012 21:27
Favicon

MicroXML and &

Uche's post about MicroXML reminded me...

Did we ever discuss the option of allowing & not followed by #, amp;, lt;, 
gt;, quot; or apos; to be considered simply as an & so you could do AT&T? 
This would make manually writing MicroXML a lot easier!

I guess that would be a breaking change which is why it hasn't been 
considered.  Maybe it can be considered for NanoXML!

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 31 May 2012 21:47
Picon
Favicon

Re: MicroXML and &

On Thu, 2012-05-31 at 20:27 +0100, Pete Cordell wrote:
> Uche's post about MicroXML reminded me...
> 
> Did we ever discuss the option of allowing & not followed by #, amp;, lt;, 
> gt;, quot; or apos; to be considered simply as an & so you could do AT&T? 
> This would make manually writing MicroXML a lot easier!

The first SGML document I ever worked on was about R&D at AT&T and it
took me ages to work out why it didn't parse :-)

I don't think banning &eacute; would fly - it's part of MathML and HTML.

It's possible that having the HTML + ISO + MathML entity sets hardwired
into Web browsers and explicitly allowing programs to handle undeclared
entities in such a way would get somewhere.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 31 May 2012 22:01
Favicon

Re: MicroXML and &

Original Message From: "Liam R E Quin"

>> Did we ever discuss the option of allowing & not followed by #, amp;, 
>> lt;,
>> gt;, quot; or apos; to be considered simply as an & so you could do AT&T?
>> This would make manually writing MicroXML a lot easier!
>
>...
>
> I don't think banning &eacute; would fly - it's part of MathML and HTML.

I think John already banned &eacute; :-)

I imagine with UTF-8 editors being more common the need for entities like 
&eacute; is reduced.  I don't know about the other MathML stuff.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 31 May 2012 22:15

Re: MicroXML and &

Liam R E Quin scripsit:

> I don't think banning &eacute; would fly - it's part of MathML and
> HTML.

MicroXML can't have it because of the XML backward compatibility rule
and the lack of DTDs.

> It's possible that having the HTML + ISO + MathML entity sets
> hardwired into Web browsers and explicitly allowing programs to handle
> undeclared entities in such a way would get somewhere.

There are 2236 entities in the current draft of the W3C entity set, but
only 2117 lines of Java in my parser.  I don't think I want to double
its size.

--

-- 
That you can cover for the plentiful            John Cowan
and often gaping errors, misconstruals,         http://www.ccil.org/~cowan
and disinformation in your posts                cowan <at> ccil.org
through sheer volume -- that is another misconception.  --Mike to Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 31 May 2012 23:09
Picon
Favicon

Re: MicroXML and &

On Thu, 2012-05-31 at 16:15 -0400, John Cowan wrote:
> Liam R E Quin scripsit:
> 
> > I don't think banning &eacute; would fly - it's part of MathML and
> > HTML.
> 
> MicroXML can't have it because of the XML backward compatibility rule
> and the lack of DTDs.

Unless we relaxed the corresponding unknown entity rule for XML viewers.

> > It's possible that having the HTML + ISO + MathML entity sets
> > hardwired into Web browsers and explicitly allowing programs to handle
> > undeclared entities in such a way would get somewhere.
> 
> There are 2236 entities in the current draft of the W3C entity set, but
> only 2117 lines of Java in my parser.  I don't think I want to double
> its size.

Not for microxml, no. Not sure you even need &lt; or &amp; given numeric
references.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rick Jelliffe | 1 Jun 2012 04:23
Picon

Re: MicroXML and &

On the other hand, the kind of complexity that extra lines in a table
cause is trivial, perhaps negligible after the first entry.   (You
wouldn't implement a  large lookup table as an if-then-else chain,
surely.)

I think it is only sound to use the Source Lines of Code metric to
measure code complexity when it is, for example, a reasonably proxy
for Decision Point Analysis or some other complexity with risk
attached: in the case of a lookup table (not used for jump vectors),
SLOC clearly isn't a reasonable proxy.   (It might be consideration if
you had to type numbers in by hand, due to the possibility of
transcription error, but I don't expect your would be doing that
either.)

The line argument is a little strange to me: if the absolute number of
lines is the problem rather than complexity (because you only have a a
certain number of sheets of paper in your printer? because you are
programming on an android phone screen?), you could just have multiple
entries per line.  Reduced to the absurd,  I guess it means we could
simplify the whole program by over 4000 times by putting everything on
one line?  :-)

Cheers
Rick

On Fri, Jun 1, 2012 at 6:15 AM, John Cowan <cowan <at> mercury.ccil.org> wrote:

> There are 2236 entities in the current draft of the W3C entity set, but
> only 2117 lines of Java in my parser.  I don't think I want to double
> its size.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 1 Jun 2012 05:38

Re: MicroXML and &

Rick Jelliffe scripsit:

> On the other hand, the kind of complexity that extra lines in a table
> cause is trivial, perhaps negligible after the first entry.   (You
> wouldn't implement a  large lookup table as an if-then-else chain,
> surely.)

It was a joke.  As I said before, I wouldn't add all those entities to
MicroXML, because it would break backward compatibility.

I just thought of a way of doing it, though: allow an extension to
the DOCTYPE that specifies the home on the W3C page of the entities.
Of course, MicroXML parsers won't actually load that; it'll just make
them switch on the entities.

-- 
John Cowan  cowan <at> ccil.org  http://ccil.org/~cowan
Linguistics is arguably the most hotly contested property in the academic
realm. It is soaked with the blood of poets, theologians, philosophers,
philologists, psychologists, biologists and neurologists, along with
whatever blood can be got out of grammarians. - Russ Rymer

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 1 Jun 2012 10:56
Picon
Favicon

Re: MicroXML and &

On 01/06/2012 04:38, John Cowan wrote:
> I just thought of a way of doing it, though: allow an extension to
> the DOCTYPE that specifies the home on the W3C page of the entities.
> Of course, MicroXML parsers won't actually load that; it'll just make
> them switch on the entities.

My preferred solution for xhtml would be more or less that, that

<!DOCTYPE html>
<html>

would gave exactly that effect. (which is I think compatible with an xml 
parser using the  doctype extension to xml catalogs allowing a default 
SYSTEM ID of

http://www.w3.org/2003/entities/2007/htmlmathml-f.ent

to be associated with the document element.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 1 Jun 2012 17:28
Picon

Re: MicroXML and &

> I just thought of a way of doing it, though: allow an extension to
> the DOCTYPE that specifies the home on the W3C page of the entities.
> Of course, MicroXML parsers won't actually load that; it'll just make
> them switch on the entities.

One possible solution is to pass through unknown entity refs
unchanged... no need to actually resolve it at parse time.

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 1 Jun 2012 22:12
Favicon

Re: MicroXML and &

Original Message From: "Andrew Welch"

>> I just thought of a way of doing it, though: allow an extension to
>> the DOCTYPE that specifies the home on the W3C page of the entities.
>> Of course, MicroXML parsers won't actually load that; it'll just make
>> them switch on the entities.
>
> One possible solution is to pass through unknown entity refs
> unchanged... no need to actually resolve it at parse time.

I really like this idea.  Then the entities can be application specific, 
although obviously the use of a common set is encouraged.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 1 Jun 2012 22:52
Picon
Favicon

Re: MicroXML and &

On 01/06/2012 21:12, Pete Cordell wrote:
>> One possible solution is to pass through unknown entity refs
>> unchanged... no need to actually resolve it at parse time.
>
>
> I really like this idea.  Then the entities can be application specific,
> although obviously the use of a common set is encouraged.

I thought the imposed constraint of xml compatibility meant this wasn't 
an option?

as John wrote earlier in the thread (about a different aspect)

> MicroXML can't have it because of the XML backward compatibility rule
> and the lack of DTDs.

You could use catalogs with xml to emulate any finite set of definitions
but you can't make every entity reference expand to itself in xml.

Unless you meant make the html entities expand to themselves and other 
entity references be an error?

David.

--

-- 
google plus: https:/profiles.google.com/d.p.carlisle

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 1 Jun 2012 23:00
Gravatar

Re: MicroXML and &

On Fri, Jun 1, 2012 at 2:52 PM, David Carlisle <davidc <at> nag.co.uk> wrote:

On 01/06/2012 21:12, Pete Cordell wrote:
One possible solution is to pass through unknown entity refs
unchanged... no need to actually resolve it at parse time.


I really like this idea.  Then the entities can be application specific,
although obviously the use of a common set is encouraged.

I thought the imposed constraint of xml compatibility meant this wasn't an option?

as John wrote earlier in the thread (about a different aspect)

I couldn't even support such an idea in principle. For me, one of the cornerstones of XML's value is in completely determining the lexical space. I think leaving entity interpretation to applications would kick a huge hole in that.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
Liam R E Quin | 1 Jun 2012 23:41
Picon
Favicon

Re: MicroXML and &

On Fri, 2012-06-01 at 15:00 -0600, Uche Ogbuji wrote:
[...]
> I couldn't even support such an idea in principle. For me, one of the
> cornerstones of XML's value is in completely determining the lexical space.
> I think leaving entity interpretation to applications would kick a huge
> hole in that.

Since an application can substitute an alternate DTD by mapping the
public or system identifier, this is the status quo today.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 1 Jun 2012 23:53
Gravatar

Re: MicroXML and &

On Fri, Jun 1, 2012 at 3:41 PM, Liam R E Quin <liam <at> w3.org> wrote:

On Fri, 2012-06-01 at 15:00 -0600, Uche Ogbuji wrote:
[...]
> I couldn't even support such an idea in principle. For me, one of the
> cornerstones of XML's value is in completely determining the lexical space.
> I think leaving entity interpretation to applications would kick a huge
> hole in that.

Since an application can substitute an alternate DTD by mapping the
public or system identifier, this is the status quo today.

So perhaps this is a matter of degree. For one thing, if an app does that, each entity will at least be consistently (mis)interpreted throughout the parse of the document, and this (mis)interpretation is still technically in the lexical domain.

If each entity were reported to the application for interpretation, you could have the app assign the same entity a completely different value at different points in the document, which is to me what makes it feel like a crossing of the line.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
Liam R E Quin | 2 Jun 2012 01:37
Picon
Favicon

Re: MicroXML and &

On Fri, 2012-06-01 at 15:53 -0600, Uche Ogbuji wrote:
> On Fri, Jun 1, 2012 at 3:41 PM, Liam R E Quin <liam <at> w3.org> wrote:
[...]

> If each entity were reported to the application for interpretation, you
> could have the app assign the same entity a completely different value at
> different points in the document, which is to me what makes it feel like a
> crossing of the line.

And yet there were examples of this in the SGML specification, using
NDATA entities to run external programs. Not a wise architecture if your
input is not trusted, perhaps, but that's beside the point. It's for
sure not an alien concept to SGML and XML.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 1 Jun 2012 23:42
Favicon
Gravatar

Re: MicroXML and &


> I couldn't even support such an idea in principle. For me, one of the 
> cornerstones of XML's value is in completely determining the lexical 
> space. I think leaving entity interpretation to applications would 
> kick a huge hole in that.
>
Actually, it strikes me as quite an intelligent layering. If xinclude 
processing can be done in a different layer from XML parsing, why not 
entity expansion? In fact, it's strongly arguable that it SHOULD be a 
separate process; one of the use cases for entity expansion is to give a 
level of indirection so that the same entity reference can be replaced 
by different text at different places/times, and that works much better 
if it isn't embedded in the parser.

But that raises the question of why a "MicroXML" standard should need 
entities at all. It can all be done with elements, and I thought the aim 
was to reduce the number of concepts?

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 1 Jun 2012 23:53

Re: MicroXML and &

& <.  
?

Sent from my iPad (excuse the terseness) 
David A Lee
dlee <at> calldei.com

On Jun 1, 2012, at 5:50 PM, "Michael Kay" <mike <at> saxonica.com> wrote:

> 
>> I couldn't even support such an idea in principle. For me, one of the cornerstones of XML's value is in
completely determining the lexical space. I think leaving entity interpretation to applications would
kick a huge hole in that.
>> 
> Actually, it strikes me as quite an intelligent layering. If xinclude processing can be done in a
different layer from XML parsing, why not entity expansion? In fact, it's strongly arguable that it
SHOULD be a separate process; one of the use cases for entity expansion is to give a level of indirection so
that the same entity reference can be replaced by different text at different places/times, and that
works much better if it isn't embedded in the parser.
> 
> But that raises the question of why a "MicroXML" standard should need entities at all. It can all be done
with elements, and I thought the aim was to reduce the number of concepts?
> 
> Michael Kay
> Saxonica
> 
> _______________________________________________________________________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 2 Jun 2012 03:08
Picon
Favicon

Re: MicroXML and &

On Fri, 2012-06-01 at 21:53 +0000, David Lee wrote:
> & <.  
> ?

&#38; &#60;.
?

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 2 Jun 2012 03:19

RE: MicroXML and &

> On Fri, 2012-06-01 at 21:53 +0000, David Lee wrote:
> > & <.
> > ?
> 
> &#38; &#60;.
> ?
>

are those not entities ?
I guess were talking about *named* entities ... or more likely I'm just confused.
I think allowing simply &amp; and &lt;  as special cases is sufficient ....
All the other fluff is unnecessary.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

> -----Original Message-----
> From: Liam R E Quin [mailto:liam <at> w3.org]
> Sent: Friday, June 01, 2012 9:08 PM
> To: David Lee
> Cc: Michael Kay; xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] MicroXML and &
> 
> On Fri, 2012-06-01 at 21:53 +0000, David Lee wrote:
> > & <.
> > ?
> 
> &#38; &#60;.
> ?
> 
> --
> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> Pictures from old books: http://fromoldbooks.org/
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Bjoern Hoehrmann | 2 Jun 2012 03:35
Picon

Re: MicroXML and &

* David Lee wrote:
>> On Fri, 2012-06-01 at 21:53 +0000, David Lee wrote:
>> > & <.
>> > ?
>> 
>> &#38; &#60;.
>> ?
>
>are those not entities ?

(XML considers them to be Numeric Character References instead.)
--

-- 
Björn Höhrmann · mailto:bjoern <at> hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 2 Jun 2012 04:25
Picon
Favicon

Re: MicroXML and &

On Sat, 2012-06-02 at 03:35 +0200, Bjoern Hoehrmann wrote:
> * David Lee wrote:
> >> On Fri, 2012-06-01 at 21:53 +0000, David Lee wrote:
> >> > & <.
> >> > ?
> >> 
> >> &#38; &#60;.
> >> ?
> >
> >are those not entities ?
> 
> (XML considers them to be Numeric Character References instead.)

Right. If we want minimal (micromal?) why have to ways of saying "<"?

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Mike Sokolov | 2 Jun 2012 14:51
Favicon

Re: MicroXML and &

On 6/1/2012 10:25 PM, Liam R E Quin wrote:racter References instead.)
> Right. If we want minimal (micromal?) why have to ways of saying "<"?
>
> Liam
>
I think the major confusion around entities always arose from their 
connection to DTDs. Having given up DTDs, MicroXML can then choose to 
build in some predefined entity definitions, or not.  It seems like a 
small issue?  But on the whole I think it would cause *more* confusion 
rather than less to drop &lt and &amp.  People are probably more 
familiar with those than with the numeric references. Just a feeling.

Mike

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 2 Jun 2012 15:46
Favicon

Re: MicroXML and &

Original Message From: "Mike Sokolov"

> On 6/1/2012 10:25 PM, Liam R E Quin wrote:racter References instead.)
>> Right. If we want minimal (micromal?) why have to ways of saying "<"?
>>
>> Liam
>>
> I think the major confusion around entities always arose from their 
> connection to DTDs. Having given up DTDs, MicroXML can then choose to 
> build in some predefined entity definitions, or not.  It seems like a 
> small issue?  But on the whole I think it would cause *more* confusion 
> rather than less to drop &lt and &amp.  People are probably more familiar 
> with those than with the numeric references. Just a feeling.

I agree that &lt; &amp; &quot; and &apos; need to be kept from a usability 
point of view.

Part of me would like to drop &gt; after a customer complained that we 
didn't use it in place of > and the remote system they were talking to 
rejected it.  But maybe that's more motivated by revenge and is a step too 
far!

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 2 Jun 2012 20:17
Favicon
Gravatar

Re: MicroXML and &


> I agree that &lt; &amp; &quot; and &apos; need to be kept from a 
> usability point of view.
>
>
Only if we're constrained by compatibility and tradition. If we were 
starting anew, It would be easy to define it so there is only one 
special character, namely <, which could be escaped by doubling it. Then 
perhaps use <10> or <0xA> for numeric character references, and <&mdash> 
for named entity references (if we think we need them).

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 3 Jun 2012 10:16
Favicon

Re: MicroXML and &

Original Message From: "Michael Kay"

>
>> I agree that &lt; &amp; &quot; and &apos; need to be kept from a 
>> usability point of view.
>>
>>
> Only if we're constrained by compatibility and tradition. If we were 
> starting anew, It would be easy to define it so there is only one special 
> character, namely <, which could be escaped by doubling it. Then perhaps 
> use <10> or <0xA> for numeric character references, and <&mdash> for named 
> entity references (if we think we need them).

Or use \ and be compatible with the tradition in the rest of the programming 
world :-)

<example attr="He said, \"Stop\"">
    Now & then he pressed the \\key instead of the \< key</example>

But...

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 3 Jun 2012 04:19

Re: MicroXML and &

Pete Cordell scripsit:

> Part of me would like to drop &gt; after a customer complained that
> we didn't use it in place of > and the remote system they were
> talking to rejected it.  But maybe that's more motivated by revenge
> and is a step too far!

It's required in XML, because if you need to have "]]>" in character
content, it has to be written "]]&gt;" or the NCR equivalent.  MicroXML
requires all instances of ">" to be "&gt;" for consistency.  However,
this is not true in attribute values, primarily for compatibility with
Canonical XML.  I would consider requests to change this.

-- 
John Cowan                              cowan <at> ccil.org
            http://www.ccil.org/~cowan
Humpty Dump Dublin squeaks through his norse
                Humpty Dump Dublin hath a horrible vorse
But for all his kinks English / And his irismanx brogues
                Humpty Dump Dublin's grandada of all rogues.  --Cousin James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 3 Jun 2012 10:32
Favicon

Re: MicroXML and &

Original Message From: "John Cowan"

> It's required in XML, because if you need to have "]]>" in character
> content, it has to be written "]]&gt;" or the NCR equivalent.  MicroXML
> requires all instances of ">" to be "&gt;" for consistency.  However,
> this is not true in attribute values, primarily for compatibility with
> Canonical XML.  I would consider requests to change this.

Escaping > to &gt; can be a bit of a pain when including example code in
XML.

It would be nice to say that nobody in their right mind would include ]]> in
their documents (unless they were documenting XML!) and we can just turn a
blind eye to that XML compatibility issue!  (Googling ]]> yields nothing but 
that might say more about what Google indexes than what is out there.)

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 3 Jun 2012 21:34
Picon
Favicon

Re: MicroXML and &

On Sun, 2012-06-03 at 09:32 +0100, Pete Cordell wrote:

> It would be nice to say that nobody in their right mind would include ]]> in
> their documents

It occurs naturally in programming examples, e.g.

for (i = 0; i < 20; i++) {
  if (ages[a[i]]>60) {
    pensions[a[i]]++;
  }
}

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 3 Jun 2012 21:55

Re: MicroXML and &

Liam R E Quin scripsit:

> for (i = 0; i < 20; i++) {
>   if (ages[a[i]]>60) {
>     pensions[a[i]]++;
>   }
> }

Not really.  Why would you put whitespace around < but not around >?  I'd
write "if (ages[a[i]] > 60) {"

--

-- 
In my last lifetime,                            John Cowan
I believed in reincarnation;                    http://www.ccil.org/~cowan
in this lifetime,                               cowan <at> ccil.org
I don't.  --Thiagi

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 3 Jun 2012 04:16

Re: MicroXML and &

Liam R E Quin scripsit:

> Right. If we want minimal (micromal?) why have two ways of saying "<"?

For the sake of error avoidance.  You can sidestep NCRs by editing with a
Unicode-aware editor, but you can't sidestep the five special characters
that way.  Requiring people to insert NCRs for them makes it too likely
that the wrong digits will be be used.

--

-- 
Here lies the Christian,                        John Cowan
        judge, and poet Peter,                  http://www.ccil.org/~cowan
Who broke the laws of God                       cowan <at> ccil.org
        and man and metre.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 3 Jun 2012 04:31
Picon
Favicon

Re: MicroXML and &

On Sat, 2012-06-02 at 22:16 -0400, John Cowan wrote:
> Liam R E Quin scripsit:
> 
> > Right. If we want minimal (micromal?) why have two ways of saying "<"?
> 
> For the sake of error avoidance.

Good point.

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 1 Jun 2012 23:58
Gravatar

Re: MicroXML and &

On Fri, Jun 1, 2012 at 3:42 PM, Michael Kay <mike <at> saxonica.com> wrote:


I couldn't even support such an idea in principle. For me, one of the cornerstones of XML's value is in completely determining the lexical space. I think leaving entity interpretation to applications would kick a huge hole in that.

Actually, it strikes me as quite an intelligent layering. If xinclude processing can be done in a different layer from XML parsing, why not entity expansion? In fact, it's strongly arguable that it SHOULD be a separate process; one of the use cases for entity expansion is to give a level of indirection so that the same entity reference can be replaced by different text at different places/times, and that works much better if it isn't embedded in the parser.

Well you can find plenty of debate about XInclude and its separate layer, and it distinctions from general entities. Not something I really feel like going into. I am, however, surprised that you say that replacing the same entity reference with different text at different places in the document is a use-case. That's news to me, but it is a use-case that suits elements rather than entities.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
Michael Kay | 2 Jun 2012 20:07
Favicon
Gravatar

Re: MicroXML and &



On 01/06/2012 22:58, Uche Ogbuji wrote:
On Fri, Jun 1, 2012 at 3:42 PM, Michael Kay <mike <at> saxonica.com> wrote:

I couldn't even support such an idea in principle. For me, one of the cornerstones of XML's value is in completely determining the lexical space. I think leaving entity interpretation to applications would kick a huge hole in that.

Actually, it strikes me as quite an intelligent layering. If xinclude processing can be done in a different layer from XML parsing, why not entity expansion? In fact, it's strongly arguable that it SHOULD be a separate process; one of the use cases for entity expansion is to give a level of indirection so that the same entity reference can be replaced by different text at different places/times, and that works much better if it isn't embedded in the parser.

Well you can find plenty of debate about XInclude and its separate layer, and it distinctions from general entities. Not something I really feel like going into. I am, however, surprised that you say that replacing the same entity reference with different text at different places in the document is a use-case. That's news to me, but it is a use-case that suits elements rather than entities.


I didn't mean different places in the same document. Perhaps I should have said "in different situations", e.g. using one expansion in draft documents and another in published documents.

Michael Kay
Saxonica
David Carlisle | 1 Jun 2012 00:32
Picon
Favicon

Re: MicroXML and &

On 31/05/2012 20:47, Liam R E Quin wrote:

> It's possible that having the HTML + ISO + MathML entity sets hardwired
> into Web browsers and explicitly allowing programs to handle undeclared
> entities in such a way would get somewhere.
>
> Liam
>

currently where it got is WontFIX then reopened...

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13409

David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

cbullard | 31 May 2012 22:19
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

First, excellent article and thanks.

So DTDs are gone and this

<opcheck-tswp wpno="T0104-1-1520-237" wpseq="0104 00">
<?frame id="wp0104_000_001" title="MFD/CAUTION/ADVISORY WARNING SYSTEM  
HH-60A HH-60L [WP 0104 00]" toclevel="3" previous='#DMN'?>
<wpidinfo> ...

while strictly legal gets no support past syntax.  IOW, the developer  
of this application is on their own as far as getting to the data  
inside the processing
instructions if they adopt MicroXML.  Is this a correct reading of the  
article?

len

Quoting Uche Ogbuji <uche <at> ogbuji.net>:

> I'm hoping this helps spread the word and rekindle discussion of MicroXML
> and related developments.
>
> http://www.ibm.com/developerworks/opensource/library/x-microxml1/index.html

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 31 May 2012 22:48

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

cbullard <at> hiwaay.net scripsit:

> <opcheck-tswp wpno="T0104-1-1520-237" wpseq="0104 00">
> <?frame id="wp0104_000_001" title="MFD/CAUTION/ADVISORY WARNING
> SYSTEM HH-60A HH-60L [WP 0104 00]" toclevel="3" previous='#DMN'?>
> <wpidinfo> ...
> 
> while strictly legal gets no support past syntax.  IOW, the developer
> of this application is on their own as far as getting to the data
> inside the processing instructions if they adopt MicroXML.

The spec says that parsers SHOULD provide PI information to applications,
whereas element, attribute, and character content information MUST
be reported.  If you use the MicroLark push or pull parser, you get
PI events reported; if you use the tree parser, they are discarded.

I look forward to Part 2!

--

-- 
Barry thirteen gules and argent on a canton azure           John Cowan
fifty mullets of five points of the second,             cowan <at> ccil.org
six, five, six, five, six, five, six, five, and six.
        --blazoning the U.S. flag           http://www.ccil.org/~cowan

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 31 May 2012 23:48
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Thu, May 31, 2012 at 2:19 PM, <cbullard <at> hiwaay.net> wrote:

First, excellent article and thanks.

Thank you!

(John answered the rest)

--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
Rushforth, Peter | 23 Jun 2012 11:52
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hey Uche,

Great post.

I wonder if it would be too late to add reliable hypermedia affordances to MicroXML?  You know, in another
thread, someone recently mentioned The Rule of Least Power, and it came to mind that it should be applied in
the case of hypermedia affordances, and maybe it has been in general in MicroXML, hence the name.

What do you think?

Cheers,
Peter
________________________________
From: Uche Ogbuji [uche <at> ogbuji.net]
Sent: May 31, 2012 1:43 PM
To: xml-dev <at> lists.xml.org
Subject: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

I'm hoping this helps spread the word and rekindle discussion of MicroXML and related developments.

http://www.ibm.com/developerworks/opensource/library/x-microxml1/index.html

"Parts of the XML community have always grumbled that XML is difficult to understand and process. XML is
fundamentally complex, for a variety of historical reasons, and people have proposed simplified
versions for over a decade. HTML5 has become a threat to some of XML's most basic tenets, causing much
discussion. From those discussions, MicroXML has emerged. MicroXML, a backward-compatible
simplification of XML, is significant because of the stature of some of the individuals involved and
because of the timing. John Cowan has already developed a MicroXML parser in Java™ and other related
tools. In this article, learn about MicroXML and its technical differences from XML 1.x and related standards."

--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed  <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 24 Jun 2012 05:57

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Rushforth, Peter scripsit:

> I wonder if it would be too late to add reliable hypermedia affordances
> to MicroXML?  You know, in another thread, someone recently mentioned
> The Rule of Least Power, and it came to mind that it should be applied
> in the case of hypermedia affordances, and maybe it has been in general
> in MicroXML, hence the name.

What specifically do you want to see.  "Reliable hypermedia affordances"
is a rather abstract notion.

--

-- 
John Cowan  cowan <at> ccil.org  http://ccil.org/~cowan
In the sciences, we are now uniquely privileged to sit side by side
with the giants on whose shoulders we stand.
        --Gerald Holton

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 24 Jun 2012 12:45
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi John,

>What specifically do you want to see.  "Reliable hypermedia affordances"
>is a rather abstract notion.

It's not abstract at all.

If we look at what goal # 1 of XML is:

1. XML shall be straightforwardly usable over the Internet.

and some of Rick Jeliffe's description of the motivation for that:

"SGML had a particular issue that it was, by design, retargetable. Before Unicode and the URLs, every
different system had different character sets and different ways of locating files. So SGML provided a
mechanism for labelling that an entity (resource) would need some system-specific fix in order to be
useful, and a mechanism for naming entities regardless of their location (PUBLIC identifiers.
Because of this goal, SDATA entities were removed from SGML as was the use of unresolved entities (entities
PUBLIC identifiers with no SYSTEM identifiers.) It was unfeasible to expect users to fix document to suit
their local systems: that is geekstuff. The use of Unicode and URLs was a non-brainer from this goal."

It is clear that XML needs  hypermedia affordances which are fixed and carry web semantics so that not just
parsers, but applications can count on their semantics.  On the Web, that means browsers, crawlers and
http: REST.

So, a core set of link and protocol related attributes should be added to the xml: namespace.
The set and the semantics of the set is driven by the web, not by C pointers or what have you.  Below is an xml
schema which documents them, as I see it.  I think adding them to the XML namespace is backwards compatible.

Then, for example, browsers which load an XML document via application/xml, could recognize the links and
possibly act on them for the application which would be likely javascript but now could be XSLT, thanks to Saxonica.

Respectfully,
Peter Rushforth

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<xs:attribute name="href" type="xs:anyURI">
<xs:annotation>
<xs:documentation>Almost self explanatory. That's a standard at its shared understanding best. Legal
values according to RFC 3986.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="tref" type="xs:string">
<xs:annotation>
<xs:documentation>The tref attribute is a "templated link". The reason that a separate attribute is
required is because the value of an href is expected to be a legal URI, which excludes templated links which
follow RFC 6570 because of the use of non-URI characters. In reflecting on templated links, it is likely a
good idea to use URI templates in a tref attribute anyway, as this will maximize the possibility of a
cacheable response due to the encoding of the order of parameters, as well as their case. In "Building
Hypermedia APIs with HTML5 and Node. Building Hypermedia APIs with HTML5 and Node", by M Amundsen, ISBN:
9781449309497, p16, an HTML FORM is used to describe the LT H-Factor. FORMs do not leverage the URI
Templates RFC 6570, so it may be possible that URIs composed by application of FORM elements don't follow a
predictable parameter order (say this is managed differently by different user agents(?)) hence, may
result in less than optimal cacheability of responses. Once processed by a link template processor,
value would be a legal URI per RFC 3986.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="src" type="xs:anyURI">
<xs:annotation>
<xs:documentation>The src attribute is a URI per RFC 3986, to a resource which is meant to be part of the
current resource. So it combines href with  <at> rel="partof" or something like that. This has been the
subject of much debate since the beginning of time. In any case, it has a specific composition semantic
around the URI it contains. Since it exists, it might be necessary to also have tsrc attribute to match the
tref attribute, but this seems to me to be taking a path similar to what was the subject of the debates above.
So, not going there, just use tref if you need to and once the link is composed, use a  <at> rel associated with the
tref to define if it's a composition or not (in your media type definition).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="rel">
<xs:annotation>
<xs:documentation>What is the meaning of a rel value? I believe the intention is to communicate the
relation of the linked-to resource to the current representation. RFC 5988 allows a rel to have &gt; 1
token, whereas atom limits it to 1. What is the effect/meaning of &gt; 1 value?</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:union memberTypes="xs:anyURI xs:token"/>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="type" type="xs:string">
<xs:annotation>
<xs:documentation>A media type, per RFC 2046.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="hreflang" type="xs:language">
<xs:annotation>
<xs:documentation>See xml:lang for acceptable content specification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="method" type="xs:token">
<xs:annotation>
<xs:documentation>An HTTP method, per RFC 2616 section 9.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup name="LinkOutboundAttGroup">
<xs:attribute ref="xml:href"/>
<xs:attributeGroup ref="xml:LinkAnnotationControls">
<xs:annotation>
<xs:documentation>The set of LinkAnnotationControls in this media type specification includes only a
'core' group which are needed for RESTful interactions on the Web.</xs:documentation>
</xs:annotation>
</xs:attributeGroup>
</xs:attributeGroup>
<xs:attributeGroup name="LinkEmbeddedAttGroup">
<xs:attribute ref="xml:src"/>
<xs:attributeGroup ref="xml:LinkAnnotationControls">
<xs:annotation>
<xs:documentation>One of the reasons to *have* a  <at> src attribute is to avoid having to decorate the link
because the  <at> src name implies the rel, type and language. But since they are optional here: if you need
them, then use them.</xs:documentation>
</xs:annotation>
</xs:attributeGroup>
</xs:attributeGroup>
<xs:attributeGroup name="LinkTemplateAttGroup">
<xs:attribute ref="xml:tref"/>
<xs:attributeGroup ref="xml:LinkAnnotationControls"/>
</xs:attributeGroup>
<xs:attributeGroup name="LinkIdempotentAttGroup">
<xs:attribute ref="xml:href"/>
<xs:attributeGroup ref="xml:LinkAnnotationControls"/>
</xs:attributeGroup>
<xs:attributeGroup name="LinkNonIdempotentAttGroup">
<xs:annotation>
<xs:documentation>Examples of Non idempotent hypermedia affordances are certain configurations of
the html form element, and the atom publishing protocol collection element, which also acts like a form.
In short, non-idempotent links seem to require more elaborate hypermedia affordances to correctly
interact with them. So recommended practice would be to re-use the hypermedia affordances defined in
this specification, and combine them with markup specific to the media type, and document the completed
affordance appropriately in the media type documentation. This is similar to what is recommended in
"Building Hypermedia APIs with HTML5 and Node. Building Hypermedia APIs with HTML5 and Node", ISBN:
9781449309497, on page 17.</xs:documentation>
</xs:annotation>
<xs:attribute ref="xml:href"/>
<xs:attribute ref="xml:tref"/>
<xs:attributeGroup ref="xml:LinkAnnotationControls"/>
</xs:attributeGroup>
<xs:attributeGroup name="LinkAnnotationControls">
<xs:annotation>
<xs:documentation>According to "Building Hypermedia APIs with HTML5 and Node. Building Hypermedia
APIs with HTML5 and Node", ISBN: 9781449309497, a CL, or Link Annotation Control, provides inline
metadata for the links themselves. The data allows clients to locate and understand the meaning of links
themselves. The best example is that defined by RFC 5023, link <at> rel="...", where the  <at> rel decorates the
uri and indicates to the recipient that the URL has a defined meaning (defined by the media type
specification) in the context of the containing response. Curiously, RFC 5988 Web Linking allows a link
to contain multiple  <at> rel values, whereas RFC 4287 The Atom Syndication Format allows only a single  <at> rel
value. I believe there was a bit of debate in the atom working group as to whether this should be a "one or
more" construct or simply an "only one"; the latter is the final outcome. This begs the question: what is a
 <at> rel value? What is the effect on the URI? While any given mime type may decide to add other controls beyond
 <at> rel, it is the most common example that is useful. Other examples of the CL factor include XLink's
extended set of attributes, which are widely not understood because of their complexity.</xs:documentation>
</xs:annotation>
<xs:attribute ref="xml:rel"/>
<xs:attribute ref="xml:type"> </xs:attribute>
<xs:attribute ref="xml:hreflang"/>
</xs:attributeGroup>
<xs:attributeGroup name="MethodControls">
<xs:annotation>
<xs:documentation>The last but not least hypermedia affordance is the method attribute, which comes
from the most successful hypermedia format on the planet. So, xml will unashamedly follow the lead of HTML
on this attribute. Use sparingly, otherwise your hypermedia may get so complex as to be unimplementable!</xs:documentation>
</xs:annotation>
<xs:attribute ref="xml:method"/>
</xs:attributeGroup>
<xs:complexType name="ProtocolControls">
<xs:annotation>
<xs:documentation>These hypermedia affordances contain 'hints' eg  <at> type as to what values to use in
protocol headers and methods.</xs:documentation>
</xs:annotation>
<xs:attributeGroup ref="xml:LinkAnnotationControls">
<xs:annotation>
<xs:documentation>This group contains ReadControls and UpdateControls as desribed in Building
Hypermedia APIs with HTML5 and Node. Building Hypermedia APIs with HTML5 and Node, ISBN: 9781449309497
on p18. They can not be represented when they both have the same content model, since xml schema thinks they
conflict, but obviously a read can`t be a write so if we simply represent both with the
LinkAnnotationControl we achieve the same goal, which is to allow authors to mark up their elements to
designate them as read or write hypermedia affordances as required.</xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:attributeGroup ref="xml:MethodControls">
<xs:annotation>
<xs:documentation/>
</xs:annotation>
</xs:attributeGroup>
</xs:complexType>
<xs:attributeGroup name="ReadControls">
<xs:annotation>
<xs:documentation>See documentation for the ProtocolControls complex type.</xs:documentation>
</xs:annotation>
</xs:attributeGroup>
<xs:attributeGroup name="UpdateControls">
<xs:annotation>
<xs:documentation>See documentation for the ProtocolControls complex type.</xs:documentation>
</xs:annotation>
</xs:attributeGroup>
</xs:schema>
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 24 Jun 2012 20:33
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

re: "Reliable hypermedia affordances"

I do think it would be nice to have a MicroXLink (with even more emphasis on the "micro") but whether that should be in the core of MicroXML? Hard to say. How about something like xml:href or uxml:href in the core standard, and then a separate layer with e.g. uxml:rel and such.

--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
John Cowan | 24 Jun 2012 20:47

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Uche Ogbuji scripsit:

> I do think it would be nice to have a MicroXLink (with even more emphasis
> on the "micro") but whether that should be in the core of MicroXML? Hard to
> say. How about something like xml:href or uxml:href in the core standard,
> and then a separate layer with e.g. uxml:rel and such.

Well, you can provide simple links with full conformance to XLink 1.1 by
defining the xlink namespace as "http://www.w3.org/1999/xlink" (same as
ever) and then using the xlink:href attribute to hold the linked URI.
That should be "micro" enough for anybody.

-- 
With techies, I've generally found              John Cowan
If your arguments lose the first round          http://www.ccil.org/~cowan
    Make it rhyme, make it scan                 cowan <at> ccil.org
    Then you generally can
Make the same stupid point seem profound!           --Jonathan Robie

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 24 Jun 2012 21:24
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

I'm not sure what the rule of least power would say about that, but from the KISS perspective, those
seven attributes come from HTML, effectively, and if they were "burned into" XML, it would go a long way
towards supporting the uniform interface in all implementations.

For example namespaces capture the semantics the namespace designer says.  Hypermedia affordances need
to be simple, and reliable, hence should come with the language, because they are designed to support its
#1 goal.

For example, some people
might like to put a URI template in an href, but that would not be technically correct because it should only contain
a valid URI.  Hence tref, which although does not come from HTML, might be nice for XML to put out there, since
we have a newly created RFC for URI templates.

Cheers,
Peter

________________________________
From: Uche Ogbuji [uche <at> ogbuji.net]
Sent: June 24, 2012 2:33 PM
To: Rushforth, Peter
Cc: xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

re: "Reliable hypermedia affordances"

I do think it would be nice to have a MicroXLink (with even more emphasis on the "micro") but whether that
should be in the core of MicroXML? Hard to say. How about something like xml:href or uxml:href in the core
standard, and then a separate layer with e.g. uxml:rel and such.

--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed  <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 25 Jun 2012 00:44

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Rushforth, Peter scripsit:

> I'm not sure what the rule of least power would say about that, but
> from the KISS perspective, those seven attributes come from HTML,
> effectively, and if they were "burned into" XML, it would go a long
> way towards supporting the uniform interface in all implementations.

I don't know which seven attributes you mean.  XLink 1.1 has ten
attributes, but only one is required (xlink:href) for "simple conformance".

> Hence tref, which although does not come from HTML, might be nice
> for XML to put out there, since we have a newly created RFC for URI
> templates.

The xml: namespace is not the place to put things that "might be nice".

--

-- 
John Cowan                                cowan <at> ccil.org
At times of peril or dubitation,          http://www.ccil.org/~cowan
Perform swift circular ambulation,
With loud and high-pitched ululation.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 02:54
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi John,

>I don't know which seven attributes you mean.  XLink 1.1 has ten
>attributes, but only one is required (xlink:href) for "simple conformance".

The seven attributes I suggested in the schema file I attached earlier (http://lists.xml.org/archives/xml-dev/201206/msg00073.html):

Specifically: 

xml:href, xml:src, xml:rel, xml:type, xml:hreflang, xml:method and xml:tref

which don't appear to have much in common with xlink.

XLink clearly pre-dates Fielding's thesis [1], which is the authoritative description of the
architectural style of the Web (REST).  That authoritative description is a bit retroactive itself, but
does itself stand on the shoulders of giants, for example Sir Tim Berners Lee's invention.  There are other
giants involved even further back.

It seems possible or even likely that xlink was thought up without the benefit of a clear goal, or even if
XLink's goal seemed clear, those goals were not informed by the REST paper.

[1] http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm

>The xml: namespace is not the place to put things that "might be nice".

All of these proposed attributes come from HTML.  The latter attribute I invented, as it seems to coincide
well with RFC 6570, and as I mentioned to Uche, one shouldn't put invalid URIs in an href value, but once
templates were processed, would be reasonable for a hypermedia application to perform appropriate
actions on the resulting URI as described by the other hypermedia hints.

We use the things that the "giants" offer us to design our applications, on the assumption that they know
what they are doing, and we should design our applications using those tools.  In the case of TBL and
Fielding, those things just continue to grow in importance.  I am saying that those guys got links and
hypermedia right, and we should put those things in their proper place, the XML namespace, particularly
if we're rethinking XML in light of hindsight, as it seems to me MicroXML is an attempt.

While we seem to be on very different pages hypermedia-wise, you appear to have been convinced at one time
that links belonged in the XML namespace - or perhaps I am missing some other context.

http://mailman.ic.ac.uk/pipermail/xml-dev/1998-June/004276.html : Cowan-XLink-Substantive-5.

Regards,
Peter Rushforth

________________________________________
From: John Cowan [cowan <at> ccil.org] on behalf of John Cowan [cowan <at> mercury.ccil.org]
Sent: June 24, 2012 6:44 PM
To: Rushforth, Peter
Cc: Uche Ogbuji; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Rushforth, Peter scripsit:

> I'm not sure what the rule of least power would say about that, but
> from the KISS perspective, those seven attributes come from HTML,
> effectively, and if they were "burned into" XML, it would go a long
> way towards supporting the uniform interface in all implementations.

> Hence tref, which although does not come from HTML, might be nice
> for XML to put out there, since we have a newly created RFC for URI
> templates.

The xml: namespace is not the place to put things that "might be nice".

--
John Cowan                                cowan <at> ccil.org
At times of peril or dubitation,          http://www.ccil.org/~cowan
Perform swift circular ambulation,
With loud and high-pitched ululation.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 25 Jun 2012 07:34

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Rushforth, Peter scripsit:

> While we seem to be on very different pages hypermedia-wise, you
> appear to have been convinced at one time that links belonged in the
> XML namespace - or perhaps I am missing some other context.
> 
> http://mailman.ic.ac.uk/pipermail/xml-dev/1998-June/004276.html :
> Cowan-XLink-Substantive-5.

Touché.  But that referred to a very different implementation of XLink
based on SGML architectural forms, predating the XML Namespace
spec as we know it by at least half a year.

--

-- 
You let them out again, Old Man Willow!                 John Cowan
What you be a-thinking of?  You should not be waking!   cowan <at> ccil.org
Eat earth!  Dig deep!  Drink water!  Go to sleep!
Bombadil is talking.                                    http://ccil.org/~cowan

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 25 Jun 2012 10:11
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> I wonder if it would be too late to add reliable hypermedia affordances to MicroXML?

There is no need for it, just as there is no need for inbuilt linking
in full fat xml.

The single purpose of a simplified xml was to make it easier for
non-xml developers to create and process.

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 15:10
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Andrew,

> > I wonder if it would be too late to add reliable hypermedia 
> affordances to MicroXML?
> 
> There is no need for it, just as there is no need for inbuilt 
> linking in full fat xml.

Oh yes there is.  But don't take my word for it - as Jim Webber, Savas Parastatidis and Ian Robinson state in
their book [1]: 

"Although XML is easy to use as a data interchange format, and despite its near ubiquity, it is utterly
oblivious to the Web."

which they follow up with a nice example.

[1] http://restinpractice.com, p97

Mike Amundsen wrote in his book [2]: "One of the drawbacks of XML is that the original media type contains no
native HFactors:
no predefined links, forms, etc."

[2] http://www.amazon.ca/Building-Hypermedia-APIs-HTML5-Node/dp/1449306578 p21

 
> The single purpose of a simplified xml was to make it easier 
> for non-xml developers to create and process.

You mean web developers, don't you?

I believe MicroXML arose in concept out of this post by James Clark:

http://blog.jclark.com/2010/11/xml-vs-web_24.html

From that: "There's a bigger point that I want to make here, and it's about the relationship between XML and
the Web. When we started out doing XML, a big part of the vision was about bridging the gap from the SGML world
(complex, sophisticated, partly academic, partly big enterprise) to the Web... all the stuff that's
been piled on top of XML, together with the huge advances in the Web world in HTML5, JSON and JavaScript,
have combined to make XML be perceived as an overly complex, enterprisey technology, which doesn't bring
any value to the average Web developer."  This relates to goal #1 of XML and more recently MicroXML.

Less academically, and more practically, when your browser receives a message which is unambiguously
application/xml ie is transmitted with the http header Content-Type: application/xml, and there are
 <at> href values in it, regardless of namespace, they are not underlined.  Why not?

Sincerely,
Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 25 Jun 2012 15:19
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

>> There is no need for it, just as there is no need for inbuilt
>> linking in full fat xml.
>
> Oh yes there is.  But don't take my word for it - as Jim Webber, Savas Parastatidis and Ian Robinson state in
their book [1]:

It's been discussed quite frequently on the various lists, and the
usual conclusion is that links are best modelled in the xml using
whatever is suitable to the domain, and the actual linking
functionality is provided in the view layer.

>> The single purpose of a simplified xml was to make it easier
>> for non-xml developers to create and process.
>
> You mean web developers, don't you?
>
> I believe MicroXML arose in concept out of this post by James Clark:

...which may or may not have arisen from this thread:

http://markmail.org/message/kxrg3tifg4k4fyj6

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 15:36
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> It's been discussed quite frequently on the various lists, 
> and the usual conclusion is that links are best modelled in 
> the xml using whatever is suitable to the domain, and the 
> actual linking functionality is provided in the view layer.
> 
> >> The single purpose of a simplified xml was to make it easier for 
> >> non-xml developers to create and process.
> >
> > You mean web developers, don't you?
> >
> > I believe MicroXML arose in concept out of this post by James Clark:
> 
> ...which may or may not have arisen from this thread:
> 
> http://markmail.org/message/kxrg3tifg4k4fyj6

Well, that is really awesome Andrew.  And I really like the namespace idea,
especially.  Does MicroXML implement that the way you envisioned?

But, my point remains, Web browsers are the most common XML processing
application on earth, and they can't recognize the hypermedia affordances we
put in our representations.  Why not?

Cheers,

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 25 Jun 2012 15:44

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Peter Sez
> But, my point remains, Web browsers are the most common XML processing
> application on earth, and they can't recognize the hypermedia affordances we
> put in our representations.  Why not?
>

Here is where I think you will find the crux of the disagreement.
First off I will assert your statement is factually incorrect (about being the most common XML processing
app). 

But more importantly,  philosophically ...

There is the camp that believes XML should be agnostic about the application layer
And there is the camp that believes XML should be tailored to make its use in a web browser more usable.

Finding common ground between these is tough ... and IMHO is why we ended up with HTML5 instead of XHTML2.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 16:08
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

The disagreement originally was is hyperlinking owned by the content or
by the style sheet (say the application).  This is the original Hytime
vs DSSSL schism.  At that time, there was no "web" to talk about.

IOW:  what IS a hyperlink?  A relationship?  A function? An object?
What?

Be careful of the "giants" and "REST is THE" discussion.   There is a
bit of retrofitted history in that description.  The Internet and the
web applications as well as others were functional before the term
"representational state transfer" was ever coined and that notion was
already a part of discussions.  There is less invention there than you
believe which is why the W3C has been unable to overturn certain
critical patents.  It isn't authoritative nor an invention.  It is a
thesis with ideas that work because there was sufficient experience to
document them formally.  

However the technical point is as David and others have said.  As soon
as you add application semantics, XML becomes less useful, not more.
For example, try putting hard wired linking semantics into non-text
browser applications such as 3D gaming.

len

-----Original Message-----
From: David Lee [mailto:dlee <at> calldei.com] 
Sent: Monday, June 25, 2012 8:44 AM
To: Rushforth, Peter; Andrew Welch
Cc: Uche Ogbuji; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

Peter Sez
> But, my point remains, Web browsers are the most common XML processing
> application on earth, and they can't recognize the hypermedia
affordances we
> put in our representations.  Why not?
>

Here is where I think you will find the crux of the disagreement.
First off I will assert your statement is factually incorrect (about
being the most common XML processing app). 

But more importantly,  philosophically ...

There is the camp that believes XML should be agnostic about the
application layer
And there is the camp that believes XML should be tailored to make its
use in a web browser more usable.

Finding common ground between these is tough ... and IMHO is why we
ended up with HTML5 instead of XHTML2.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 16:56
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Len,

Thanks for chiming in.  It's going to be hard for me to reply to 
everything, I think, and probably my answers won't really be up to
the standard required for this discussion.  So everyone, please, add your
opinion, if you think it worthwhile and you understand the point.

> The disagreement originally was is hyperlinking owned by the 
> content or by the style sheet (say the application).  This is 
> the original Hytime vs DSSSL schism.  At that time, there was 
> no "web" to talk about.
> 
> IOW:  what IS a hyperlink?  A relationship?  A function? An object?
> What?

Who cares *what* it is.  It is used as a mechanism to transfer state
on the web.  In any case, what it is can be described by hints ( <at> xml:rel etc) to the
application.  All the underlying infrastructure has to do is the fetching
and putting.  Probably security is an issue as to why the links 
should be recognizable.

> 
> Be careful of the "giants" and "REST is THE" discussion.   There is a
> bit of retrofitted history in that description.  The Internet 
> and the web applications as well as others were functional 
> before the term "representational state transfer" was ever 
> coined and that notion was already a part of discussions.

I realized that.  That's the great thing about the web, those giants can
communicate with us easily if they wish, as John's rotating tag line says
so neatly.  I just am saying that
the objective of XML was the Web, not 3D gaming, unless 3D gaming is
done on the web.  If the simple semantics which I've proposed don't fit
the use case for the 3D gaming application, invent your own which do.  But
the rule of least power, known in my level of the atmosphere as KISS, 
says that we should follow the 80-20 rule here.

> There is less invention there than you believe which is why 
> the W3C has been unable to overturn certain critical patents. 

Are you saying that XML is patented, and as a result we don't control that
namespace?  Maybe another namespace could be declared and used.

> However the technical point is as David and others have said. 
>  As soon as you add application semantics, XML becomes less 
> useful, not more.
> For example, try putting hard wired linking semantics into 
> non-text browser applications such as 3D gaming.

Hence the effort to toss stuff overboard.  But, the application, the Web,
is a pretty big use case.  I think HTML is big because of the reliable
hypermedia affordances.  But everyone is trying to extend the semantics
of HTML with what have you, yet the media type remains text/html. That is
the proper domain of xml.

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 25 Jun 2012 16:37
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

 >Here is where I think you will find the crux of the disagreement.

Indeed. The question is whether hyperlinks belong in layer 6 or layer 7. 
The core XML specification belongs in layer 6, and should not be 
polluted with stuff that has layer 7 semantics (like xml;lang). Of 
course, XML browsers are free to recognize the layer 7 semantics of 
particular namespaces if they choose.

I think the hyperlinking community has never been prepared to make a 
proper separation between the information content of a link and its 
presentation semantics. That is why it is has been so hard to integrate 
hyperlinks into XML, which requires that separation.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 17:06
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Yep.  

On the other hand, depending on where you want the information to be
contained, several systems close to what Peter describes still exist and
they get around the XML lack of semantics by ... not using XML
precisely. 
XML is a syntax specification and one way to do it is to not use XML
syntax.   Another way is to use namespaces I suppose.    

For example:

<?BUTTON POS='12' PUSH='1' show='Y' LABEL='RPSTL' TYPE='PROGRAM'
LINK='rpstl_r.exe TM_1-1520-237-23P -F 1-2,0' BITMAP='Y'
BITFILE='..\..\graphics\RPSTL.BMP' DESC='RPSTL'?>

Which enables them to take any XML and sprinkle controls, hyperlinks,
etc. liberally.   It's old school but it solved the problems of keeping
the application development on schedule without contending with the
LinkWars.

What gets ugly (and this is where Peter has a point) is some XML does
have other relationships

<extref push="1" color="blue" href="..\..\RPSTL\RpstlCover.xml"
docno="TM 1-1520-237-23P" />.

And the rendering/navigating application has to account for these as
well.

One problem is the files treated to the sprinkling become a sort of
lobster trap.  Having recently stripped one of the information to return
it to the linkless state for reuse, it is a minor PIA.  

How useful what Peter is proposing is depends on the use cases.
Redundant but so.  All of these application approaches frustrate the
browser designer who wants to, as Goldfarb put it, "own the parse".

len

-----Original Message-----
From: Michael Kay [mailto:mike <at> saxonica.com] 
Sent: Monday, June 25, 2012 9:37 AM
To: xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

 >Here is where I think you will find the crux of the disagreement.

Indeed. The question is whether hyperlinks belong in layer 6 or layer 7.

The core XML specification belongs in layer 6, and should not be 
polluted with stuff that has layer 7 semantics (like xml;lang). Of 
course, XML browsers are free to recognize the layer 7 semantics of 
particular namespaces if they choose.

I think the hyperlinking community has never been prepared to make a 
proper separation between the information content of a link and its 
presentation semantics. That is why it is has been so hard to integrate 
hyperlinks into XML, which requires that separation.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 17:32
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Even better:

<extref docno="CTA 50-970" linktype="message" href="CTA 50-970 is not
included in this document set." color="green" popup="1" />

Note the linktype and the content of the href which of course, isn't an
html href but hey, who cares?  :)

In short, once on the path to including hyperlinking semantics, there is
no end to it.   You assert that the web is "the application".  That
simply isn't true.  The web is a lot of different applications knitted
together.  XSL was/ideal because it enables many languages to co-exist
and leaves it to the locals to work out the details.  It is the Data is
Data mantra at work which asserts the Local Rules Prevail notion.

Games on the web and real time 3D are most certainly web applications
but they do a lot of local work to get around the performance penalties
of a text-oriented browser based orientation.   They had to wait over a
decade to use the HTML web browser to do the tricks the non-HTML systems
could do in 1996 On The Web.   The overhead is borne by APIs.

And while there are no patents on XML (we sidestepped that), there are
patents on web browser technologies.  The EOLAS patent was years in
court and finally voided only recently:

http://www.pcworld.com/businesscenter/article/249695/eolas_loses_in_web_
patents_claim_against_google_and_others.html

and others are still battling

http://www.zdnet.com/blog/networking/microsoft-buys-netscape-web-patents
-from-aol-to-attack-google/2203

"Netscape's intellectual property (IP), however also included such
universal Web browser mainstays as Secure Socket Layers (SSL), cookies,
and JavaScript. It's these old Netscape patents that Microsoft is paying
a billion bucks for. And, you know what? For a mere billion Microsoft
got a steal of a deal."

len

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 18:03
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hey Len,

> 
> Even better:
> 
> <extref docno="CTA 50-970" linktype="message" href="CTA 
> 50-970 is not included in this document set." color="green" 
> popup="1" />
> 
> Note the linktype and the content of the href which of 
> course, isn't an html href but hey, who cares?  :)

I don't know where the example comes from, but it goes to my
point exactly.  The semantics of that markup is too important
to be left out for re-invention by everyone.  It needs to be
nailed down with 10-ton bolts!!!!

> 
> In short, once on the path to including hyperlinking 
> semantics, there is
> no end to it.

That's exactly the problem.  Build it into the language, problem 
disappears! Well ok, there may be other problems.  

XML may live on for 1000 or more years, if we make it.
How many times can that markup be reinvented?  And each time it
gets reinvented is one more reason to not use XML.

   You assert that the web is "the application".  That
> simply isn't true.  The web is a lot of different 
> applications knitted together.  XSL was/ideal because it 
> enables many languages to co-exist and leaves it to the 
> locals to work out the details.  It is the Data is Data 
> mantra at work which asserts the Local Rules Prevail notion.

I'm on board with XSL! Why do you say was/?

> 
> Games on the web and real time 3D are most certainly web 
> applications but they do a lot of local work to get around 
> the performance penalties
> of a text-oriented browser based orientation.   They had to 
> wait over a
> decade to use the HTML web browser to do the tricks the 
> non-HTML systems
> could do in 1996 On The Web.   The overhead is borne by APIs.

> 
> And while there are no patents on XML (we sidestepped that), 
> there are patents on web browser technologies.  The EOLAS 
> patent was years in court and finally voided only recently:
> 
> http://www.pcworld.com/businesscenter/article/249695/eolas_los
> es_in_web_
> patents_claim_against_google_and_others.html
> 
> and others are still battling
> 
> http://www.zdnet.com/blog/networking/microsoft-buys-netscape-w
eb-patents
> -from-aol-to-attack-google/2203
> 
> "Netscape's intellectual property (IP), however also included 
> such universal Web browser mainstays as Secure Socket Layers 
> (SSL), cookies, and JavaScript. It's these old Netscape 
> patents that Microsoft is paying a billion bucks for. And, 
> you know what? For a mere billion Microsoft got a steal of a deal."

Wow.  Still, can you imagine what the impact of this would be on putting
hypermedia affordances in the XML namespace?

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 19:22
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

>>> <extref docno="CTA 50-970" linktype="message" href="CTA 
>>> 50-970 is not included in this document set." color="green" 
>>> popup="1" />
>>> 
>>> Note the linktype and the content of the href which of 
>>> course, isn't an html href but hey, who cares?  :)

>>I don't know where the example comes from, but it goes to my
>>point exactly.  The semantics of that markup is too important
>>to be left out for re-invention by everyone.  It needs to be
>>nailed down with 10-ton bolts!!!!

It comes from a military standard for US Army technical manuals.  The
earlier example using processing instructions comes from a US Army
application, IADS.  And it is still working but mostly because a) it
does its job and b) the US Army owns it, develops it and uses it.  

IADS predates web browsers but already used style sheets, hyperlinking,
etc.  It has what you are describing:  a fixed vocabulary.   In fact,
#FIXED attributes from SGML were an early way to annotate this sort of
thing.  It was in fact, a DTD-less SGML browser.   

IOW, there are markup hypermedia browsers (at least one still standing)
that do exactly what you are describing.  They interleave a fixed
application language into ANY markup including ones that already have
their own semantics for links.   You may want to note that what xml:base
does was done with entity declarations once upon a time before it became
necessary to reinvent them.   People such as me have jobs because like
COBOL programmers, we know how those work (meaning I can read a DTD,
edit in Notepad++ and program so I replace four slots/persons.  Cheap!).

>>That's exactly the problem.  Build it into the language, problem 
>>disappears! Well ok, there may be other problems. 

Well, build it into a separate language and interleave it into the rest
but we're quibbling syntax and legal/contract definitions on that one.
Would you believe me if I told you all of this was discussed endlessly a
decade and a half ago?  HTML had the upper hand in that even though it
had a crummy browser, it was free and it worked for the trivial tasks.
Then with mountains of money and publicity, it became the kudzu of the
information age.  Now it takes its final evolutionary form as HTML5:  it
owns the parse.

And it will die rather more quickly than anyone suspects, but that is a
prediction yet to be realized.

>>XML may live on for 1000 or more years, if we make it.
>>How many times can that markup be reinvented?  And each time it
>>gets reinvented is one more reason to not use XML.

It won't exactly get reinvented. Mauled and rebranded is more likely.  I
believe, and John can correct me, MicroXML is a JSON competitor because
it turns out XML is not the best solution to the problem it was touted
to solve: bits on the wire.  On the other hand, let's say Microsoft
makes noise with its Javascript patent, then JSON doesn't look too
healthy and that is precisely why markup if not XML was invented and why
keeping it free of application layers is A Good Thing.

Notice that the markup examples I gave above come from standards that
predate the web by almost a decade.  The DTD used for that is huge and
bulky.  Not important except to note that Internet Time and
Inevitability proved to be yet another myth.   All technologies that get
widespread uptake develop like a wildfire until the uptake reaches some
point of distribution and then switching costs take over.   That is your
main challenge in this proposal.  Where the investments are fairly
large, so are the switching costs.  

That is one reason I have a job.  :)  They can't afford to move on.

>>I'm on board with XSL! Why do you say was/?

Some noises that the XSL-FO part of it may be deprecated as solutions
converge around CSS on the web.   That will be a problem for the world I
work in that makes heavy use of XSL-FO with PDF.  On the other hand, it
is a tooling problem and we simply buy new tools, we don't sell them.

>>Wow.  Still, can you imagine what the impact of this would be on
putting
>>hypermedia affordances in the XML namespace?

I certainly can.   Lawyers get a lot richer.

len

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 19:28
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> >>Wow.  Still, can you imagine what the impact of this would be on
> putting
> >>hypermedia affordances in the XML namespace?
> 
> I certainly can.   Lawyers get a lot richer.

Yikes.  Why?

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 19:40
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Because the BigCos and patent trolls filed and received as many patents
as they could and some of them are unbelievably interlocked into the
technologies we use.  When a war breaks out as it could be say between
Microsoft and Google or Apple, they take them out and exact tolls.  

It's taken some very long hours to get EOLAS rolled back and it was
clearly a bad patent (a friend of mine was the patent examiner) but
because no one was paying attention to the legal niceties, pre-existing
art like Viola was badly documented (say no notarized dates on paperwork
so they had to establish an email-based chain of evidence).

The web was fielded witlessly.

len

-----Original Message-----
From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca] 
Sent: Monday, June 25, 2012 12:28 PM
To: Len Bullard
Cc: xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

> >>Wow.  Still, can you imagine what the impact of this would be on
> putting
> >>hypermedia affordances in the XML namespace?
> 
> I certainly can.   Lawyers get a lot richer.

Yikes.  Why?

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 20:11
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> It won't exactly get reinvented. Mauled and rebranded is more likely.  
> I believe, and John can correct me, MicroXML is a JSON competitor 
> because it turns out XML is not the best solution to the problem it 
> was touted to solve: bits on the wire.  On the other hand, let's say 
> Microsoft makes noise with its Javascript patent, then JSON doesn't 
> look too healthy and that is precisely why markup if not XML was 
> invented and why keeping it free of application layers is A Good 
> Thing.

I thought MicroXML was a document oriented solution.  As such, t needsi
hypermedia controls.

http://blog.jclark.com/2010/12/more-on-microxml.html

If data also benefits in the process, good!

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 20:15
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

James's idea of what a document is may be a little abstract.  I'll have
to read that later.    There used to be a more or less accepted
distinction between Message Oriented formats and Document Oriented
formats.

len

-----Original Message-----
From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca] 
Sent: Monday, June 25, 2012 1:11 PM
To: Len Bullard
Cc: xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

> It won't exactly get reinvented. Mauled and rebranded is more likely.

> I believe, and John can correct me, MicroXML is a JSON competitor 
> because it turns out XML is not the best solution to the problem it 
> was touted to solve: bits on the wire.  On the other hand, let's say 
> Microsoft makes noise with its Javascript patent, then JSON doesn't 
> look too healthy and that is precisely why markup if not XML was 
> invented and why keeping it free of application layers is A Good 
> Thing.

I thought MicroXML was a document oriented solution.  As such, t needsi
hypermedia controls.

http://blog.jclark.com/2010/12/more-on-microxml.html

If data also benefits in the process, good!

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 19:46
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> 
> IADS predates web browsers but already used style sheets, 
> hyperlinking,
> etc.  It has what you are describing:  a fixed vocabulary.   In fact,
> #FIXED attributes from SGML were an early way to annotate this sort of
> thing.  It was in fact, a DTD-less SGML browser.   
> 
> IOW, there are markup hypermedia browsers (at least one still 
> standing) that do exactly what you are describing.  They 
> interleave a fixed application language into ANY markup 
> including ones that already have
> their own semantics for links.

  You may want to note that 
> what xml:base
> does was done with entity declarations once upon a time 
> before it became
> necessary to reinvent them.   People such as me have jobs because like
> COBOL programmers, we know how those work (meaning I can read 
> a DTD, edit in Notepad++ and program so I replace four 
> slots/persons.  Cheap!).
> 
> >>That's exactly the problem.  Build it into the language, problem 
> >>disappears! Well ok, there may be other problems.
> 
> Well, build it into a separate language and interleave it 
> into the rest but we're quibbling syntax and legal/contract 
> definitions on that one.
> Would you believe me if I told you all of this was discussed 
> endlessly a decade and a half ago?  HTML had the upper hand 
> in that even though it had a crummy browser, it was free and 
> it worked for the trivial tasks.
> Then with mountains of money and publicity, it became the 
> kudzu of the information age.  Now it takes its final 
> evolutionary form as HTML5:  it owns the parse.

Of course I would believe it, I was around but not really paying
attention (still a problem!).  But, don't you mean the browser owns
the parse?

> 
> And it will die rather more quickly than anyone suspects, but 
> that is a prediction yet to be realized.

Maybe because MicroXML will replace it?

>  
> >>XML may live on for 1000 or more years, if we make it.
> >>How many times can that markup be reinvented?  And each 
> time it gets 
> >>reinvented is one more reason to not use XML.
> 
> It won't exactly get reinvented. Mauled and rebranded is more 
> likely.  I believe, and John can correct me, MicroXML is a 
> JSON competitor because it turns out XML is not the best 
> solution to the problem it was touted to solve: bits on the 
> wire.  On the other hand, let's say Microsoft makes noise 
> with its Javascript patent, then JSON doesn't look too 
> healthy and that is precisely why markup if not XML was 
> invented and why keeping it free of application layers is A 
> Good Thing.

Holy Cow!

> 
> Notice that the markup examples I gave above come from 
> standards that predate the web by almost a decade.  The DTD 
> used for that is huge and bulky.  Not important except to 
> note that Internet Time and
> Inevitability proved to be yet another myth.   All 
> technologies that get
> widespread uptake develop like a wildfire until the uptake 
> reaches some
> point of distribution and then switching costs take over.   
> That is your
> main challenge in this proposal.  Where the investments are 
> fairly large, so are the switching costs.

I can see that.  But at the same time, it could be amortized over a long, 
long time, right, because not every application is going to start
using those hypermedia affordances on day 1.

 
> 
> That is one reason I have a job.  :)  They can't afford to move on.

Ha!  I can certainly see that.  Next time you're in Ottawa, I owe you a beer!

> 
> >>I'm on board with XSL! Why do you say was/?
> 
> Some noises that the XSL-FO part of it may be deprecated as solutions
> converge around CSS on the web.   That will be a problem for 
> the world I
> work in that makes heavy use of XSL-FO with PDF.  On the 
> other hand, it is a tooling problem and we simply buy new 
> tools, we don't sell them.

OK.  Much as I liked XSL-FO, it didn't get the traction I thought it was going
to so I kind of stopped playing with it.  But I always thought making maps
with SVG + XSL-FO was a pretty cool idea.

Trying to stay off the third rail,
Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 25 Jun 2012 20:13
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca] 

>>But, don't you mean the browser owns the parse?

The wrapper language handler does.   HTML is a quasi-layout language
with minimum structural support.   It hits the 80/20 fairly well.   XML
is a syntax for data formats.  In practice, it's a 60/40: a little too
heavy, a little too verbose, a little too anemic.  So not quite an
object and that makes programmers unhappy and not really a clean tree
and that makes the graph theorists unhappy.

>>> And it will die rather more quickly than anyone suspects, but 
>>> that is a prediction yet to be realized.

>>Maybe because MicroXML will replace it?

No, I say that because so far I've not seen a convincing technical or
economic argument for switching.  I really don't know why it was created
but I confess to not paying attention.  There isn't a lot of payoff for
staying up to the minute on these developments when one isn't a browser
developer of some sort.

>> It won't exactly get reinvented. Mauled and rebranded is more 
>> likely.  I believe, and John can correct me, MicroXML is a 
>> JSON competitor because it turns out XML is not the best 
>> solution to the problem it was touted to solve: bits on the 
>> wire.  On the other hand, let's say Microsoft makes noise 
>> with its Javascript patent, then JSON doesn't look too 
>> healthy and that is precisely why markup if not XML was 
>> invented and why keeping it free of application layers is A 
>> Good Thing.

>Holy Cow!

Sita Sings the Blues.   I don't think they will but I've been surprised
before.

>>I can see that.  But at the same time, it could be amortized over a
long, 
>>long time, right, because not every application is going to start
>>using those hypermedia affordances on day 1.

What can they do that they can't do now?  That is the critical question.

>>Next time you're in Ottawa, I owe you a beer!

I appreciate that.  I am a hermit though.  I dropped out of the scene
years ago and although Lauren convinced me to come out once or twice, my
time is past.  Think of me as the grave digger in The Ghost Rider.  I
know where the bodies are buried because I had to bury them.  I'm
possibly the last guy who had the debate you are having.  :)   It is an
obvious and proven workable idea but so is down
translation/transformation.

>>Trying to stay off the third rail,

That's wise.  Once the bike starts sparking flames, the chains come out.

len

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 20:32
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Len,

> >>I can see that.  But at the same time, it could be amortized over a
> long, 
> >>long time, right, because not every application is going to start 
> >>using those hypermedia affordances on day 1.
> 
> What can they do that they can't do now?  That is the 
> critical question.

Well, if it enables both documents and linked data, that's gotta hit a sweet spot?
I was hoping static hypermedia might help that cause.  I'm still not cmonvinced it
wouldn't - after all I'm pretty sure the JSON guys are trying to put hypermedia in
JSON too, but it may be a bit harder because there are no namespaces. But anyy.wa

> 
> >>Next time you're in Ottawa, I owe you a beer!
> 
> I appreciate that.  I am a hermit though.  I dropped out of 
> the scene years ago and although Lauren convinced me to come 
> out once or twice, my time is past.  Think of me as the grave 
> digger in The Ghost Rider.  I know where the bodies are 
> buried because I had to bury them.  I'm
> possibly the last guy who had the debate you are having.  :)  
>  It is an
> obvious and proven workable idea but so is down 
> translation/transformation.

Well, thanks for the stories, it's been a real education.

I'd better get back to my p's and q's!

Cheers,
Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 19:22
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Michael,

Layers are outside of my expertise, but I gather from wikipedia
that there is a difference between the OSI 7 layer model and the TCP/IP model.

Maybe it is not appropriate to talk about the web in terms of the 7 layer model?

Anyway, maybe someone more familiar with the models could comment.  Especially
if that is the crux of the issue for you, that would be great to resolve.

Thanks
Peter

> -----Original Message-----
> From: Michael Kay [mailto:mike <at> saxonica.com] 
> Sent: June 25, 2012 10:37
> To: xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
>  >Here is where I think you will find the crux of the disagreement.
> 
> Indeed. The question is whether hyperlinks belong in layer 6 
> or layer 7. 
> The core XML specification belongs in layer 6, and should not 
> be polluted with stuff that has layer 7 semantics (like 
> xml;lang). Of course, XML browsers are free to recognize the 
> layer 7 semantics of particular namespaces if they choose.
> 
> I think the hyperlinking community has never been prepared to 
> make a proper separation between the information content of a 
> link and its presentation semantics. That is why it is has 
> been so hard to integrate hyperlinks into XML, which requires 
> that separation.
> 
> Michael Kay
> Saxonica
> 
> ______________________________________________________________
> _________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by 
> OASIS to support XML implementation and development. To 
> minimize spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 17:27
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hey David,

> 
> Peter Sez
> > But, my point remains, Web browsers are the most common XML 
> processing 
> > application on earth, and they can't recognize the hypermedia 
> > affordances we put in our representations.  Why not?
> >
> 
> Here is where I think you will find the crux of the disagreement.
> First off I will assert your statement is factually incorrect 
> (about being the most common XML processing app). 

If they're not, what is?

Wouldn't it be nice if xmlsh could rely on hypertext affordances too?

That might be powerful, too, fetching, creating and updating things over the
web.

> 
> But more importantly,  philosophically ...
> 
> There is the camp that believes XML should be agnostic about 
> the application layer And there is the camp that believes XML 
> should be tailored to make its use in a web browser more usable.

I have to go read up on layers, now.  Fair enough, they sound important!

> 
> Finding common ground between these is tough ... and IMHO is 
> why we ended up with HTML5 instead of XHTML2.

The common ground can be covered by links, and their associated metadata, IMHO.

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Richard Salz | 25 Jun 2012 17:37
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> Wouldn't it be nice if xmlsh could rely on hypertext affordances too?

Why can't it?

Seems me the only difference is the namespace-URI of the element and attribute.  Is that really a big deal?

Well, of course, the difference is that you'd have to come up with a definition that everyone would use, because it's good, rather than just because it was mandated by fiat.

        /r$
--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/
Rushforth, Peter | 25 Jun 2012 18:08
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

href, src, rel, type, method, hreflang are good because they're battle hardened, and everybody is using them already.  tref is good because it is related to href.
 
They're all good because they can be referred to well established RFCs or standards for definitions.
 
I don't know if you had a look at the schema I posted earlier, but some more comments are in there.
 
Peter
 

From: Richard Salz [mailto:rsalz <at> us.ibm.com]
Sent: June 25, 2012 11:37
To: Rushforth, Peter
Cc: Andrew Welch; David Lee; Uche Ogbuji; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> Wouldn't it be nice if xmlsh could rely on hypertext affordances too?

Why can't it?

Seems me the only difference is the namespace-URI of the element and attribute.  Is that really a big deal?

Well, of course, the difference is that you'd have to come up with a definition that everyone would use, because it's good, rather than just because it was mandated by fiat.

        /r$
--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/
Mike Sokolov | 25 Jun 2012 17:36
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"


On 06/25/2012 09:44 AM, David Lee wrote:
>
> There is the camp that believes XML should be agnostic about the application layer
> And there is the camp that believes XML should be tailored to make its use in a web browser more usable.
>    
Where do you think include semantics fall?  Seems to me they could 
inhabit either or both (parser and application) layers.  Peter: does 
your proposal address inclusion (like some "micro" analogue to xs:include)?

-Mike Sokolov

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 18:17
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Yes.

 <at> xml:src +  <at> xml:type +  <at> xml:hreflang

Nothing says you can't recombine or add other of the affordance "atoms" to build your own
media type semantics.

I thought about adding xml:tsrc, but I thought that was going too far.  What needs to
be done with a processed  <at> xml:tref is to go and get the resource, so by that time
there is no need to have any other semantics because the inclusion or fetching 
semantics would be probably carrried by either the element name or other attributes
that could be added by the media designer.

Peter

> -----Original Message-----
> From: Mike Sokolov [mailto:sokolov <at> ifactory.com] 
> Sent: June 25, 2012 11:37
> To: David Lee
> Cc: Rushforth, Peter; Andrew Welch; Uche Ogbuji; xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> 
> 
> On 06/25/2012 09:44 AM, David Lee wrote:
> >
> > There is the camp that believes XML should be agnostic about the 
> > application layer And there is the camp that believes XML 
> should be tailored to make its use in a web browser more usable.
> >    
> Where do you think include semantics fall?  Seems to me they 
> could inhabit either or both (parser and application) layers. 
>  Peter: does your proposal address inclusion (like some 
> "micro" analogue to xs:include)?
> 
> -Mike Sokolov
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 25 Jun 2012 15:26
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 25/06/2012 14:10, Rushforth, Peter wrote:
> Less academically, and more practically, when your browser receives
> a message which is unambiguously application/xml ie is transmitted
> with the http header Content-Type: application/xml, and there are
>  <at> href values in it, regardless of namespace, they are not underlined.
> Why not?

The "regardless of namespace bit" isn't true in firefox at least which
renders xhtml as xhtml (including link semantics) if the xml elements
are in the xhtml namespace. (At least it did until recently haven't
checked on the latest builds)

Why _would_ you expect them to be underlined if the xml is not being
rendered? I certainly would not. If you send unknown xml to a browser it
is not styled _at all_ Why would you expect links to work as links if
headings are not working as headings and paragraphs are not working as
paragraphs?

If you associate a stylesheet with the xml via xml-stylesheet or another
means then you can make paragraphs be rendered as paragraphs and make
links be underlined. (If you use css rather than xsl I think you still
can't make the links be links but that's an issue for css)

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 17:10
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> 
> Why _would_ you expect them to be underlined if the xml is 
> not being rendered? I certainly would not. If you send 
> unknown xml to a browser it is not styled _at all_ Why would 
> you expect links to work as links if headings are not working 
> as headings and paragraphs are not working as paragraphs?

The XML is being rendered.  It displays as nice syntax coloured, indented
XML.  Regardless of what the elements are, what namespace they're in,
what encoding the document is in.  OK, I don't *know* all these
things to be true, because I have not written any browser code,
but I've witnessed it.  And so far my experience holds for
application/xml, but not for any +xml media type.  So those browser
guys can only be pushed so far, apparently.

 
> If you associate a stylesheet with the xml via xml-stylesheet 
> or another means then you can make paragraphs be rendered as 
> paragraphs and make links be underlined. (If you use css 
> rather than xsl I think you still can't make the links be 
> links but that's an issue for css)

No, I don't think it is a CSS issue.  It is the fact that the links
aren't recognized by the browser parser.  I think!.

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 25 Jun 2012 17:21
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 25/06/2012 16:10, Rushforth, Peter wrote:
>>
>> Why _would_ you expect them to be underlined if the xml is not
>> being rendered? I certainly would not. If you send unknown xml to
>> a browser it is not styled _at all_ Why would you expect links to
>> work as links if headings are not working as headings and
>> paragraphs are not working as paragraphs?
>
> The XML is being rendered.  It displays as nice syntax coloured,
> indented XML.

Unknown XML gets pushed through a default XSL stylesheet that shows the
_markup_ as such you would not expect links to act as links. This is a
"view source" kind of application. You should only expect the links to
act as links if the markup is being interpreted not if the _markup_ is
being displayed.

> Regardless of what the elements are, what namespace they're in, what
> encoding the document is in.  OK, I don't *know* all these things to
> be true, because I have not written any browser code, but I've
> witnessed it.  And so far my experience holds for application/xml,
> but not for any +xml media type.  So those browser guys can only be
> pushed so far, apparently.
>
>
>> If you associate a stylesheet with the xml via xml-stylesheet or
>> another means then you can make paragraphs be rendered as
>> paragraphs and make links be underlined. (If you use css rather
>> than xsl I think you still can't make the links be links but
>> that's an issue for css)

>
> No, I don't think it is a CSS issue.  It is the fact that the links
> aren't recognized by the browser parser.  I think!.

It isn't a browser parser it's a browser supplied XSLT (at least it is
in IE (which did this first) and Firefox. So actually it could show
anything (since the output if an XSLT stylesheet needn't be particularly
related to its input).

In firefox you can see the default stylesheet by following

chrome://global/content/xml/XMLPrettyPrint.xsl

I would guess you could get it to use a different default styling if you
wish.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 17:39
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

David,

> On 25/06/2012 16:10, Rushforth, Peter wrote:
> >>
> >> Why _would_ you expect them to be underlined if the xml is 
> not being 
> >> rendered? I certainly would not. If you send unknown xml 
> to a browser 
> >> it is not styled _at all_ Why would you expect links to 
> work as links 
> >> if headings are not working as headings and paragraphs are not 
> >> working as paragraphs?
> >
> > The XML is being rendered.  It displays as nice syntax coloured, 
> > indented XML.
> 
> Unknown XML gets pushed through a default XSL stylesheet that 
> shows the _markup_ as such you would not expect links to act 
> as links. This is a "view source" kind of application. You 
> should only expect the links to act as links if the markup is 
> being interpreted not if the _markup_ is being displayed.

OK I think I had guessed that at some time in the past, but forgotten it.
What I would wish for is that the browser interpret the markup then, and
find the links, rel, type, method etc so that it can act as a 
go-between my javascript (which it would have to load because it
had recognized the  <at> rel="script"  <at> type="application/javascript" part of
my affordance, as well as possibly others.  Because the browser is
charged with the protocol (content negotiation, for example.  method
selection, for another).  So code-on-demand would work not only for
HTML, but also more powerfully, for anything XML.

Now, substitute XSLT 2 for javascript, and we are cooking with hypermedia gas.

> 
> > Regardless of what the elements are, what namespace they're 
> in, what 
> > encoding the document is in.  OK, I don't *know* all these 
> things to 
> > be true, because I have not written any browser code, but I've 
> > witnessed it.  And so far my experience holds for 
> application/xml, but 
> > not for any +xml media type.  So those browser guys can 
> only be pushed 
> > so far, apparently.
> >
> >
> >> If you associate a stylesheet with the xml via xml-stylesheet or 
> >> another means then you can make paragraphs be rendered as 
> paragraphs 
> >> and make links be underlined. (If you use css rather than 
> xsl I think 
> >> you still can't make the links be links but that's an 
> issue for css)
> 
> 
> >
> > No, I don't think it is a CSS issue.  It is the fact that the links 
> > aren't recognized by the browser parser.  I think!.
> 
> It isn't a browser parser it's a browser supplied XSLT (at 
> least it is in IE (which did this first) and Firefox. So 
> actually it could show anything (since the output if an XSLT 
> stylesheet needn't be particularly related to its input).
> 
> In firefox you can see the default stylesheet by following
> 
> chrome://global/content/xml/XMLPrettyPrint.xsl
> 
> I would guess you could get it to use a different default 
> styling if you wish.

OK thanks for reminding me and helping me back on to that learning curve.
I still stand by my comments above though.

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 25 Jun 2012 18:20
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 25/06/2012 16:39, Rushforth, Peter wrote:
> So code-on-demand would work not only for HTML, but also more
> powerfully, for anything XML.

It would be a really retrograde step to force certain named
attribute/elements to have _fixed_ semantics. That is by design one of
the main differences between using a language-specific markup such as
html and a generic markup such as xml. It is (more or less) OK to do 
this for things in the xml namepsace, but certainly not for all href
attributes for example). Even something like xml:id is sort of OK but
its benefits are rather limited as usually you don't want to use a fixed
name, you want to use a name that fits with the application design. (id
for example). This has always been a fatal flaw in xlink (and explicitly
why it was never adopted in xhtml2 drafts as using html-specific
attribute such as href and src were always going to be more popular _in
html_ than xlink variants of the same).

If you want the xml to be treated as html with <link elements
associating scripts and stylesheets etc, and href acting like 
xhtml:a/ <at> href then supply an xslt stylesheet that expresses that behaviour.

Note even in (x)html href doesn't -always- denote a link (although that
was proposed for xhtml2) Html href only implies a link on
certain pre-specified elements. So the fact that href in unknown xml
does not imply any linking behaviour is entirely consistent.

If you modify your browsers default xslt (or if you serve the xml
already associated to a non-default xslt) then you can already do
everything that you ask. If you serve xml in an unknown vocabulary then
it is right that the browser does not interpret it at all and just shows
it verbatim (with optionally syntax highlighting applied) to do anything
different would be confusing, or dangerous or both.

But actually I'm confused. This thread is about microxml so given that
browsers already do full xml so are presumably highly unlikely to do
microxml as well, how would adding pre-defined semantics to xml:link in
microxml help or hinder the use of xml on the web?

David

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 25 Jun 2012 18:40
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi David,

> 
> On 25/06/2012 16:39, Rushforth, Peter wrote:
> > So code-on-demand would work not only for HTML, but also more 
> > powerfully, for anything XML.
> 
> It would be a really retrograde step to force certain named 
> attribute/elements to have _fixed_ semantics. That is by 
> design one of the main differences between using a 
> language-specific markup such as html and a generic markup 
> such as xml. 

Well, of course if the semantics in the root namespace don't fit
the bill - perhaps the 20% use case(?) - invent your own or add to them.
That's what's great about XML, right?

> It is (more or less) OK to do this for things in 
> the xml namepsace, but certainly not for all href attributes 
> for example). Even something like xml:id is sort of OK but 
> its benefits are rather limited as usually you don't want to 
> use a fixed name, you want to use a name that fits with the 
> application design. (id for example).

Well, xml:id is a bit funny, I admit, because what you want to
put in it should up to the client not XML.  But maybe it has benefits;
I've never had to use it.

However, xml:base is a bit closer to home, since it controls the
location of the resource for the application.  If it's important
for where this resource is to be in that namespace, why isn't it
important for where other resources are (href, src, tref)?  
And, what they might mean ( <at> rel,  <at> type - RFC 2046,  <at> hreflang)?

The latter is of course related to xml:lang, which describes what
parts of this representation mean.

Other stuff like title I think is less important, and does not need
to go into the root namespace - does not really control what the application
does with the link, except presentation - invent away!

> This has always been a 
> fatal flaw in xlink (and explicitly why it was never adopted 
> in xhtml2 drafts as using html-specific attribute such as 
> href and src were always going to be more popular _in html_ 
> than xlink variants of the same).

Well I'm just sayin' :-).

> 
> If you want the xml to be treated as html with <link elements 
> associating scripts and stylesheets etc, and href acting like 
> xhtml:a/ <at> href then supply an xslt stylesheet that expresses 
> that behaviour.
> 
> Note even in (x)html href doesn't -always- denote a link 
> (although that was proposed for xhtml2) Html href only 
> implies a link on certain pre-specified elements. So the fact 
> that href in unknown xml does not imply any linking behaviour 
> is entirely consistent.
> 
> If you modify your browsers default xslt (or if you serve the 
> xml already associated to a non-default xslt) then you can 
> already do everything that you ask. If you serve xml in an 
> unknown vocabulary then it is right that the browser does not 
> interpret it at all and just shows it verbatim (with 
> optionally syntax highlighting applied) to do anything 
> different would be confusing, or dangerous or both.

I don't think you can modify the browser's default XSLT, right?
That's not code-on-demand, it is a client configuration tool.
You're right, it might be dangerous to allow that I think.  
So if the browser natively controls what gets presented as a link,
it has its own security paradigm that it follows, for example
preventing cross-site scripting etc.  How it recognizes cross
site scripting is because I think it only allows xhr requests for
code on demand, with the exception of json, which it can
statically analyze, perhaps.  Just guessing here.

> 
> But actually I'm confused. This thread is about microxml so 
> given that browsers already do full xml so are presumably 
> highly unlikely to do microxml as well, how would adding 
> pre-defined semantics to xml:link in microxml help or hinder 
> the use of xml on the web?

I really apologize, but I thought that was what MicroXML was about -
helping advance the use of XML on the Web.  

If not, I will stay out of it.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 25 Jun 2012 22:37
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 25/06/2012 17:40, Rushforth, Peter wrote:
> I really apologize, but I thought that was what MicroXML was about -
>  helping advance the use of XML on the Web.

Micro xml is (presumably) aimed at situations where full xml support is
too much of a burden. Since web browsers already have full xml parsers,
adding micro xml _in addition_ would just be extra weight for little
gain. I can't see any likelihood (and haven't seen any proposal) that it
should be implemented in a browser.

There may be many apps (mobile for example) that are on the web where
the weight of a full browser implementation is inappropriate where micro
xml might be just what is needed. I may be wrong of course. If any
browser implementers _are_ considering implementing microxml let them
speak up. It wouldn't be the first time I've been proved wrong:-)

David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 30 Jun 2012 10:13
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Len and David,

These Socratic dialogues we've had are still on my mind, and I wanted to share a few more thoughts which pull
elements from individual emails throughout this thread and earlier ones too.  I think we're not far from
the finish/start line, actually.  Hopefully it won`t actually end up looking like a circle, but a path ;-). 
I'll try to not stray too far into rhetoric, and I hope you or others listening will correct me if I do.

Before proceeding, I'd like to say that Respect is a lesson I was taught early in my career.  The kind of
respect I learned was this: what people have thought about and achieved in the past, especially in
programming, is something that should not lightly be tossed overboard.  There are always lessons to be
learned from others, by listening and thinking about what is being said.  Recognizing that, sometimes in
order to stay afloat, tossing stuff overboard is essential - MicroXML is a rethink and as such it may be
necessary to unburden ourselves of a few things.  If there was anyone I would follow into new territory of
thinking, it would be James Clark, no disrespect meant to *anyone* on the list.  But, it also may be
necessary to provision the ship for the voyage, and that is specifically the piece of the puzzle I want to
talk about, and with your help, solve.

"In order to obtain a uniform interface, multiple architectural constraints are needed to guide the
behavior of components. REST is defined by four interface constraints: identification of resources;
manipulation of resources through representations; self-descriptive messages; and, hypermedia as
the engine of application state."

> There is a bit of retrofitted history in that description.  The Internet and the web applications as well as
others were functional before the term "representational state transfer" was ever coined and that
notion was already a part of discussions.

In the light of my respect, I wanted to say that it took me a long time, and a lot of related reading, to fully
understand that sentence.   Fielding's writing is excellent, but dense.  The beauty of that writing style
is that we have to read and think about each sentence and each paragraph, but it is rewarding - and in
thinking about it, we begin to be able to _parse_ and _understand_ it and we're given something new: an
idea.  Furthermore, I would say that my understanding of the Ph.D. thing, is that you must describe and
defend a bona fide _new_ idea in order to pass.  In the case of Fielding, the idea was not the architecture of
the Web, even though it is well described by his dissertation, but the _style_ of that architecture.  Now I
don't know how many visual artists there are among us, but I'm pretty sure there are poets here.  And, I bet
you they would understand the idea of a poetic style [1].  The Web has a style:  Fielding was the first to
identify and describe it.  

[1] http://records.viu.ca/~johnstoi/eng366/lectures/poetry.htm

This is not meant to idolize people, just to try to respectfully understand the ideas of others.  The Web
gives us the _tools_ to access the ideas of others almost instantly, if they post them, but does not grant us
access to an understanding of them, which takes time and reflection.   And we're not talking about _old
bones_ here [2].

[2] http://vimeo.com/4176485

So the phrase you used that you said Charles Goldfarb used, "own the parse", also lit the light bulb for me. 
You sometimes hear people use the word "parse" to describe the process of understanding other peoples
sentences.  Ie you have to pick something apart before understanding it.  The MicroXML proposal has a lot in
common with SGML, I think, especially with respect to namespaces [0].

[0] http://www.sgmlsource.com/infaqs.htm#Namespaces

I think James will help figure out a reasonable approach for the Web, and appropriately apply techniques to
help us navigate that.  The key is to have a respectful approach to all that history has taught us.  Otherwise
we, the XML community, will end up like Wiley Coyote, forever doomed to repeat our mistakes because we
can't learn from what has been achieved.

Back to the Web.  The REST architectural style focuses what is necessary to achieve the "Uniform
Interface".  That Uniform Interface is very much like the common electrical receptacle, in my view,
except that what it allows us to access is not electricity, but ideas.  But, those ideas are worth more,
even.  Now here's the thing.  The architectural style of the Web doesn't just allow us to exchange
html-formatted ideas.  It allows us to exchange _copies_ of the raw ideas themselves, expressed as representations.

The representation abstraction is quite important.  We've heretofore exchanged self descriptive
messages that have been labelled text/html, for the most part.  People have been putting their ideas in
html for a couple or more decades.  But html is being stretched, and I too think it will break, as you were
suggesting earlier.  According to REST, it _should_ break into many media types, each identifying the set
of concepts that the application needs.  And the one thing in common of *all* of those mime types _should_ be
hypermedia affordances. 

Representation _format_ is more important than you think.  In the REST style, every time you add/change an
element or an attribute to an XML design, you change the semantics of the message.  XML people would say to
that, "Well, duh", I imagine.  Here's something that not everybody knows, however, and I don't know why
that is, except perhaps that it takes a lot of reading to connect all the dots:  for the _Web_, you are
*required* to register a media type to identify the semantics of that configuration. If you change the
configuration of elements and/or attributes, and those changes are not _backwards compatible_, a new
media type should be registered.  That is, if you want to exchange its semantics over the Uniform
Interface.  Here's what Fielding and Jacobs [3] say about semantics: 

"In Web architecture, communication between agents consists of exchanging messages with predefined
syntax and semantics: a shared expectation of how each message's control data and payload
(representation data and metadata) will be interpreted by the recipient. ... An Internet media type
[RFC2046] is metadata in the form of a short name (e.g., "text/html") that associates the data with a
specific format specification and preferred interpretation. The association is formally
accomplished through registration of the media type in the IANA media type registry."

[3] http://www.w3.org/2001/tag/doc/mime-respect-20060412

A new mentor told me that the battle here is really about the cost of deployed XML 1.0 code.  I don't see it that
way.  Deployed XML 1.0 code should be supported in the REST way: with respect.  That is, if you can't provide
simple, backwards-compatible hypermedia to the XML 1.0 agent under the guise of application/xml or
whatever the media type, you should bump the media type.  If the client negotiates for the new media type,
then it obviously knows about the new semantics.  If it negotiates for the old media type, it may not know
about the new semantics, but so long as it is not confused by the presence of new semantics in the message, it
is ok to send them.

And Andrew was right, this has been discussed on this list in 2010 by himself, James,  John, and other members
of this community,  and also previously by the SVG WG list.  The issue is not limited to the SVG community, it
is shared by every single vocabulary that inherits XML semantics (XML media types).  The cost of XML
hypermedia?  The time to file the bug, agree on it, add it to the XML namespace "registry" (more below).  The
value of a _Hypermedia Web_ of XML with namespaces? Pretty gosh-darn high, if deployed browsers already
carry full XML parsers.  I think those html browsers might be willing to recognize XML hypermedia
affordances.  Just a guess, really.  The value of a _Hypermedia Web_ of MicroML, with no namespaces, per
Andrew, James and John?  Priceless.

So if, as they suggest [3], a media type conveys the shared understanding of how the message will be
interpreted, or _parsed_, and that shared understanding is conveyed through a registry, we need a
registry for XML stuff.  The XML namespace is already that registry, with a very very high bar to entry. 
Perfect.  It should have hypermedia affordances in it, because those support the Uniform Interface: they
are the prongs of the plug for the Uniform Interface receptacle.  That way, every new media type that
arises, which chooses to, can refer to those public semantics without having to re-invent them, as is
being done now.   Cut and paste of non-namespaced elements is enabled.  MicroXML is probably going to be the
first media type that will need to, if it is to achieve its goals [4].  In my opinion, the hypermedia
affordances requested here [5] are like the gift that a parent gives a child when it goes off on its own in
life's voyage: a blessing.  It's not as though the child could not achieve its goals on its own without the
blessing of the parent, but it is best for both if that blessing is given.  And, it costs only an infinitely
small fraction of its value.

[4] http://www.w3.org/TR/REC-xml/#sec-origin-goals
[5] https://www.w3.org/Bugs/Public/show_bug.cgi?id=17659

In the Web of XML 1.0 - the REST Web - media types will link to media types all with the same shared
understanding (support for the Uniform Interface), but conveying different ideas - the content.  This is
all possible with existing technology, if we add hypermedia affordances to XML.  In the Next Semantic Web,
the one Andrew, James and John are talking about, we will also need the self-same plugs to plug into the
receptacles of the REST web.  It may just need a new media type (and suffix?) of its own, because it should be
able to pull in semantics from XML, HTML, SVG and ((m)any) others.  Why?  Because (the investment in) all of
that Web Infrastructure out there must be respected by whatever comes next - *that* is backwards-compatibility.

> If any browser implementers _are_ considering implementing microxml let them speak up.

That seems reasonable.

So, David, here's my proposal:  Let's have a vote.  I know this is a little irregular, but bear with me, I think
it can clarify things.  I notice that James has not entered this discussion.  In fact, I haven't seen him
around here since 2010.  Maybe he's waiting for consensus to emerge, or maybe he's just given up.  I hope not,
because the future is wide open.

Voting rules: Votes shall be cast in the following order James Clark, Michael Kay, Tim Bray, then everyone
else.  If votes are not cast in this order, I do not promise not to raise the xml: hypermedia affordances
issue in another thread.  If they are cast in that order, I will respect the result of the vote.  If nobody has
voted by Sunday July 1st 2012 at 9 pm Ottawa time, I will take it as a sign that rough consensus is impossible
and drop the XML namespace issue. 

There are two proposals here.  You should +1 / -1 both to indicate your support of the respective items.  You
can abstain from either vote.

Vote #1:  Andrew Welch, James Clark and John Cowan should lead the development of a W3C MicroXML
Recommendation, and be named editors, order to be determined by themselves.

Vote #2: Bugzilla bug #17659 [5] should be accepted by the XML Working Group for due consideration, in light
of discussion within and between the XML and Web communities.

Please vote (*in order*).

Warm Regards,
Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 1 Jul 2012 01:17

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Rushforth, Peter scripsit:

> Please vote (*in order*).

This all seems to me nothing more than a vast to-do about whether
a general-purpose href attribute ought to be xlink:href or xml:ref.
I cannot take the question seriously.  "Parturient montes, nascetur
ridiculus mus."

--

-- 
We call nothing profound                        cowan <at> ccil.org
that is not wittily expressed.                  John Cowan
        --Northrop Frye (improved)

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 1 Jul 2012 02:02

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

IMHO  ... risking offence by overstepping my bounds ... I think it's a bit forward to insist that particular
people vote on a suggestion of this nature in this forum.  This forum is about open discussions not forcing
an agenda.  I would think attempting to force a vote and naming individuals would be in the providence of a
standards body not a discussion forum.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

> -----Original Message-----
> From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
> Sent: Saturday, June 30, 2012 7:18 PM
> To: Rushforth, Peter
> Cc: David Carlisle; Len Bullard; xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
> principles of MicroXML"
> 
> Rushforth, Peter scripsit:
> 
> > Please vote (*in order*).
> 
> This all seems to me nothing more than a vast to-do about whether
> a general-purpose href attribute ought to be xlink:href or xml:ref.
> I cannot take the question seriously.  "Parturient montes, nascetur
> ridiculus mus."
> 
> --
> We call nothing profound                        cowan <at> ccil.org
> that is not wittily expressed.                  John Cowan
>         --Northrop Frye (improved)
> 
> ________________________________________________________________
> _______
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 1 Jul 2012 17:01

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

John Cowan Sez ...
> This all seems to me nothing more than a vast to-do about whether
> a general-purpose href attribute ought to be xlink:href or xml:ref.
> I cannot take the question seriously.  "Parturient montes, nascetur
> ridiculus mus."

My take is a little more serious.  If an attribute is part of the xml namespace then there is a presumption that
all consumers of "XML" understand and apply the semantics.  I would think it would be a "must do".  But
putting an attribute in another namespace makes it a "do if you want to support that thingy".   I think this is
a big difference.
Therefore I am on the side of minimal amounts of attributes in the xml namespace ... OTOH I do understand the
desire to put more in so that one could count on all consumers understanding and enforcing the semantics. 
But that's the rub with this suggestion, IMHO.
Unlike HTML where the intent of the HTML semantics is very tightly bound to presentation in a browser.  XML
(or MicroXML) is not necessarily bound to presentation semantics.  So what does it mean in the general
sense to recognize and support the semantics of href and friends ?
I think that will be a very difficult thing to define and get consensus, and also very difficult to validate
conformance.  Only in certain use cases does it have meaning (even if those are common). This is the big
blocker for me. 

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 1 Jul 2012 19:11

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

David Lee scripsit:

> My take is a little more serious.  If an attribute is part of the
> xml namespace then there is a presumption that all consumers of "XML"
> understand and apply the semantics.  

Not at all.  It's quite common, for example, not to support xml:space,
and there are plenty of document types that use id or something else
rather than xml:id.  The xml:* attributes are there if you need them,
but otherwise have no special status.

> Unlike HTML where the intent of the HTML semantics is very tightly bound
> to presentation in a browser.  XML (or MicroXML) is not necessarily
> bound to presentation semantics.  So what does it mean in the general
> sense to recognize and support the semantics of href and friends ?

Hyperlinking is not about presentation, it's about expressing a relationship
between documents.  For various hysterical raisins, XML-based document types
have most often chosen to use non-generic markup to express hyperlinking.

--

-- 
Note that nobody these days would clamor for fundamental laws        John Cowan
of *the theory of kangaroos*, showing why pseudo-kangaroos are   cowan <at> ccil.org
physically, logically, metaphysically impossible.    http://www.ccil.org/~cowan
Kangaroos are wonderful, but not *that* wonderful.     --Dan Dennett on zombies

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 2 Jul 2012 09:27
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> Hyperlinking is not about presentation, it's about expressing a relationship
> between documents.  For various hysterical raisins, XML-based document types
> have most often chosen to use non-generic markup to express hyperlinking.

Hyperlinks in html are a programming language instruction to the
browser, rather than a way to model relationships in your data.

What are the hysterical reasons?  (or raisins) :)

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 2 Jul 2012 10:47

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Andrew Welch scripsit:

> What are the hysterical reasons?  (or raisins) :)

Chiefly I think because XLink was slow to come out and was too complicated
to hit the 80/20 sweet spot.  Now we have revised it to do so,
but it's too late.

--

-- 
There is / One art                      John Cowan <cowan <at> ccil.org>
No more / No less                       http://www.ccil.org/~cowan
To do / All things
With art- / Lessness                     --Piet Hein

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 2 Jul 2012 11:17
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 02/07/2012 09:47, John Cowan wrote:
> Chiefly I think because XLink was slow to come out and was too
> complicated to hit the 80/20 sweet spot.  Now we have revised it to
> do so, but it's too late.

The revision is better but I think that xlink still isn't "too late" it
is _wrong_.

The revision means you don't have to specify xlink:type but you still
have to use xlink:href and as such I don't think even the revised
version would have been used in XHTML (and related contexts) even had it
been ready at the time. hyperlinking is central to (X)HTML and so
HTML-specific attribute <a href="..."> <img src="..."> are the right
thing to do. Forcing end users to declare an extra namespace and rename
all the attributes is just wrong.

XML doesn't in general reserve element and attribute names so as to give
language designers using the syntax freedom over naming language
constructs, and that applies just as much to attributes that imply links
as any other.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 3 Jul 2012 05:58
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Mon, 2012-07-02 at 10:17 +0100, David Carlisle wrote:

> The revision is better but I think that xlink still isn't "too late" it
> is _wrong_.

+1

The right thing would have been to have taken the architectural forms
idea from HyTime and XMLified it, solving the additional problem of
"link discovery". That's with 20-20 hindsight.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, "Beginning XML" 5th edition, Wrox, July 2010

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 3 Jul 2012 07:18

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Liam R E Quin scripsit:

> The right thing would have been to have taken the architectural forms
> idea from HyTime and XMLified it, solving the additional problem of
> "link discovery". That's with 20-20 hindsight.

The original version of XLink *was* AF-based.  See
http://www.w3.org/TR/WD-xml-link-970731 .

--

-- 
If you understand,                      John Cowan
   things are just as they are;         http://www.ccil.org/~cowan
if you do not understand,               cowan <at> ccil.org
   things are just as they are.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 3 Jul 2012 08:03
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Tue, 2012-07-03 at 01:18 -0400, John Cowan wrote:
> Liam R E Quin scripsit:
> 
> > The right thing would have been to have taken the architectural forms
> > idea from HyTime and XMLified it, solving the additional problem of
> > "link discovery". That's with 20-20 hindsight.
> 
> The original version of XLink *was* AF-based.  See
> http://www.w3.org/TR/WD-xml-link-970731 .

Yes, kinda (not using PIs) but in a very SGML/DTD way, not surprisingly
given when the work was being done (I was actually on the WG for a
while). Thanks for the reminder, I had indeed forgotten that stage.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 16:59
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

From the abstract:

"It is a goal to use the power of XML to create a structure that can describe the simple unidirectional
hyperlinks of today's HTML as well as more sophisticated multi-ended, typed, self-describing links."

This seems to have two contradictory goals, really.  Simplicity, yet complexity.

I don't know, but what might The Rule of Least Power [1] say about the issue?  I would think it would be
something like enabling XML with the most power by limiting the complexity of the approach, rather than
using the full power of XML to "solve" the problem.

Peter

[1] http://www.w3.org/2001/tag/doc/leastPower.html

> -----Original Message-----
> From: Liam R E Quin [mailto:liam <at> w3.org] 
> Sent: July 3, 2012 02:04
> To: John Cowan
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> On Tue, 2012-07-03 at 01:18 -0400, John Cowan wrote:
> > Liam R E Quin scripsit:
> > 
> > > The right thing would have been to have taken the architectural 
> > > forms idea from HyTime and XMLified it, solving the additional 
> > > problem of "link discovery". That's with 20-20 hindsight.
> > 
> > The original version of XLink *was* AF-based.  See
> > http://www.w3.org/TR/WD-xml-link-970731 .
> 
> Yes, kinda (not using PIs) but in a very SGML/DTD way, not 
> surprisingly given when the work was being done (I was 
> actually on the WG for a while). Thanks for the reminder, I 
> had indeed forgotten that stage.
> 
> Liam
> 
> 
> --
> Liam Quin - XML Activity Lead, W3C, 
> http://www.w3.org/People/Quin/ Pictures from old books: 
> http://fromoldbooks.org/
> Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> 
> 
> ______________________________________________________________
> _________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 3 Jul 2012 17:43

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

I still find this a tantalizing discussion.
My question is this:
Suppose we identify a really useful set of attributes for "doing X" and want to include it in the xml
namespace.  ( note: for MicroXML thats the ONLY namespace ???) ...
And suppose we really believe this is useful stuff.

Question: How sure are we that we have it right ?  Once things get baked in they are pretty baked.   I believe a lot
of XMLish things failed because the were not quite baked before being pulled out of the oven.
Even today I am not quite convinced of the validity of a URL vs a URI.
That is, what *is* the guarantee that a URL actually can be indirected to a resource, and that resource  is
what we think it is ?
Of course that hasn't stopped HTML href's ... they sometimes work ok :)

So if we propose adding something useful to a new standard ... how sure are we its the right thing ?  I can accept
that its "optional" but if it's not well defined and not quite right then that is worse than nothing not
better.   I am not convinced, even looking over the shoulders of giants, that the link problem has been
solved properly.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

> -----Original Message-----
> From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> Sent: Tuesday, July 03, 2012 11:00 AM
> To: liam <at> w3.org; John Cowan
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
> principles of MicroXML"
> 
> From the abstract:
> 
> "It is a goal to use the power of XML to create a structure that can describe the
> simple unidirectional hyperlinks of today's HTML as well as more sophisticated
> multi-ended, typed, self-describing links."
> 
> This seems to have two contradictory goals, really.  Simplicity, yet complexity.
> 
> I don't know, but what might The Rule of Least Power [1] say about the issue?
> I would think it would be something like enabling XML with the most power by
> limiting the complexity of the approach, rather than using the full power of
> XML to "solve" the problem.
> 
> Peter
> 
> [1] http://www.w3.org/2001/tag/doc/leastPower.html
> 
> > -----Original Message-----
> > From: Liam R E Quin [mailto:liam <at> w3.org]
> > Sent: July 3, 2012 02:04
> > To: John Cowan
> > Cc: David Carlisle; xml-dev <at> lists.xml.org
> > Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore
> > the basic principles of MicroXML"
> >
> > On Tue, 2012-07-03 at 01:18 -0400, John Cowan wrote:
> > > Liam R E Quin scripsit:
> > >
> > > > The right thing would have been to have taken the architectural
> > > > forms idea from HyTime and XMLified it, solving the additional
> > > > problem of "link discovery". That's with 20-20 hindsight.
> > >
> > > The original version of XLink *was* AF-based.  See
> > > http://www.w3.org/TR/WD-xml-link-970731 .
> >
> > Yes, kinda (not using PIs) but in a very SGML/DTD way, not
> > surprisingly given when the work was being done (I was
> > actually on the WG for a while). Thanks for the reminder, I
> > had indeed forgotten that stage.
> >
> > Liam
> >
> >
> > --
> > Liam Quin - XML Activity Lead, W3C,
> > http://www.w3.org/People/Quin/ Pictures from old books:
> > http://fromoldbooks.org/
> > Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> >
> >
> > ______________________________________________________________
> > _________
> >
> > XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> > to support XML implementation and development. To minimize
> > spam in the archives, you must subscribe before posting.
> >
> > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> > subscribe: xml-dev-subscribe <at> lists.xml.org
> > List archive: http://lists.xml.org/archives/xml-dev/
> > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> >
> >
> ________________________________________________________________
> _______
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 3 Jul 2012 18:10
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

If you can find a copy of deRose and Durand's book on Hytime, that's a
good start.  

Be ready to answer questions that seem quite easy on the surface and
then turn out to be nasty when specified.  What is the difference
between a simple link, a multi-link, and a simple link to an entity
containing a lot of simple links (eg, a catalog)?  Will what you propose
scale (there is a reason XML separated DTDs from the instance and SGML
didn't).

My advice is don't propose anything you can't or haven't implemented
first.  HyTime went into the weeds because thoroughness in specification
kept opening more and more rabbit holes that very few of us knew how to
traverse.  Groves are elegant but obtuse.  The DOM works but so do
transforms.  XSL-FOs could be implemented but CSS is a helluva lot
easier to teach and build.

alice

-----Original Message-----
From: David Lee [mailto:dlee <at> calldei.com] 
Sent: Tuesday, July 03, 2012 10:44 AM
To: Rushforth, Peter; liam <at> w3.org; John Cowan
Cc: David Carlisle; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

I still find this a tantalizing discussion.
My question is this:
Suppose we identify a really useful set of attributes for "doing X" and
want to include it in the xml namespace.  ( note: for MicroXML thats the
ONLY namespace ???) ...
And suppose we really believe this is useful stuff.

Question: How sure are we that we have it right ?  Once things get baked
in they are pretty baked.   I believe a lot of XMLish things failed
because the were not quite baked before being pulled out of the oven.
Even today I am not quite convinced of the validity of a URL vs a URI.
That is, what *is* the guarantee that a URL actually can be indirected
to a resource, and that resource  is what we think it is ?
Of course that hasn't stopped HTML href's ... they sometimes work ok :)

So if we propose adding something useful to a new standard ... how sure
are we its the right thing ?  I can accept that its "optional" but if
it's not well defined and not quite right then that is worse than
nothing not better.   I am not convinced, even looking over the
shoulders of giants, that the link problem has been solved properly.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

> -----Original Message-----
> From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> Sent: Tuesday, July 03, 2012 11:00 AM
> To: liam <at> w3.org; John Cowan
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the
basic
> principles of MicroXML"
> 
> From the abstract:
> 
> "It is a goal to use the power of XML to create a structure that can
describe the
> simple unidirectional hyperlinks of today's HTML as well as more
sophisticated
> multi-ended, typed, self-describing links."
> 
> This seems to have two contradictory goals, really.  Simplicity, yet
complexity.
> 
> I don't know, but what might The Rule of Least Power [1] say about the
issue?
> I would think it would be something like enabling XML with the most
power by
> limiting the complexity of the approach, rather than using the full
power of
> XML to "solve" the problem.
> 
> Peter
> 
> [1] http://www.w3.org/2001/tag/doc/leastPower.html
> 
> > -----Original Message-----
> > From: Liam R E Quin [mailto:liam <at> w3.org]
> > Sent: July 3, 2012 02:04
> > To: John Cowan
> > Cc: David Carlisle; xml-dev <at> lists.xml.org
> > Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore
> > the basic principles of MicroXML"
> >
> > On Tue, 2012-07-03 at 01:18 -0400, John Cowan wrote:
> > > Liam R E Quin scripsit:
> > >
> > > > The right thing would have been to have taken the architectural
> > > > forms idea from HyTime and XMLified it, solving the additional
> > > > problem of "link discovery". That's with 20-20 hindsight.
> > >
> > > The original version of XLink *was* AF-based.  See
> > > http://www.w3.org/TR/WD-xml-link-970731 .
> >
> > Yes, kinda (not using PIs) but in a very SGML/DTD way, not
> > surprisingly given when the work was being done (I was
> > actually on the WG for a while). Thanks for the reminder, I
> > had indeed forgotten that stage.
> >
> > Liam
> >
> >
> > --
> > Liam Quin - XML Activity Lead, W3C,
> > http://www.w3.org/People/Quin/ Pictures from old books:
> > http://fromoldbooks.org/
> > Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> >
> >
> > ______________________________________________________________
> > _________
> >
> > XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> > to support XML implementation and development. To minimize
> > spam in the archives, you must subscribe before posting.
> >
> > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> > subscribe: xml-dev-subscribe <at> lists.xml.org
> > List archive: http://lists.xml.org/archives/xml-dev/
> > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> >
> >
> ________________________________________________________________
> _______
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 18:27
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

HTML has had links implemented for more than a couple of decades, we should
respect that experience.

Peter 

> -----Original Message-----
> From: Len Bullard [mailto:Len.Bullard <at> ses-i.com] 
> Sent: July 3, 2012 12:11
> To: Rushforth, Peter
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> If you can find a copy of deRose and Durand's book on Hytime, 
> that's a good start.  
> 
> Be ready to answer questions that seem quite easy on the 
> surface and then turn out to be nasty when specified.  What 
> is the difference between a simple link, a multi-link, and a 
> simple link to an entity containing a lot of simple links 
> (eg, a catalog)?  Will what you propose scale (there is a 
> reason XML separated DTDs from the instance and SGML didn't).
> 
> My advice is don't propose anything you can't or haven't 
> implemented first.  HyTime went into the weeds because 
> thoroughness in specification kept opening more and more 
> rabbit holes that very few of us knew how to traverse.  
> Groves are elegant but obtuse.  The DOM works but so do 
> transforms.  XSL-FOs could be implemented but CSS is a 
> helluva lot easier to teach and build.
> 
> alice
> 
> -----Original Message-----
> From: David Lee [mailto:dlee <at> calldei.com]
> Sent: Tuesday, July 03, 2012 10:44 AM
> To: Rushforth, Peter; liam <at> w3.org; John Cowan
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> I still find this a tantalizing discussion.
> My question is this:
> Suppose we identify a really useful set of attributes for 
> "doing X" and want to include it in the xml namespace.  ( 
> note: for MicroXML thats the ONLY namespace ???) ...
> And suppose we really believe this is useful stuff.
> 
> Question: How sure are we that we have it right ?  Once 
> things get baked
> in they are pretty baked.   I believe a lot of XMLish things failed
> because the were not quite baked before being pulled out of the oven.
> Even today I am not quite convinced of the validity of a URL vs a URI.
> That is, what *is* the guarantee that a URL actually can be 
> indirected to a resource, and that resource  is what we think it is ?
> Of course that hasn't stopped HTML href's ... they sometimes 
> work ok :)
> 
> So if we propose adding something useful to a new standard 
> ... how sure are we its the right thing ?  I can accept that 
> its "optional" but if it's not well defined and not quite 
> right then that is worse than
> nothing not better.   I am not convinced, even looking over the
> shoulders of giants, that the link problem has been solved properly.
> 
> 
> 
> ----------------------------------------
> David A. Lee
> dlee <at> calldei.com
> http://www.xmlsh.org
> 
> > -----Original Message-----
> > From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> > Sent: Tuesday, July 03, 2012 11:00 AM
> > To: liam <at> w3.org; John Cowan
> > Cc: David Carlisle; xml-dev <at> lists.xml.org
> > Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the
> basic
> > principles of MicroXML"
> > 
> > From the abstract:
> > 
> > "It is a goal to use the power of XML to create a structure that can
> describe the
> > simple unidirectional hyperlinks of today's HTML as well as more
> sophisticated
> > multi-ended, typed, self-describing links."
> > 
> > This seems to have two contradictory goals, really.  Simplicity, yet
> complexity.
> > 
> > I don't know, but what might The Rule of Least Power [1] 
> say about the
> issue?
> > I would think it would be something like enabling XML with the most
> power by
> > limiting the complexity of the approach, rather than using the full
> power of
> > XML to "solve" the problem.
> > 
> > Peter
> > 
> > [1] http://www.w3.org/2001/tag/doc/leastPower.html
> > 
> > > -----Original Message-----
> > > From: Liam R E Quin [mailto:liam <at> w3.org]
> > > Sent: July 3, 2012 02:04
> > > To: John Cowan
> > > Cc: David Carlisle; xml-dev <at> lists.xml.org
> > > Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the 
> > > basic principles of MicroXML"
> > >
> > > On Tue, 2012-07-03 at 01:18 -0400, John Cowan wrote:
> > > > Liam R E Quin scripsit:
> > > >
> > > > > The right thing would have been to have taken the 
> architectural 
> > > > > forms idea from HyTime and XMLified it, solving the 
> additional 
> > > > > problem of "link discovery". That's with 20-20 hindsight.
> > > >
> > > > The original version of XLink *was* AF-based.  See
> > > > http://www.w3.org/TR/WD-xml-link-970731 .
> > >
> > > Yes, kinda (not using PIs) but in a very SGML/DTD way, not 
> > > surprisingly given when the work was being done (I was 
> actually on 
> > > the WG for a while). Thanks for the reminder, I had 
> indeed forgotten 
> > > that stage.
> > >
> > > Liam
> > >
> > >
> > > --
> > > Liam Quin - XML Activity Lead, W3C,
> > > http://www.w3.org/People/Quin/ Pictures from old books:
> > > http://fromoldbooks.org/
> > > Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> > >
> > >
> > > ______________________________________________________________
> > > _________
> > >
> > > XML-DEV is a publicly archived, unmoderated list hosted 
> by OASIS to 
> > > support XML implementation and development. To minimize 
> spam in the 
> > > archives, you must subscribe before posting.
> > >
> > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > > Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> > > subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> > > http://lists.xml.org/archives/xml-dev/
> > > List Guidelines: 
> http://www.oasis-open.org/maillists/guidelines.php
> > >
> > >
> > ________________________________________________________________
> > _______
> > 
> > XML-DEV is a publicly archived, unmoderated list hosted by OASIS to 
> > support XML implementation and development. To minimize spam in the 
> > archives, you must subscribe before posting.
> > 
> > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> > subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> > http://lists.xml.org/archives/xml-dev/
> > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> > 
> 
> 
> 
> ______________________________________________________________
> _________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by 
> OASIS to support XML implementation and development. To 
> minimize spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 3 Jul 2012 18:32
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

What kind of links are in HTML?

Earlier I gave you examples of a different vocabulary with links to
stimulate this thought.  It's important to understand how links are
implemented in different systems because XML is used Off The Web and On
The Web and you need to know if that is important.  OTW, what you
propose is a non-starter.

It isn't disrespect for HTML.  Do remember that lots of systems
implement href like links before HTML.  The experience is consequential
and deep.  See Dexter.

len

-----Original Message-----
From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca] 
Sent: Tuesday, July 03, 2012 11:28 AM
To: Len Bullard
Cc: David Carlisle; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

HTML has had links implemented for more than a couple of decades, we
should
respect that experience.

Peter 

> -----Original Message-----
> From: Len Bullard [mailto:Len.Bullard <at> ses-i.com] 
> Sent: July 3, 2012 12:11
> To: Rushforth, Peter
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> If you can find a copy of deRose and Durand's book on Hytime, 
> that's a good start.  
> 
> Be ready to answer questions that seem quite easy on the 
> surface and then turn out to be nasty when specified.  What 
> is the difference between a simple link, a multi-link, and a 
> simple link to an entity containing a lot of simple links 
> (eg, a catalog)?  Will what you propose scale (there is a 
> reason XML separated DTDs from the instance and SGML didn't).
> 
> My advice is don't propose anything you can't or haven't 
> implemented first.  HyTime went into the weeds because 
> thoroughness in specification kept opening more and more 
> rabbit holes that very few of us knew how to traverse.  
> Groves are elegant but obtuse.  The DOM works but so do 
> transforms.  XSL-FOs could be implemented but CSS is a 
> helluva lot easier to teach and build.
> 
> alice
> 
> -----Original Message-----
> From: David Lee [mailto:dlee <at> calldei.com]
> Sent: Tuesday, July 03, 2012 10:44 AM
> To: Rushforth, Peter; liam <at> w3.org; John Cowan
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> I still find this a tantalizing discussion.
> My question is this:
> Suppose we identify a really useful set of attributes for 
> "doing X" and want to include it in the xml namespace.  ( 
> note: for MicroXML thats the ONLY namespace ???) ...
> And suppose we really believe this is useful stuff.
> 
> Question: How sure are we that we have it right ?  Once 
> things get baked
> in they are pretty baked.   I believe a lot of XMLish things failed
> because the were not quite baked before being pulled out of the oven.
> Even today I am not quite convinced of the validity of a URL vs a URI.
> That is, what *is* the guarantee that a URL actually can be 
> indirected to a resource, and that resource  is what we think it is ?
> Of course that hasn't stopped HTML href's ... they sometimes 
> work ok :)
> 
> So if we propose adding something useful to a new standard 
> ... how sure are we its the right thing ?  I can accept that 
> its "optional" but if it's not well defined and not quite 
> right then that is worse than
> nothing not better.   I am not convinced, even looking over the
> shoulders of giants, that the link problem has been solved properly.
> 
> 
> 
> ----------------------------------------
> David A. Lee
> dlee <at> calldei.com
> http://www.xmlsh.org
> 
> > -----Original Message-----
> > From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> > Sent: Tuesday, July 03, 2012 11:00 AM
> > To: liam <at> w3.org; John Cowan
> > Cc: David Carlisle; xml-dev <at> lists.xml.org
> > Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the
> basic
> > principles of MicroXML"
> > 
> > From the abstract:
> > 
> > "It is a goal to use the power of XML to create a structure that can
> describe the
> > simple unidirectional hyperlinks of today's HTML as well as more
> sophisticated
> > multi-ended, typed, self-describing links."
> > 
> > This seems to have two contradictory goals, really.  Simplicity, yet
> complexity.
> > 
> > I don't know, but what might The Rule of Least Power [1] 
> say about the
> issue?
> > I would think it would be something like enabling XML with the most
> power by
> > limiting the complexity of the approach, rather than using the full
> power of
> > XML to "solve" the problem.
> > 
> > Peter
> > 
> > [1] http://www.w3.org/2001/tag/doc/leastPower.html
> > 
> > > -----Original Message-----
> > > From: Liam R E Quin [mailto:liam <at> w3.org]
> > > Sent: July 3, 2012 02:04
> > > To: John Cowan
> > > Cc: David Carlisle; xml-dev <at> lists.xml.org
> > > Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the 
> > > basic principles of MicroXML"
> > >
> > > On Tue, 2012-07-03 at 01:18 -0400, John Cowan wrote:
> > > > Liam R E Quin scripsit:
> > > >
> > > > > The right thing would have been to have taken the 
> architectural 
> > > > > forms idea from HyTime and XMLified it, solving the 
> additional 
> > > > > problem of "link discovery". That's with 20-20 hindsight.
> > > >
> > > > The original version of XLink *was* AF-based.  See
> > > > http://www.w3.org/TR/WD-xml-link-970731 .
> > >
> > > Yes, kinda (not using PIs) but in a very SGML/DTD way, not 
> > > surprisingly given when the work was being done (I was 
> actually on 
> > > the WG for a while). Thanks for the reminder, I had 
> indeed forgotten 
> > > that stage.
> > >
> > > Liam
> > >
> > >
> > > --
> > > Liam Quin - XML Activity Lead, W3C,
> > > http://www.w3.org/People/Quin/ Pictures from old books:
> > > http://fromoldbooks.org/
> > > Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> > >
> > >
> > > ______________________________________________________________
> > > _________
> > >
> > > XML-DEV is a publicly archived, unmoderated list hosted 
> by OASIS to 
> > > support XML implementation and development. To minimize 
> spam in the 
> > > archives, you must subscribe before posting.
> > >
> > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > > Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> > > subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> > > http://lists.xml.org/archives/xml-dev/
> > > List Guidelines: 
> http://www.oasis-open.org/maillists/guidelines.php
> > >
> > >
> > ________________________________________________________________
> > _______
> > 
> > XML-DEV is a publicly archived, unmoderated list hosted by OASIS to 
> > support XML implementation and development. To minimize spam in the 
> > archives, you must subscribe before posting.
> > 
> > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> > subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> > http://lists.xml.org/archives/xml-dev/
> > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> > 
> 
> 
> 
> ______________________________________________________________
> _________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by 
> OASIS to support XML implementation and development. To 
> minimize spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 3 Jul 2012 19:47
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Tue, 2012-07-03 at 11:32 -0500, Len Bullard wrote:

> It isn't disrespect for HTML.  Do remember that lots of systems
> implement href like links before HTML.  The experience is consequential
> and deep.  See Dexter.

Nice to see a reference to the Dexter model.

There was a lot of good in HyTime but you are right, it was too hard and
the simpler new upstart WWW won out. But the desire for, and usefulness
of, multi-way links and time-based links did not vanish. People use
complex JavaScript libraries on the Web because the HTML model is too
simple and not easily extensible.

For me our biggest mistake in not making an XML version of HyTime
architectural forms was that we don't have a way to tie an XML
vocabulary to a canonical indexable form, e.g. for search engines to
produce plausible snippets in result listings - without that, putting
XML documents on the Web is an SEO disaster. If more people were doing
it, there might be traction in a way to link a search-specific XSLT
transform to a document. It's not clear to me the indexers would want to
have to run something fairly resource-intensive on each document, though
- Google does do some JavaScript now I think, so hard to tell.

For me, if you want XML to become popular on the Web, you need it to be
indexed, and probably you'd want to be able also to run JavaScript or
something like Mike Kay's client-based XSLT DOM event scripting, so
would want something like xml:script. So there's a whole bunch of things
needed, and all in an environment that rejected XHTML 2, an environment
hostile to XML in the first place.

I don't think it's a non-starter, but I also don't think changing the
syntax of "href" is a "killer app" that would drive people to use XML.

Best,

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
http://www.holoweb.net/~liam/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 19:55
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> For me, if you want XML to become popular on the Web, you 
> need it to be indexed, and probably you'd want to be able 
> also to run JavaScript or something like Mike Kay's 
> client-based XSLT DOM event scripting, so would want 
> something like xml:script. So there's a whole bunch of things 
> needed, 

Yes, we do want XML to be popular on the web.  To index it, you need
to crawl it, and to crawl it you need to have links that can be recognized.

Once you've got links, you need shared semantics so that crawlers can
allow you to search by the recognized models they've found.

And, yes, we want to run Michael's XSLT over the data we can load
in via the script or link element.  Javascript is already in the browser.
XSLT 2 piggybacks on that.  That is HATEOAS.

And there are full XML parsers deployed in browsers, right?  

What am I missing?

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 20:36
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"


>  That is HATEOAS.

Sorry, that is code-on-demand, and either js or XSLT can implement HATEOAS now,
especially the XML stuff with XSLT, because it is easy.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 3 Jul 2012 21:16
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

HATEOAS/REST is resilience over efficiency, aka, long term over short
term design to achieve stability or, why scale matters.  Let the client
look at the document and decide instead of the server dishing a header.

On the other hand, sometimes it is worth throwing all the pieces in the
air and breaking it to achieve innovation through original perspective.
That's what I do if I get stuck in a musical composition that starts to
bore me or goes to gray goo.  That is the joy of anonymity and
independence:  being one's own client means never having to serve up
"I'm sorry: 404".

len

-----Original Message-----
From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca] 
Sent: Tuesday, July 03, 2012 1:37 PM
To: liam <at> w3.org; Len Bullard
Cc: David Carlisle; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

>  That is HATEOAS.

Sorry, that is code-on-demand, and either js or XSLT can implement
HATEOAS now,
especially the XML stuff with XSLT, because it is easy.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 21:31
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> 
> HATEOAS/REST is resilience over efficiency, aka, long term 
> over short term design to achieve stability or, why scale 
> matters.  

That is true.

> Let the client look at the document and decide 
> instead of the server dishing a header.

The client sometimes needs help from its user and from the server, apart and aside from
headers, to determine what the next state should be.  Hence the hypermedia affordances.

> 
> On the other hand, sometimes it is worth throwing all the 
> pieces in the air and breaking it to achieve innovation 
> through original perspective.

Don't do that!  It's just a flip of a bit that needs doing here.  If we can
we agree on that, we can proceed to discuss next steps.  But I think
step one is to review how to achieve RESTful XML at Web scale.

> That's what I do if I get stuck in a musical composition that 
> starts to bore me or goes to gray goo.  That is the joy of 
> anonymity and
> independence:  being one's own client means never having to 
> serve up "I'm sorry: 404".

Beautiful!  But here I am showing how stupid I am in public.  Hopefully,
Roy's right, and I've not misunderstood him.  
I think both are true, but hey, I've been wrong before!! :-)

Peter

> 
> len
> 
> -----Original Message-----
> From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> Sent: Tuesday, July 03, 2012 1:37 PM
> To: liam <at> w3.org; Len Bullard
> Cc: David Carlisle; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> 
> >  That is HATEOAS.
> 
> Sorry, that is code-on-demand, and either js or XSLT can implement
> HATEOAS now,
> especially the XML stuff with XSLT, because it is easy.
> 
> Peter
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 3 Jul 2012 22:25
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Have you read this?

http://xml.coverpages.org/voorenArchFormTAG.html

It is quite old and used DTDs.

len 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 3 Jul 2012 22:38
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Or this

http://home.ccil.org/~cowan/XML/afng.html

John Cowan might be able to explain what became of this work.

My point is to note that work on these concepts stretched out over a
decade from when that first article was published (although Hytime
itself had been around a few years by that point) and some of the most
brilliant minds in the markup tribe worked on it.

And without much fanfare, it died.

len

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 4 Jul 2012 02:53

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Len Bullard scripsit:

> http://home.ccil.org/~cowan/XML/afng.html
> 
> John Cowan might be able to explain what became of this work.

I never got it quite right, and I never had the energy or motivation
to pursue a slightly-wrong implementation.  Eventually it fell off my
open-source/open-standard bucket list.

> My point is to note that work on these concepts stretched out over a
> decade from when that first article was published (although Hytime
> itself had been around a few years by that point) and some of the most
> brilliant minds in the markup tribe worked on it.
> 
> And without much fanfare, it died.

The best may be the enemy of the good, but the good often returns
the favor.

-- 
But the next day there came no dawn,            John Cowan
and the Grey Company passed on into the         cowan <at> ccil.org
darkness of the Storm of Mordor and were        http://www.ccil.org/~cowan
lost to mortal sight; but the Dead
followed them.          --"The Passing of the Grey Company"

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 5 Jul 2012 15:24
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Thanks John.   It doesn't explain why these ideas died with a whimper
other than there was no clamor for it.

For Peter, I think the challenge is to pose the problem(s) that will be
solved by adding linking semantics to XML that aren't solved otherwise.
Given the near obsession with HATEOAS of late, he might do well to start
with the state-diagrams where uncertainty is flattened away by the
application designer so the need for an n-way link and external links
becomes like supersymmetry, a solution to a problem of the theory but
nothing practical. ;)

I'm off to accompany Jerry Garcia into Mordor to see if hobbits are
really aliens with hairy feet.

len

-----Original Message-----
From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
Sent: Tuesday, July 03, 2012 7:53 PM
To: Len Bullard
Cc: Rushforth, Peter; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

Len Bullard scripsit:

> http://home.ccil.org/~cowan/XML/afng.html
> 
> John Cowan might be able to explain what became of this work.

I never got it quite right, and I never had the energy or motivation
to pursue a slightly-wrong implementation.  Eventually it fell off my
open-source/open-standard bucket list.

> My point is to note that work on these concepts stretched out over a
> decade from when that first article was published (although Hytime
> itself had been around a few years by that point) and some of the most
> brilliant minds in the markup tribe worked on it.
> 
> And without much fanfare, it died.

The best may be the enemy of the good, but the good often returns
the favor.

-- 
But the next day there came no dawn,            John Cowan
and the Grey Company passed on into the         cowan <at> ccil.org
darkness of the Storm of Mordor and were
http://www.ccil.org/~cowan
lost to mortal sight; but the Dead
followed them.          --"The Passing of the Grey Company"

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 5 Jul 2012 15:28
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Thank you, Sam.

> -----Original Message-----
> From: Len Bullard [mailto:Len.Bullard <at> ses-i.com] 
> Sent: July 5, 2012 09:24
> To: John Cowan
> Cc: Rushforth, Peter; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> Thanks John.   It doesn't explain why these ideas died with a whimper
> other than there was no clamor for it.
> 
> For Peter, I think the challenge is to pose the problem(s) 
> that will be solved by adding linking semantics to XML that 
> aren't solved otherwise.
> Given the near obsession with HATEOAS of late, he might do 
> well to start with the state-diagrams where uncertainty is 
> flattened away by the application designer so the need for an 
> n-way link and external links becomes like supersymmetry, a 
> solution to a problem of the theory but nothing practical. ;)
> 
> I'm off to accompany Jerry Garcia into Mordor to see if 
> hobbits are really aliens with hairy feet.
> 
> len
> 
> -----Original Message-----
> From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
> Sent: Tuesday, July 03, 2012 7:53 PM
> To: Len Bullard
> Cc: Rushforth, Peter; xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> Len Bullard scripsit:
> 
> > http://home.ccil.org/~cowan/XML/afng.html
> > 
> > John Cowan might be able to explain what became of this work.
> 
> I never got it quite right, and I never had the energy or 
> motivation to pursue a slightly-wrong implementation.  
> Eventually it fell off my open-source/open-standard bucket list.
> 
> > My point is to note that work on these concepts stretched 
> out over a 
> > decade from when that first article was published (although Hytime 
> > itself had been around a few years by that point) and some 
> of the most 
> > brilliant minds in the markup tribe worked on it.
> > 
> > And without much fanfare, it died.
> 
> The best may be the enemy of the good, but the good often 
> returns the favor.
> 
> -- 
> But the next day there came no dawn,            John Cowan
> and the Grey Company passed on into the         cowan <at> ccil.org
> darkness of the Storm of Mordor and were 
> http://www.ccil.org/~cowan lost to mortal sight; but the Dead
> followed them.          --"The Passing of the Grey Company"
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 3 Jul 2012 18:36
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 03/07/2012 17:27, Rushforth, Peter wrote:
> HTML has had links implemented for more than a couple of decades, we
> should respect that experience.

Yes exactly, the experience shows that links don't need to be (and
probably shouldn't be) implemented in the underlying generic markup
(SGML or XML) but can be dealt with effectively by application specific
markup (html href and src attributes).

The one recent attempt to put linking into the generic markup (xlink)
failed because the application specific markup was more convenient and
more appropriate for any application that needed linking.

Somehow you are reading the same history differently, but I'm not sure why?

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 19:18
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Well, I think I may have to start tying my shoes with the left hand 
leading, anyway.

I will think about all you guys have suggested for a while before
answering.

Thanks
Peter 

> -----Original Message-----
> From: David Carlisle [mailto:davidc <at> nag.co.uk] 
> Sent: July 3, 2012 12:36
> To: Rushforth, Peter
> Cc: xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> On 03/07/2012 17:27, Rushforth, Peter wrote:
> > HTML has had links implemented for more than a couple of 
> decades, we 
> > should respect that experience.
> 
> Yes exactly, the experience shows that links don't need to be 
> (and probably shouldn't be) implemented in the underlying 
> generic markup (SGML or XML) but can be dealt with 
> effectively by application specific markup (html href and src 
> attributes).
> 
> The one recent attempt to put linking into the generic markup 
> (xlink) failed because the application specific markup was 
> more convenient and more appropriate for any application that 
> needed linking.
> 
> Somehow you are reading the same history differently, but I'm 
> not sure why?
> 
> David
> 
> 
> ______________________________________________________________
> __________
> The Numerical Algorithms Group Ltd is a company registered in 
> England and Wales with company number 1249803. The registered 
> office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
> 
> This e-mail has been scanned for all viruses by Star. The 
> service is powered by MessageLabs. 
> ______________________________________________________________
> __________
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 3 Jul 2012 19:22
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

That may be where the understanding has to be grown:  the data is in the
markup, they aren't in the XML implementation.  The fact is as said
elsewhere, XML Is Not A Hypermedia Language.  It is barely a language at
all.

MicroXML is less.  Let the What Is Is quibbling begin.

len

-----Original Message-----
From: David Carlisle [mailto:davidc <at> nag.co.uk] 
Sent: Tuesday, July 03, 2012 11:36 AM
To: Rushforth, Peter
Cc: xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

On 03/07/2012 17:27, Rushforth, Peter wrote:
> HTML has had links implemented for more than a couple of decades, we
> should respect that experience.

Yes exactly, the experience shows that links don't need to be (and
probably shouldn't be) implemented in the underlying generic markup
(SGML or XML) but can be dealt with effectively by application specific
markup (html href and src attributes).

The one recent attempt to put linking into the generic markup (xlink)
failed because the application specific markup was more convenient and
more appropriate for any application that needed linking.

Somehow you are reading the same history differently, but I'm not sure
why?

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 4 Jul 2012 01:04

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

David Lee scripsit:

> Suppose we identify a really useful set of attributes for "doing X"
> and want to include it in the xml namespace.  ( note: for MicroXML
> thats the ONLY namespace ???) ...

It depends on which MicroXML you mean.  James Clark's 2010 version
disallowed prefixes other than xml:, so that meant no namespaced
attributes, though namespaced elements were allowed via the xmlns
attribute.

My 2011 version allows prefixes in attributes, so they can be in any
namespace if properly declared.

> That is, what *is* the guarantee that a URL actually can be indirected
> to a resource, and that resource  is what we think it is ?

There is none.  That's what differentiates the Web from all the many
hypertext systems that came before it.

--

-- 
Normally I can handle panic attacks on my own;   John Cowan <cowan <at> ccil.org>
but panic is, at the moment, a way of life.      http://www.ccil.org/~cowan
                --Joseph Zitt

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 1 Jul 2012 02:50
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Sat, 2012-06-30 at 08:13 +0000, Rushforth, Peter wrote:

> 
> [...] I notice that James has not entered this discussion.

I think he's otherwise occupied right now.

> Voting rules: Votes shall be cast in the following order James Clark,
> Michael Kay, Tim Bray, then everyone else.

Then I won't vote, but I'm not sure a "celebrity consensus" would be
very useful or interesting.

In any case it's not going to be a "binding vote" on the W3C XML Working
Group, nor are you likely to get the people you've chosen to make a W3C
Working Group, even if W3C worked that way.

The person you'd actually have to persuade is watching the thread. Some
of the business questions might include...

* Which companies or organizations would pay to join W3C to do the work?

* Who would implement new the spec?

* Who would use it?

* What business problems would be solved?

* What would be the impact on the existing deployed XML base?

* What would be the relationship to the existing W3C XML Core Working
Group?

I'm not saying that those questions are necessarily hard or
unanswerable, but rather that answers would probably be needed.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Co-author, Beginning XML (Wrox, July 2012)

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 2 Jul 2012 15:24
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Liam,

>> [...] I notice that James has not entered this discussion.
> I think he's otherwise occupied right now.

That's too bad.  I hope he makes it back here.

>> Voting rules: Votes shall be cast in the following order James Clark,
>> Michael Kay, Tim Bray, then everyone else.

>Then I won't vote, but I'm not sure a "celebrity consensus" would be
>very useful or interesting.

It's less about "celebrity" voting and more about leaders leading, IMHO.  MicroXML is great leadership,
and I see it as an attempt to reconcile the world of XML with that of the Web.  There seems to be a widely shared
opinion that there is some work to be done on this.

In 2010, James raised the issue of the xml: namespace in MicroXML, and asking the community what they
thought of preserving only that namespace and no others moving forward.

Few answered, some for, some against.  I've made my opinion clear, but it doesn't count for much, as I'm
certain many would point out.  I would like others to have a say as well, without trying to unleash the
villagers with their pitchforks and torches, because we need to try to separate fact from emotion and
historically hurt feelings, because it seems there is a large measure of the latter.

To the extent that MicroXML should be backwards compatible with XML, it needs some stuff from xml: as
discussed by James.  Before we go too far with MicroXML, we should think about hypermedia affordances in
XML 1.0, because as I explained in my previous email, these are an essential support component for the
uniform interface.  

They are ill-designed in XML 1.0, not because they are in a namespace, but because they are 
a) in the wrong namespace and hence are not inherited by all XML documents
b) they are not designed for the Web use case.

b) seems to be a good enough reason to redesign them.  If we do that, we should fix a) too.  If some applications
use the existing and wish to continue, let them do so, the new tools should be backwards compatible.

I submitted a bugzilla bug to propose a solution for this, but it seems to me that James was on this same track
back in 2010, only with MicroXML in mind.  I think it would work for MicroXML too, but my primary goal right
now is to patch XML 1.0, with the secondary goal that if the xml: namespace was used for MicroXML it would
help that effort, I think it will help anything that is based on  XML.

> The person you'd actually have to persuade is watching the thread. 

If it was just a question of one person deciding, I think Fielding might have called up Sir Tim Berners-Lee
years ago.  I can imagine the conversation going something like this:

Fielding (stubbing out his cigar):  Heyo TBL.  We've got a problem with XML.  There are no useful hypermedia
affordances in it.  Fix that, will you?
TBL:  Sure enough, Fielding, old boy.  (firing up emacs).  Let me just add them to the XML namespace....
(saving). Done!
Fielding:  Thanks!
TBL:  Pleasure, old boy.  We still on for our match at the club on Saturday ?
Fielding:  Right you are.  See you then! <click>

> * Which companies or organizations would pay to join W3C to do the work?
> * Who would implement new the spec?
> * Who would use it?
> * What business problems would be solved?
> * What would be the impact on the existing deployed XML base?
> * What would be the relationship to the existing W3C XML Core Working Group?

Fair enough,  and I think it applies to *any* XML vocabulary.  But I think we have to establish what the demand
is first, and to do that we need a clear set of goals.  For MicroXML, John proposed that the original goals of
XML on the web be re-affirmed (in James' blog comments).  I think that's right, but I believe that one of the
problems with XML 1.0 is the lack of support for the web, so this will eventually kill any child if it's not addressed.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 2 Jul 2012 15:46
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> I believe that one of the problems with XML 1.0 is the lack of support for the web, so this will eventually
kill any child if it's not addressed.

XML has 'support for the web' in the form of XHTML, or any other
specific dialect.  There is nothing that needs to be added to XML in
general.  No one feeds their data bearing xml straight to the browser,
it always needs some processing before getting displayed.

The need for a simplified XML didn't come from the web, it came from
fellow developers struggling and getting annoyed with parsing XML
config files, or trying to write out some XML from a set of fields, or
trying to insert some nodes into some XML.

Nothing Peter, nothing.. to do with linking.  :)

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 2 Jul 2012 12:25
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

I'm flattered to be included in the list of the great and the good, but 
I really feel I should decline the honour. I've very often in my career 
been elevated above my level of competence, and the result has always 
been failure. When Tim Berners-Lee first articulated his vision of the 
web, a friend of his father Conway asked me for my opinion, and I said 
it was all wishful thinking, far too ambitious, and would never fly.

And in hindsight I think I was right: the probability of success was 
indeed very low. Perhaps that's true of nearly all the projects that 
have radically changed the world: they all had a very low probability of 
success.

A couple of things do seem clear:

(a) if you want to do something radical, it won't take off in the way 
intended unless the cost/benefit is very favourable and the risk very low

[(a') on the other hand, there's just a chance it may take off in a way 
that wasn't intended, but by definition, you can't plan for that]

(b) the chance of something being successful has very little to do with 
its technical merit; asking software engineers to create a standard that 
will dominate the web in five years time is like asking composers to 
write a song that will win the Eurovision song contest. Inviting the 
best composer won't greatly increase your chance of winning.

(c) one of the reasons new technologies often fail is that the best 
ideas get borrowed and incorporated incrementally into old technologies. 
So if you do something really new and worthwhile, its best features will 
appear next week in CSS and HTML5, and then people will think they don't 
need your new stuff after all.

The world in which most of us are playing (content on the web, XML, 
linking, etc) has two dominating characteristics: it's a technical mess, 
and it's extremely successful. The fact that it's so successful makes it 
very hard to sort out the mess, because if it's not broken then it won't 
be fixed, and people won't accept that it's broken it it appears to work 
(which it does).

On linking, there is a lot to be said for the argument that linking on 
the web only works BECAUSE it is a mess (i.e. it violates all the 
principles that the hyperlinking community previously thought were so 
important.) This seems to suggest that we can only make it better by 
evolution, not by intelligent design. So appointing a group of highly 
intelligent designers might not be the right strategy.

As for Peter's votes, I'll abstain. Whatever I say, I'm more likely to 
be wrong than right.

Michael Kay
Saxonica

On 30/06/2012 09:13, Rushforth, Peter wrote:
> Hi Len and David,
>
> These Socratic dialogues we've had are still on my mind, and I wanted to share a few more thoughts which pull
elements from individual emails throughout this thread and earlier ones too.  I think we're not far from
the finish/start line, actually.  Hopefully it won`t actually end up looking like a circle, but a path ;-). 
I'll try to not stray too far into rhetoric, and I hope you or others listening will correct me if I do.
>
> Before proceeding, I'd like to say that Respect is a lesson I was taught early in my career.  The kind of
respect I learned was this: what people have thought about and achieved in the past, especially in
programming, is something that should not lightly be tossed overboard.  There are always lessons to be
learned from others, by listening and thinking about what is being said.  Recognizing that, sometimes in
order to stay afloat, tossing stuff overboard is essential - MicroXML is a rethink and as such it may be
necessary to unburden ourselves of a few things.  If there was anyone I would follow into new territory of
thinking, it would be James Clark, no disrespect meant to *anyone* on the list.  But, it also may be
necessary to provision the ship for the voyage, and that is specifically the piece of the puzzle I want to
talk about, and with your help, solve.
>
> "In order to obtain a uniform interface, multiple architectural constraints are needed to guide the
behavior of components. REST is defined by four interface constraints: identification of resources;
manipulation of resources through representations; self-descriptive messages; and, hypermedia as
the engine of application state."
>
>> There is a bit of retrofitted history in that description.  The Internet and the web applications as well
as others were functional before the term "representational state transfer" was ever coined and that
notion was already a part of discussions.
> In the light of my respect, I wanted to say that it took me a long time, and a lot of related reading, to fully
understand that sentence.   Fielding's writing is excellent, but dense.  The beauty of that writing style
is that we have to read and think about each sentence and each paragraph, but it is rewarding - and in
thinking about it, we begin to be able to _parse_ and _understand_ it and we're given something new: an
idea.  Furthermore, I would say that my understanding of the Ph.D. thing, is that you must describe and
defend a bona fide _new_ idea in order to pass.  In the case of Fielding, the idea was not the architecture of
the Web, even though it is well described by his dissertation, but the _style_ of that architecture.  Now I
don't know how many visual artists there are among us, but I'm pretty sure there are poets here.  And, I bet
you they would understand the idea of a poetic style [1].  The Web has a style:  Fielding was the first to
identify and describe it.
>
> [1] http://records.viu.ca/~johnstoi/eng366/lectures/poetry.htm
>
> This is not meant to idolize people, just to try to respectfully understand the ideas of others.  The Web
gives us the _tools_ to access the ideas of others almost instantly, if they post them, but does not grant us
access to an understanding of them, which takes time and reflection.   And we're not talking about _old
bones_ here [2].
>
> [2] http://vimeo.com/4176485
>
> So the phrase you used that you said Charles Goldfarb used, "own the parse", also lit the light bulb for me. 
You sometimes hear people use the word "parse" to describe the process of understanding other peoples
sentences.  Ie you have to pick something apart before understanding it.  The MicroXML proposal has a lot in
common with SGML, I think, especially with respect to namespaces [0].
>
> [0] http://www.sgmlsource.com/infaqs.htm#Namespaces
>
> I think James will help figure out a reasonable approach for the Web, and appropriately apply techniques
to help us navigate that.  The key is to have a respectful approach to all that history has taught us. 
Otherwise we, the XML community, will end up like Wiley Coyote, forever doomed to repeat our mistakes
because we can't learn from what has been achieved.
>
> Back to the Web.  The REST architectural style focuses what is necessary to achieve the "Uniform
Interface".  That Uniform Interface is very much like the common electrical receptacle, in my view,
except that what it allows us to access is not electricity, but ideas.  But, those ideas are worth more,
even.  Now here's the thing.  The architectural style of the Web doesn't just allow us to exchange
html-formatted ideas.  It allows us to exchange _copies_ of the raw ideas themselves, expressed as representations.
>
> The representation abstraction is quite important.  We've heretofore exchanged self descriptive
messages that have been labelled text/html, for the most part.  People have been putting their ideas in
html for a couple or more decades.  But html is being stretched, and I too think it will break, as you were
suggesting earlier.  According to REST, it _should_ break into many media types, each identifying the set
of concepts that the application needs.  And the one thing in common of *all* of those mime types _should_ be
hypermedia affordances.
>
> Representation _format_ is more important than you think.  In the REST style, every time you add/change an
element or an attribute to an XML design, you change the semantics of the message.  XML people would say to
that, "Well, duh", I imagine.  Here's something that not everybody knows, however, and I don't know why
that is, except perhaps that it takes a lot of reading to connect all the dots:  for the _Web_, you are
*required* to register a media type to identify the semantics of that configuration. If you change the
configuration of elements and/or attributes, and those changes are not _backwards compatible_, a new
media type should be registered.  That is, if you want to exchange its semantics over the Uniform
Interface.  Here's what Fielding and Jacobs [3] say about semantics:
>
> "In Web architecture, communication between agents consists of exchanging messages with predefined
syntax and semantics: a shared expectation of how each message's control data and payload
(representation data and metadata) will be interpreted by the recipient. ... An Internet media type
[RFC2046] is metadata in the form of a short name (e.g., "text/html") that associates the data with a
specific format specification and preferred interpretation. The association is formally
accomplished through registration of the media type in the IANA media type registry."
>
> [3] http://www.w3.org/2001/tag/doc/mime-respect-20060412
>
> A new mentor told me that the battle here is really about the cost of deployed XML 1.0 code.  I don't see it that
way.  Deployed XML 1.0 code should be supported in the REST way: with respect.  That is, if you can't provide
simple, backwards-compatible hypermedia to the XML 1.0 agent under the guise of application/xml or
whatever the media type, you should bump the media type.  If the client negotiates for the new media type,
then it obviously knows about the new semantics.  If it negotiates for the old media type, it may not know
about the new semantics, but so long as it is not confused by the presence of new semantics in the message, it
is ok to send them.
>
> And Andrew was right, this has been discussed on this list in 2010 by himself, James,  John, and other
members of this community,  and also previously by the SVG WG list.  The issue is not limited to the SVG
community, it is shared by every single vocabulary that inherits XML semantics (XML media types).  The
cost of XML hypermedia?  The time to file the bug, agree on it, add it to the XML namespace "registry" (more
below).  The value of a _Hypermedia Web_ of XML with namespaces? Pretty gosh-darn high, if deployed
browsers already carry full XML parsers.  I think those html browsers might be willing to recognize XML
hypermedia affordances.  Just a guess, really.  The value of a _Hypermedia Web_ of MicroML, with no
namespaces, per Andrew, James and John?  Priceless.
>
> So if, as they suggest [3], a media type conveys the shared understanding of how the message will be
interpreted, or _parsed_, and that shared understanding is conveyed through a registry, we need a
registry for XML stuff.  The XML namespace is already that registry, with a very very high bar to entry. 
Perfect.  It should have hypermedia affordances in it, because those support the Uniform Interface: they
are the prongs of the plug for the Uniform Interface receptacle.  That way, every new media type that
arises, which chooses to, can refer to those public semantics without having to re-invent them, as is
being done now.   Cut and paste of non-namespaced elements is enabled.  MicroXML is probably going to be the
first media type that will need to, if it is to achieve its goals [4].  In my opinion, the hypermedia
affordances requested here [5] are like the gift that a parent gives a child when it goes off on its own in
life's voyage: a blessing.  It's not as though the child could not achieve its goals on its own without the
blessing of the parent, but it is best for both if that blessing is given.  And, it costs only an infinitely
small fraction of its value.
>
> [4] http://www.w3.org/TR/REC-xml/#sec-origin-goals
> [5] https://www.w3.org/Bugs/Public/show_bug.cgi?id=17659
>
> In the Web of XML 1.0 - the REST Web - media types will link to media types all with the same shared
understanding (support for the Uniform Interface), but conveying different ideas - the content.  This is
all possible with existing technology, if we add hypermedia affordances to XML.  In the Next Semantic Web,
the one Andrew, James and John are talking about, we will also need the self-same plugs to plug into the
receptacles of the REST web.  It may just need a new media type (and suffix?) of its own, because it should be
able to pull in semantics from XML, HTML, SVG and ((m)any) others.  Why?  Because (the investment in) all of
that Web Infrastructure out there must be respected by whatever comes next - *that* is backwards-compatibility.
>
>> If any browser implementers _are_ considering implementing microxml let them speak up.
> That seems reasonable.
>
> So, David, here's my proposal:  Let's have a vote.  I know this is a little irregular, but bear with me, I think
it can clarify things.  I notice that James has not entered this discussion.  In fact, I haven't seen him
around here since 2010.  Maybe he's waiting for consensus to emerge, or maybe he's just given up.  I hope not,
because the future is wide open.
>
> Voting rules: Votes shall be cast in the following order James Clark, Michael Kay, Tim Bray, then everyone
else.  If votes are not cast in this order, I do not promise not to raise the xml: hypermedia affordances
issue in another thread.  If they are cast in that order, I will respect the result of the vote.  If nobody has
voted by Sunday July 1st 2012 at 9 pm Ottawa time, I will take it as a sign that rough consensus is impossible
and drop the XML namespace issue.
>
> There are two proposals here.  You should +1 / -1 both to indicate your support of the respective items.  You
can abstain from either vote.
>
> Vote #1:  Andrew Welch, James Clark and John Cowan should lead the development of a W3C MicroXML
Recommendation, and be named editors, order to be determined by themselves.
>
> Vote #2: Bugzilla bug #17659 [5] should be accepted by the XML Working Group for due consideration, in
light of discussion within and between the XML and Web communities.
>
> Please vote (*in order*).
>
> Warm Regards,
> Peter
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Graham Hannington | 3 Jul 2012 05:11
Picon
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> A couple of things do seem clear:

Not p*ssing in anyone's pocket: I have come to value subscription to this 
list for more than the technical XML dialogue. Much of it is vapor trails 
above my head, but it is educational nonetheless. And the self-effacement 
is refreshing. Sincere thanks.

Graham Hannington
Perth, Western Australia

Fundi Software Pty Ltd  2012  ABN 89 009 120 290

This message has been scanned for malware by Websense. www.websense.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 24 Jun 2012 20:29
Gravatar

"Introducing MicroXML, Part 2: Process MicroXML with MicroLark"

The recent bump to the discussion reminded me to mention the second article, focusing on exploration of John Cowan's implementation work.

http://www.ibm.com/developerworks/opensource/library/x-microxml2/index.html

--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
John Cowan | 24 Jun 2012 20:39

Re: "Introducing MicroXML, Part 2: Process MicroXML with MicroLark"

Uche Ogbuji scripsit:

> The recent bump to the discussion reminded me to mention the second
> article, focusing on exploration of John Cowan's implementation work.
> 
> http://www.ibm.com/developerworks/opensource/library/x-microxml2/index.html

I hope there will be a third article about your Python implementation.

--

-- 
Dream projects long deferred             John Cowan <cowan <at> ccil.org>
usually bite the wax tadpole.            http://www.ccil.org/~cowan
        --James Lileks

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 3 Jul 2012 10:35
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 1 July 2012 16:01, David Lee <dlee <at> calldei.com> wrote:
> John Cowan Sez ...
>> This all seems to me nothing more than a vast to-do about whether
>> a general-purpose href attribute ought to be xlink:href or xml:ref.
>> I cannot take the question seriously.  "Parturient montes, nascetur
>> ridiculus mus."
>
> My take is a little more serious.  If an attribute is part of the xml 
> namespace then there is a presumption that all consumers of "XML" 
> understand and apply the semantics.  I would think it would be a 
> "must do".  But putting an attribute in another namespace makes it 
> a "do if you want to support that thingy".   I think this is a big 
> difference.

I would take the completely opposite view.  Xlink and friends are there for vocabulary designers to use, but
they imply no requirement for support by a basic XML parser and a vocabulary designer is at liberty to
define their own set of attributes that do the same thing or something slightly different.

I see no reason why some set of attributes in the XML namespace should not be available to vocabulary
designers on the same basis.

Then, in much the same way that xmlns in MicroXML is an application level concept, xml:href could also be a
purely _optional_to_understand_ application level concept.

Thus it seems to me that the XML namespace should be as big as it needs to be but no bigger.  But really it doesn't
matter whether it includes the kitchen sink because only applications that are interested in those
features (on a pick and mix basis) will be burdened by them.

The benefit of course is that documents won't have to include
xmlns:xlink="http://www.w3.org/1999/xlink" and developers don't have to deal with understanding
namespaces, which is one of the main motivations of MicroXML.  If we require the use of xmlns:xlink then all
we've done is move namespaces up to the application level, which may make us XML fanatics more satisfied
with our architecture, but just foists the problem directly onto developers and does nothing to
alleviate the general confusion they have about using namespaces.

(P.S. Sorry for my late entry into this debate.  I was waiting for Michael Kay's input. But since he's
abstained I now have to work things out for myself!)

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 3 Jul 2012 15:25
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Pete,

Exactly!

Cheers,
Peter 

> -----Original Message-----
> From: Pete Cordell [mailto:petexmldev <at> codalogic.com] 
> Sent: July 3, 2012 04:36
> To: xml-dev <at> lists.xml.org
> Cc: David Lee
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> On 1 July 2012 16:01, David Lee <dlee <at> calldei.com> wrote:
> > John Cowan Sez ...
> >> This all seems to me nothing more than a vast to-do about 
> whether a 
> >> general-purpose href attribute ought to be xlink:href or xml:ref.
> >> I cannot take the question seriously.  "Parturient montes, 
> nascetur 
> >> ridiculus mus."
> >
> > My take is a little more serious.  If an attribute is part 
> of the xml 
> > namespace then there is a presumption that all consumers of "XML"
> > understand and apply the semantics.  I would think it would 
> be a "must 
> > do".  But putting an attribute in another namespace makes 
> it a "do if 
> > you want to support that thingy".   I think this is a big 
> difference.
> 
> I would take the completely opposite view.  Xlink and friends 
> are there for vocabulary designers to use, but they imply no 
> requirement for support by a basic XML parser and a 
> vocabulary designer is at liberty to define their own set of 
> attributes that do the same thing or something slightly different.
> 
> I see no reason why some set of attributes in the XML 
> namespace should not be available to vocabulary designers on 
> the same basis.
> 
> Then, in much the same way that xmlns in MicroXML is an 
> application level concept, xml:href could also be a purely 
> _optional_to_understand_ application level concept.
> 
> Thus it seems to me that the XML namespace should be as big 
> as it needs to be but no bigger.  But really it doesn't 
> matter whether it includes the kitchen sink because only 
> applications that are interested in those features (on a pick 
> and mix basis) will be burdened by them.
> 
> The benefit of course is that documents won't have to include 
> xmlns:xlink="http://www.w3.org/1999/xlink" and developers 
> don't have to deal with understanding namespaces, which is 
> one of the main motivations of MicroXML.  If we require the 
> use of xmlns:xlink then all we've done is move namespaces up 
> to the application level, which may make us XML fanatics more 
> satisfied with our architecture, but just foists the problem 
> directly onto developers and does nothing to alleviate the 
> general confusion they have about using namespaces.
> 
> (P.S. Sorry for my late entry into this debate.  I was 
> waiting for Michael Kay's input. But since he's abstained I 
> now have to work things out for myself!)
> 
> Pete Cordell
> Codalogic Ltd
> Interface XML to C++ the easy way using XML C++ data binding 
> to convert XSD schemas to C++ classes.
> Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com for 
> more info
> 
> 
> ______________________________________________________________
> _________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by 
> OASIS to support XML implementation and development. To 
> minimize spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org List archive: 
> http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 4 Jul 2012 11:31
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 3 July 2012 16:43, David Lee <dlee <at> calldei.com> wrote:
> I still find this a tantalizing discussion.
> My question is this:
> Suppose we identify a really useful set of attributes for "doing X" 
> and want to include it in the xml namespace.  ( note: for MicroXML 
> thats the ONLY namespace ???) ...
> And suppose we really believe this is useful stuff.
>
> Question: How sure are we that we have it right ?  Once things get 
> baked in they are pretty baked.   I believe a lot of XMLish things 
> failed because the were not quite baked before being pulled out of 
> the oven.
> Even today I am not quite convinced of the validity of a URL vs a URI.
> That is, what *is* the guarantee that a URL actually can be indirected 
> to a resource, and that resource  is what we think it is ?
> Of course that hasn't stopped HTML href's ... they sometimes work ok :)
>
> So if we propose adding something useful to a new standard ... how 
> sure are we its the right thing ?  I can accept that its "optional" 
> but if it's not well defined and not quite right then that is worse 
> than nothing not better.   I am not convinced, even looking over 
> the shoulders of giants, that the link problem has been solved properly.

I'm no expert in this either, but I suggest just doing xml:href.  If we're primarily interested in discovery
then that gives us the 'where'.  Search engines are rarely interested in the 'why' and they can find out the
'what' when they get there.  (Completing the quintet, 'when' is probably irrelevant and 'how' is probably HTTP!)

It seems to me that the lesson from initiatives like XLink is that going any further than that is a voyage into
semantics and we know that's a hard problem.  If a reader really cares about the 'why' then they have the
option to fully interpret the relevant XML vocabulary.

I do feel that there might be a need for a MIME-like Content-Disposition that says whether the target is
intended to be a separate entity or inline, but we can add that when people shout for it.  (Although I would
probably implement this by doing something like xml:ihref for an "inline href" rather than
"xml:href='x' xml:disposition='inline'".)

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 4 Jul 2012 12:12
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 4 July 2012 10:31, Pete Cordell <petexmldev <at> codalogic.com> wrote:
> I do feel that there might be a need for a MIME-like Content-Disposition
> that says whether the target is intended to be a separate entity or 
> inline, but we can add that when people shout for it.  (Although I would
> probably implement this by doing something like xml:ihref for an 
> "inline href" rather than "xml:href='x' xml:disposition='inline'".)

Actually, rather than xml:ihref, it should be called xml:src to align with HTML practice.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 12:23
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Pete,

We should do the core set as proposed, because a) they *are* well known (except for one which needs
discussion) and b) it limits the growth of the xml namespace because combinations can be defined by
authors and put in their own elements.

Cheers,
Peter
________________________________________
From: Pete Cordell [petexmldev <at> codalogic.com]
Sent: July 4, 2012 6:12 AM
To: xml-dev <at> lists.xml.org
Cc: David Lee
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 4 July 2012 10:31, Pete Cordell <petexmldev <at> codalogic.com> wrote:
> I do feel that there might be a need for a MIME-like Content-Disposition
> that says whether the target is intended to be a separate entity or
> inline, but we can add that when people shout for it.  (Although I would
> probably implement this by doing something like xml:ihref for an
> "inline href" rather than "xml:href='x' xml:disposition='inline'".)

Actually, rather than xml:ihref, it should be called xml:src to align with HTML practice.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 12:40
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

And c) too few is worse than too many
________________________________________
From: Rushforth, Peter [Peter.Rushforth <at> NRCan-RNCan.gc.ca]
Sent: July 4, 2012 6:23 AM
To: Pete Cordell; xml-dev <at> lists.xml.org
Cc: David Lee
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Pete,

We should do the core set as proposed, because a) they *are* well known (except for one which needs
discussion) and b) it limits the growth of the xml namespace because combinations can be defined by
authors and put in their own elements.

Cheers,
Peter
________________________________________
From: Pete Cordell [petexmldev <at> codalogic.com]
Sent: July 4, 2012 6:12 AM
To: xml-dev <at> lists.xml.org
Cc: David Lee
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 4 July 2012 10:31, Pete Cordell <petexmldev <at> codalogic.com> wrote:
> I do feel that there might be a need for a MIME-like Content-Disposition
> that says whether the target is intended to be a separate entity or
> inline, but we can add that when people shout for it.  (Although I would
> probably implement this by doing something like xml:ihref for an
> "inline href" rather than "xml:href='x' xml:disposition='inline'".)

Actually, rather than xml:ihref, it should be called xml:src to align with HTML practice.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 4 Jul 2012 12:44
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 4 July 2012 11:23, Rushforth, Peter <Peter.Rushforth <at> nrcan-rncan.gc.ca> wrote:
> We should do the core set as proposed, because a) they *are* well known 
> (except for one which needs discussion) and b) it limits the growth of 
> the xml namespace because combinations can be defined by authors and 
> put in their own elements.

I would disagree.  From what I've read here XLink has to all intents and purposes failed.  A few committees may
have used it because they have no alternative due to political reasons, but other than that the take up
seems minimal.

The real lesson of the web is that simplicity beats comprehensiveness every time.  If it's simple, people
will use it.  If it's too simple people will work around its limitations and enhance it.  Therefore
(re-)start with the minimum and build up from experience.

My vote is for xml:href and xml:src and your done!

> ________________________________________
> From: Pete Cordell [petexmldev <at> codalogic.com]
> Sent: July 4, 2012 6:12 AM
> To: xml-dev <at> lists.xml.org
> Cc: David Lee
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"
>
> On 4 July 2012 10:31, Pete Cordell <petexmldev <at> codalogic.com> wrote:
>> I do feel that there might be a need for a MIME-like Content-Disposition
>> that says whether the target is intended to be a separate entity or
>> inline, but we can add that when people shout for it.  (Although I would
>> probably implement this by doing something like xml:ihref for an
>> "inline href" rather than "xml:href='x' xml:disposition='inline'".)
>
> Actually, rather than xml:ihref, it should be called xml:src to align
> with HTML practice.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 14:01
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"


> -----Original Message-----
> From: Pete Cordell [mailto:petexmldev <at> codalogic.com] 
> Sent: July 4, 2012 06:45
> To: xml-dev <at> lists.xml.org
> Cc: Rushforth, Peter; dlee <at> calldei.com
> Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore 
> the basic principles of MicroXML"
> 
> On 4 July 2012 11:23, Rushforth, Peter 
> <Peter.Rushforth <at> nrcan-rncan.gc.ca> wrote:
> > We should do the core set as proposed, because a) they *are* well 
> > known (except for one which needs discussion) and b) it limits the 
> > growth of the xml namespace because combinations can be defined by 
> > authors and put in their own elements.
> 
> I would disagree.  From what I've read here XLink has to all 
> intents and purposes failed.  A few committees may have used 
> it because they have no alternative due to political reasons, 
> but other than that the take up seems minimal.
> 
> The real lesson of the web is that simplicity beats 
> comprehensiveness every time.  If it's simple, people will 
> use it.  If it's too simple people will work around its 
> limitations and enhance it.  Therefore (re-)start with the 
> minimum and build up from experience.
> 
> My vote is for xml:href and xml:src and your done!

Thanks Pete.  I like the vote, but I'm asking for a bit more.

I agree with the keep it simple approach, 100%, hence my repeated reference
to the Rule of Least Power.  But, as I said in my
last email, the simplest thing that could possibly work, would be to copy
the hypermedia affordances that have stood the test of time and gained
adoption on the Web, through html, even though in html, some of them are not well
used, except in forms.  In xml, that will be a different story, I think.

If you put the hypermedia affordances in separate namespaces, that does not solve the problem, only
compounds it, because then vocabularies do not inherit what they may (or may not)
need, and hence have to re-invent them in a namespace.  The problem still 
exists.

Cheers,
Peter 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 4 Jul 2012 14:26
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

>> My vote is for xml:href and xml:src and your done!
>
> Thanks Pete.  I like the vote, but I'm asking for a bit more.

I thought this issue had been resolved - there is no point adding links to xml.

What do you expect the xml parser to do with them?

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 14:39
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> >> My vote is for xml:href and xml:src and your done!
> >
> > Thanks Pete.  I like the vote, but I'm asking for a bit more.
> 
> I thought this issue had been resolved - there is no point 
> adding links to xml.
> 
> What do you expect the xml parser to do with them?

I'm guessing that in xml parsers today they would not do much.  What does
an xml parser do with xml:base value?

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 4 Jul 2012 15:00
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 04/07/2012 13:39, Rushforth, Peter wrote:
> I'm guessing that in xml parsers today they would not do much.  What does
> an xml parser do with xml:base value?

In parsers that support xml:base they use it to resolve any relative URI 
specified in SYSTEM entity references. If they also support xinclude 
they presumably use it to resolve references in that case.

Given that a large part of xml _on the web_ is xhtml and that uses href 
rather than xml:href, I still don't think you've provided any use case 
where an application that understood this new xml:href proposal couldn't 
just as simply understand an href attribute.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 15:30
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> 
> On 04/07/2012 13:39, Rushforth, Peter wrote:
> > I'm guessing that in xml parsers today they would not do 
> much.  What 
> > does an xml parser do with xml:base value?
> 
> In parsers that support xml:base they use it to resolve any 
> relative URI specified in SYSTEM entity references. If they 
> also support xinclude they presumably use it to resolve 
> references in that case.

So, I guess those parsers could also resolve xml:href and xml:src references,
and leave the interpretation of the link typing to be worked out
by the application.  

> Given that a large part of xml _on the web_ is xhtml and that 
> uses href rather than xml:href,

I gather you don't often see application/xhtml+xml in the wild?

> I still don't think you've 
> provided any use case where an application that understood 
> this new xml:href proposal couldn't just as simply understand 
> an href attribute.

Of course it could, but libraries can be re-used, so if the affordances
are built into one namespace (xml:), then a library can be written
to provide services to applications across many use cases.

Earlier you mentioned:

> Note even in (x)html href doesn't -always- denote a link 
> (although that was proposed for xhtml2) Html href only 
> implies a link on certain pre-specified elements. So the fact 
> that href in unknown xml does not imply any linking behaviour 
> is entirely consistent.

So, in xml:, href is a link.  Then a library can work with it.  

Backwards compatibility is very important because of all the content out
there already.  That's why attempts to get html into xml and vice versa 
won't work.  text/html will always rule on Web 1.0.

But, Web 2.0, Web 3.0 etc are a different story.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 4 Jul 2012 17:40
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Wed, 2012-07-04 at 13:30 +0000, Rushforth, Peter wrote:

> So, I guess those parsers could also resolve xml:href and xml:src references,
> and leave the interpretation of the link typing to be worked out
> by the application.

What would be the use of that? The parser _needs_ to resolve (and
follow) URIs in system identifiers, so it _needs_ xml:base.

The majority of XML systems are not connected to a user interface.

[Peter quoting David Carlisle:]
> > Given that a large part of xml _on the web_ is xhtml and that 
> > uses href rather than xml:href,
> 
> I gather you don't often see application/xhtml+xml in the wild?

Not often, because of Internet Explorer prompting users to save the file
instead of displaying the resource, and because that MIME content type
header invokes draconian error behaviour in browsers, whose authors
decided not to attempt recovery.

> > I still don't think you've 
> > provided any use case where an application that understood 
> > this new xml:href proposal couldn't just as simply understand 
> > an href attribute.
> 
> Of course it could, but libraries can be re-used, so if the affordances
> are built into one namespace (xml:), then a library can be written
> to provide services to applications across many use cases.

The libraries have already been written, though, using HTML. Thousands
of them.

You're right that if we were starting again with XML we might consider
xml:href (although it would certainly meet with strong opposition
because of the software layering violation).

The goal of the XML work was to put SGML on the Web alongside HTML. It
was not to replace HTML. If it had been an attempt to replace HTML, as
Jeni Tennison pointed out in Prague this year, XML would have looked
very different.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 19:19
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Liam,

> On Wed, 2012-07-04 at 13:30 +0000, Rushforth, Peter wrote:
> 
> > So, I guess those parsers could also resolve xml:href and xml:src 
> > references, and leave the interpretation of the link typing to be 
> > worked out by the application.
> 
> What would be the use of that? The parser _needs_ to resolve (and
> follow) URIs in system identifiers, so it _needs_ xml:base.

I guess it might be useful so that all of the logic to resolve URIs would not have to
be re-implemented everywhere URI resolution is necessary, the parser
could present the URI as already resolved, via the api that it presents to its client,
per what Henry says in a later email.

The goal however is to
let XML applications succeed, not parsers, so parsers should do what is
necessary to allow the XML application to proceed. 

> 
> The majority of XML systems are not connected to a user interface.

It doesn't matter whether the semantics are presentation markup or 
musical notes, the markup does something by virtue of what they are connected to.  
If links are in the markup,
they mean the application needs to get something or otherwise change
state.  This is REST!  And furthermore, it allows clients to not have
to load huge XML files all at once, they can sip them as required.  
See atom:link <at> rel="next".

> 
> [Peter quoting David Carlisle:]
> > > Given that a large part of xml _on the web_ is xhtml and 
> that uses 
> > > href rather than xml:href,
> > 
> > I gather you don't often see application/xhtml+xml in the wild?
> 
> Not often, because of Internet Explorer prompting users to 
> save the file instead of displaying the resource, and because 
> that MIME content type header invokes draconian error 
> behaviour in browsers, whose authors decided not to attempt recovery.

If clients want xhtml they can negotiate for it, but I don't agree
with trying to xml-ize html.  A new approach is required there, and James
is someone with the stature and background to make the ends meet, I think.

I hope he gets back soon!

> > > I still don't think you've
> > > provided any use case where an application that 
> understood this new 
> > > xml:href proposal couldn't just as simply understand an href 
> > > attribute.
> > 
> > Of course it could, but libraries can be re-used, so if the 
> > affordances are built into one namespace (xml:), then a 
> library can be 
> > written to provide services to applications across many use cases.
> 
> The libraries have already been written, though, using HTML. 
> Thousands of them.

Isn't that a problem?  Or at least, couldn't the burden be placed elsewhere
so that things would work better?  For example,  when I see a link[ <at> type="application/xslt+xml"][ <at> rel="stylesheet"]/ <at> href,
it would be great if the application actually negotiated for application/xslt+xml among its
Accept: preferences.  But, the application can't negotiate if it is not aware of that 
attribute's value, which it should get from the parser api, per Henry's comment.

> 
> You're right that if we were starting again with XML we might 
> consider xml:href 

Liam, not just xml:href, _all_ the known hypermedia affordances which have
evolved through _extensive_ use in html and atom to date.  And, we _are_ kind of starting again,
because isn't the objective of XML to succeed on the Web?  Not too late!
Just the right time: we've got _experience_.

>(although it would certainly meet with 
> strong opposition because of the software layering violation).

Well, I looked at wikipedia on the subject of layering, and I could
not really make up my mind as to what 'layer' XML is in.

Fielding says that layered system is a "pure" style, but that its
use in network-based systems is limited to its combination with the
to provide layered-client-server ie it is a concept that is adapted
for use in the Web, not vice versa. [1]  Maybe we should ask Roy for his view 
on that?

[1] http://www.ics.uci.edu/~fielding/pubs/dissertation/net_arch_styles.htm#sec_3_4_2

I think that's what "affordances" are: they are like hand-holds for
a mountain climber (the application), allowing it to traverse the slope
and arrive at its goal.  The more we use them, the better the trail.

So, maybe as when Mike Kay first evaluated the idea of the WWW, he
thought it would never fly, maybe xml:affordances is like that layer thing for
the WWW:  not "pure", but hybrid, and workable.  If parsers make xml:base
available via an api to the application, they could do the same for other
affordances.  The browser seems to be in charge of network access, and perhaps
it is a client of that parser api?  If so, it would need to know what media
type ( <at> xml:type), for example, to negotiate for if a link is selected.  Same
for ( <at> xml:hreflang,  <at> xml:method).

> 
> The goal of the XML work was to put SGML on the Web alongside 
> HTML. 

It's not too late to improve the story.  Just the right time, in fact.

> It was not to replace HTML. If it had been an attempt 
> to replace HTML, as Jeni Tennison pointed out in Prague this 
> year, XML would have looked very different.

Right, XML is XML, HTML is HTML.

Cheers,
Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Pete Cordell | 4 Jul 2012 17:40
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 4 July 2012 14:00, David Carlisle <davidc <at> nag.co.uk> wrote:
> On 04/07/2012 13:39, Rushforth, Peter wrote:
>>
>> I'm guessing that in xml parsers today they would not do much.  What does
>> an xml parser do with xml:base value?
>
>
> In parsers that support xml:base they use it to resolve any relative URI
> specified in SYSTEM entity references. If they also support xinclude they
> presumably use it to resolve references in that case.
>
> Given that a large part of xml _on the web_ is xhtml and that uses href
> rather than xml:href, I still don't think you've provided any use case where
> an application that understood this new xml:href proposal couldn't just as
> simply understand an href attribute.

xml:lang looks a good precedent to me.  I don't think an XML parser
does anything special with it, and it's use could easily be inferred
by calling it simply 'lang' (without the 'xml:' prefix) and a regex on
its value.  But, because it's simple and easy to understand, it's
arguably the most widely used of the XML namespace attributes.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 4 Jul 2012 17:56
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> xml:lang looks a good precedent to me.  I don't think an XML parser
> does anything special with it

The xml parser is meant to use it to filter elements, hiding them them
from the receiving application as if they didn't exist.

In practice you want all the content reported to the application, and
then do filtering at that level.  So instead of xml:lang, you would
just use 'lang', 'locale' or whatever is appropriate.

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Henry S. Thompson | 4 Jul 2012 18:09
Picon
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Pete Cordell writes:

>> In parsers that support xml:base they use it to resolve any relative URI
>> specified in SYSTEM entity references. If they also support xinclude they
>> presumably use it to resolve references in that case.

They should update the [base URI] infoset property throughout the
relevant scope, that is, supply the updated value via whatever API they
use to make the results of parsing available.

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht <at> inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 4 Jul 2012 19:22
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Henry,

> Pete Cordell writes:
David Carlisle

> 
> >> In parsers that support xml:base they use it to resolve 
> any relative 
> >> URI specified in SYSTEM entity references. If they also support 
> >> xinclude they presumably use it to resolve references in that case.
> 
> They should update the [base URI] infoset property throughout 
> the relevant scope, that is, supply the updated value via 
> whatever API they use to make the results of parsing available.

Thanks for clarifying that, it is helpful.

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 4 Jul 2012 20:49

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

A fine crop of factual errors today!

David Carlisle scripsit:

> In parsers that support xml:base they use it to resolve any relative
> URI specified in SYSTEM entity references. 

This is absolutely untrue.  The scope of xml:base is at most the root
element: it cannot affect the DOCTYPE.  Check  the xml:base recommendation:
not a word about system identifiers.

Liam R E Quin scripsit:

> What would be the use of that? The parser _needs_ to resolve (and
> follow) URIs in system identifiers, so it _needs_ xml:base.

Nope.

Andrew Welch scripsit:

> The xml parser is meant to use it to filter elements, hiding them them
> from the receiving application as if they didn't exist.

What fevered imagination did that notion spring from?  It's true that
parsers aren't (by an accident of wording) required to report elements,
but there is no hint in the XML Rec (where xml:lang is defined) or any
other recommendation of anything like this.

--

-- 
Principles.  You can't say A is         John Cowan <cowan <at> ccil.org>
made of B or vice versa.  All mass      http://www.ccil.org/~cowan
is interaction.  --Richard Feynman

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Andrew Welch | 4 Jul 2012 22:32
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

>> The xml parser is meant to use it to filter elements, hiding them them
>> from the receiving application as if they didn't exist.
>
> What fevered imagination did that notion spring from?  It's true that
> parsers aren't (by an accident of wording) required to report elements,
> but there is no hint in the XML Rec (where xml:lang is defined) or any
> other recommendation of anything like this.

uuhh, I may have 'misremembered' that, I think from the widget spec:

http://www.w3.org/TR/widgets/

There was definitely a time when you could do:

<node xml:lang="en">yes</node>
<node xml:lang="fr">oui</node>

...and the receiving application would get the elements filtered by the lang.

--

-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 4 Jul 2012 23:18
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On Wed, 2012-07-04 at 14:49 -0400, John Cowan wrote:
> A fine crop of factual errors today!

Right you are!

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 4 Jul 2012 23:24
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

On 04/07/2012 19:49, John Cowan wrote:
> This is absolutely untrue.  The scope of xml:base is at most the root
> element: it cannot affect the DOCTYPE.  Check  the xml:base recommendation:
> not a word about system identifiers.

Sigh. Sorry I have posted enough on public lists that the occasional 
untruth is inevitable. Always happy to be corrected though, thanks.

David

--

-- 
google plus: https:/profiles.google.com/d.p.carlisle

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 4 Jul 2012 23:46

Re: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

David Carlisle scripsit:

> Sigh. Sorry I have posted enough on public lists that the occasional
> untruth is inevitable. Always happy to be corrected though, thanks.

You and me both.

--

-- 
John Cowan  cowan <at> ccil.org  http://ccil.org/~cowan
If he has seen farther than others,
        it is because he is standing on a stack of dwarves.
                --Mike Champion, describing Tim Berners-Lee (adapted)

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Richard Salz | 4 Jul 2012 23:16
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

> I'm guessing that in xml parsers today they would not do much.  What does
> an xml parser do with xml:base value?

If this was not a rhetorical question, then to me it indicates that you have a fair amount of learning still to do.

As do I.  For example, here's some questions I have.

One could rephrase the "XML namespace or external namespace" discussion in terms of real and perceived affordances.  Your thoughts?

The semantics of HTML's A/ <at> href are pretty well known, albeit kinda mushy -- if a human clicks, they'll see something related. What are the semantics in XML, where there is often no user, no display, or nothing to click?

        /r$

--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/blogs/soma/
Rushforth, Peter | 5 Jul 2012 14:45
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of MicroXML"

Hi Richard,
 
It's a new day, we can try for a fresh crop of errors.  I'll lead off :-).
 
> If this was not a rhetorical question, then to me it indicates that you have a fair amount of learning still to do. 
That is an indisputable fact.  For example, I know little about the inner workings of parsers, although I have benefited from using them.  I have a feeling that I may know more about that topic by the time you guys are done with me.  I relish the journey.
>One could rephrase the "XML namespace or external namespace" discussion in terms of real and perceived affordances.  Your thoughts?
Perception is tricky, as it is in the eye of the beholder (vocabulary designer).  A bucket, turned upside down, is a stool.
 
>The semantics of HTML's A/ <at> href are pretty well known, albeit kinda mushy -- if a human clicks, they'll see something related. What are the semantics in XML, where there is often no user, no display, or nothing to click?
Crawlers use a/ <at> href to access the referenced content.  No human is involved there either.  The semantics of anything in XML are defined by the vocabulary designer, but I would tie the xml:href to the most current relevant RFC, which may be the IRI RFC today.  Same for its siblings - refer them all to the best of breed specification which has been vetted by the community.  No specification?  Doesn't exist.
 
Picking analogies can be tricky, because they sometimes give an exactly wrong idea.  Especially when you lack knowledge of the domain of the analogy, which is a dicey business when you're talking to this crowd.  So, I'll try to be careful here, and I hope that someone with goodwill will not give me too much of a jolt to get me on the right track if I'm off it.  I though about atoms and molecules, but there is a really large number of atom types,  so I don't want to leave the impression that the xml: namespace would balloon if we decided to incorporate these concepts into it.  So atoms and molecules are out, as an analogy, for now.
 
xml:href, xml:src, xml:rel, xml:type, xml:hreflang, xml:method, and xml:tref seem to me not unlike the "vowels", not the words, in a hypermedia affordance vocabulary (language)(are vowels specific to a language?).  IOW, they can be recombined to make your own affordance, but they are shared by languages.  In Atom, the app:collection element is a powerful such affordance.  In html, a similar, but possibly more powerful affordance is "form".  "a" and "link" and "img" are other types of affordance.  The semantics of those affordances are defined by the vocabulary designer, who if he says a bucket is a stool, who's to say it's not?  The role of the "vowels" is to allow him to use words that can be understood by programmers, but whose vowels have meaning at the protocol level of the (web) infrastructure, user agents, crawlers, caches, intermediaries etc.
 
I saw a mathematically-oriented (possible analogy) from Andrew Wahbe regarding hypermedia affordances.  I can't find the comment just now, but unless I misinterpret his ideas, which is indeed possible, there are two main types of hypermedia controls, where the type is a function of the hypermedia format and the client:  Adaptive and Referential.  Adaptive controls map a domain (defined by the hypermedia format and client) to the uniform interface.  eg VoiceXML, Atom.  I take this to mean OTW XML applications can be included, so long as they use the uniform interface, ie web servers.  The other type, Referential hypermedia controls, such as "a" in html provide a different affordance to different users, such as humans and crawlers.
 
I think I have a 'gift' of (sometimes) being approximately correct, and (sometimes) precisely wrong.  In fact, if someone had said 'Sure, that's a great idea!', when I first arrived [1], I think the conclusion would have been _both_ at the same time, as I pointed out yesterday to Pete Cordell [2].  In light of that, and in light of the fact that people's patience must be wearing rather thin, I have a new proposal :-)
 
How about I take the day off tomorrow :-), and write a request for comments about xml:href and friends.  I mean, I have never written one of those things, so how hard can it be ? ;-).  Seriously, if any member of this community has actually written one, I would appreciate their advice and I would welcome collaborators.  Volunteers, please take one step forward :-).   But anyway,  once this community agrees on such a device, perhaps we could post it in some neutral territory and ask the hypermedia crowd to present their advice on the issue, to this list?  Once received and discussed, the XML Committee would be in a better position to make a wise decision on the matter.
 
Sincerely,
Peter Rushforth
 
BillClare3 | 6 Jul 2012 05:35
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

.  This a fascinating discussion about what is fundamental to XML, but I find that most of the  discussion  focuses on whether or not something is useful without really stating for what it might be useful.

.  So what is really trying to be accomplished here ?

1.  The first objective seems to be to “trim the weeds” of an overly complex specification.  This might be very useful if it were the basis for continued efforts, but that seems unlikely.

.        From  James Clarks’s “RandomThoughts” the main advantages here are ease of support in parsers and  tools, ease of use – especially for new users, and the avoiding of explicit (and implicit) use of subsets that are being developed anyway.

2.  It seems clear that this not meant as a markup language.

3.  MicroXML can be useful for messages.

4.  MicroXML can possibly be useful as a data store for various specifications.

5.  Other ?

.  Fundamental simplicity is achievable by eliminating attributes (with greater potential for simplifying schema), simplifying relative URI’s, and severely sub-setting the characters sets allowed (except where needed for URI’s).  This simplicity would also greatly simplify schema validation.  But I suspect the simplicity route is already lost to JSON and to the myriad tools that generate and edit XML for neophytes.  Also, such radical surgery raises issues of what can still be called XML.

.   For items 3 and 4 some linking capability for specifications is very useful, and this is provided in the xmlns attribute.

.   The term “affordances” is interesting but I can’t seem to figure out what it really means, other than a set of implied attributes.  I suspect that it is meant to imply support for actions for an application to take, but I’m not sure what would be generally useful here other than “include” (which is implicit in  xmlns) or to include some verification rules or schema.  Actions do imply a higher application level, but what is proposed seems to enable such a layer rather than to provide it.

.   I believe that, unfortunately, the real complexities of XML have sprung up from the weed garden with other specifications, tools and applications that have introduced far more untamed growth. If one really wanted to make XML based standards a lot simpler, dealing with that would of course require far more comprehensive efforts. Given the accelerating rate of proliferation of diverse, inconsistent and ever more specialized technologies and tools, this may become worthwhile as a comprehensive foundation for application development.

 

        Bill Clare

P. S.  Sorry that AOL doesn't handle replies to this list correctly.
 
 
 
In a message dated 7/5/2012 9:32:03 A.M. Eastern Daylight Time, Len.Bullard <at> ses-i.com writes:
Thanks John.   It doesn't explain why these ideas died with a whimper
other than there was no clamor for it.

For Peter, I think the challenge is to pose the problem(s) that will be
solved by adding linking semantics to XML that aren't solved otherwise.
Given the near obsession with HATEOAS of late, he might do well to start
with the state-diagrams where uncertainty is flattened away by the
application designer so the need for an n-way link and external links
becomes like supersymmetry, a solution to a problem of the theory but
nothing practical. ;)

I'm off to accompany Jerry Garcia into Mordor to see if hobbits are
really aliens with hairy feet.

len

-----Original Message-----
From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
Sent: Tuesday, July 03, 2012 7:53 PM
To: Len Bullard
Cc: Rushforth, Peter; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of MicroXML"

Len Bullard scripsit:

> http://home.ccil.org/~cowan/XML/afng.html
>
> John Cowan might be able to explain what became of this work.

I never got it quite right, and I never had the energy or motivation
to pursue a slightly-wrong implementation.  Eventually it fell off my
open-source/open-standard bucket list.

> My point is to note that work on these concepts stretched out over a
> decade from when that first article was published (although Hytime
> itself had been around a few years by that point) and some of the most
> brilliant minds in the markup tribe worked on it.
>
> And without much fanfare, it died.

The best may be the enemy of the good, but the good often returns
the favor.

--
But the next day there came no dawn,            John Cowan
and the Grey Company passed on into the         cowan <at> ccil.org
darkness of the Storm of Mordor and were
http://www.ccil.org/~cowan
lost to mortal sight; but the Dead
followed them.          --"The Passing of the Grey Company"

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
Michael Kay | 6 Jul 2012 10:26
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...


.   The term “affordances” is interesting but I can’t seem to figure out what it really means


I think it's mainly interesting as an example of a social phenomenon whereby the enlightened invent specialist vocabulary explicitly to prevent the unenlightened joining the conversation.

Michael Kay
Saxonica
Norman Gray | 6 Jul 2012 10:48
Picon
Picon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...


Greetings.

On 2012 Jul 6, at 10:26, Michael Kay wrote:

>> .   The term “affordances” is interesting but I can’t seem to figure out what it really means
> 
> I think it's mainly interesting as an example of a social phenomenon whereby the enlightened invent
specialist vocabulary explicitly to prevent the unenlightened joining the conversation.

[I only read the quoted message briefly, and can't retrieve it, so I may be misremembering the context; that said...]

I think this is a tad unfair, Michael.  The term 'affordances' has a perfectly respectable lineage in the
terminology of user-interface design, and (a more important consideration) labels a useful notion
which is hard to think with until it's thus pointed out.  I'd go as far as to say that anyone with a passing
interest in usable software should be at least broadly familiar with the notion.

Roughly (and as I understand it), the affordances of an object (be it physical, on a screen or, at a stretch,
an API) are the actions which the thing suggests to the user as possibilities.  If a door opens only one way,
for example, then it's useful to have an obviously pullable handle on one side and an obviously pushable
plate or knob on the other, so that when walking up to the door you 'know' what to do with it without thinking
or being told.  If it has 'pullable' affordances on the push-only side, it's arguably badly designed.  The
extension to computer GUIs is obvious.

The wikipedia page <http://en.wikipedia.org/wiki/Affordances> makes the notion sound more exotic
than it really is.  Donald Norman's 'The Psychology/Design of Everyday Things' (which is where I first saw
the term) is a good book about industrial design in general, and not just GUIs.

Best wishes,

Norman

--

-- 
Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 6 Jul 2012 13:12

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


>>   The term “affordances” is interesting but I can’t seem to figure out what it really means

> I think it's mainly interesting as an example of a social phenomenon whereby the enlightened invent
specialist 
> vocabulary explicitly to prevent the unenlightened joining the conversation.


Whew, and I was afraid to say the kind was naked too ....

Reminds me of a chat I had 15 years ago with a friend who has a PhD in Chaos Physics.
He was showing me this paper and I read part of it then gave it back and said "This is full of it, 
nobody could understand any of this I doubt even the author does" ... 
And he admitted what was my underlying belief ... that one way of making publishable papers in esoteric sciences
is to make it so complicated no one can admit they dont have a clue what you're talking about.


-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
dlee <at> marklogic.com
Phone: +1 650-287-2531
Cell:  +1 812-630-7622
www.marklogic.com


This e-mail and any accompanying attachments are confidential. The information is intended solely for
the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use
of this e-mail communication by others is strictly prohibited. If you are not the intended recipient,
please notify us immediately by returning this message to the sender and delete all copies. Thank you for
your cooperation.





Len Bullard | 6 Jul 2012 15:14
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

One sees these terms in discussions of semiotics and legal theory.  See
NORMA.

The Evolution of Organisational Semiotics  www.orgsem.org/papers/00.pdf

I've seen it and used it paired as "norms and affordances" also called
"clica".  If anyone has a better general term, now is the time to use
it.

A few years ago we were discussing it in relation to the problem of
rights to operations that needed to be transferable among virtual
worlds. This is now identity sharing or how Google can make use of
Google+ without actually beating Facebook in the market.  Notice the
problem of having these available without regard to implementation or
propriety.  IOW, the affordance becomes a property right for a class as
that class moves among domains (which is why legal theorists use it).

"A topic not discussed here as far as I can remember is how
one can acquire affordances (operation rights) that transfer
among worlds in accordance with the norms (cultural constraints)
of a world.  IOW, analogous to single sign on for other network
apps, a means to share identity and ownership to enable rights
regardless of the server owner or vendor."

http://www.web3d.org/x3d/publiclists/x3dpublic_list_archives/0604/msg000
75.html

In that case, the affordance had to be legally established given the
problems of mixing children with adults in VR.  In this case, it can be
a means to enable hyperlinking among XML applications without the need
to use downtranslation.  In VR worlds this wasn't as easy given the
complexity of the potential behaviors and rights management.

The king has clothes.  You are not his subject.

len

-----Original Message-----
From: David Lee [mailto:dlee <at> calldei.com] 
Sent: Friday, July 06, 2012 6:13 AM
To: Michael Kay; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of ...

>>   The term "affordances" is interesting but I can't seem to figure
out what it really means

> I think it's mainly interesting as an example of a social phenomenon
whereby the enlightened invent specialist 
> vocabulary explicitly to prevent the unenlightened joining the
conversation.

Whew, and I was afraid to say the kind was naked too ....

Reminds me of a chat I had 15 years ago with a friend who has a PhD in
Chaos Physics.
He was showing me this paper and I read part of it then gave it back and
said "This is full of it, 
nobody could understand any of this I doubt even the author does" ... 
And he admitted what was my underlying belief ... that one way of making
publishable papers in esoteric sciences
is to make it so complicated no one can admit they dont have a clue what
you're talking about.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Mike Sokolov | 6 Jul 2012 15:30
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...


> The king has clothes.  You are not his subject.
>
> len
>
>    
unless you want to be

personally I'm happy to be a king's follower in this instance.  I don't 
mind coinage of new terms as needed, but to avoid jargon it's preferable 
to repurpose an old one that's relevant.  How about "links" or 
"references"?  But I don't have any real stake in changing the terms of 
that discourse: just saying.

sokolov

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 6 Jul 2012 15:41
Favicon

Tumbleweeds

I'm changing the subject line to keep this from becoming topical dark
matter.

The problem of using an old one is it comes with it's community's
semiotic baggage as in repurposing "namespace".   It is one of the
trickier bits of communication in practice.  As Dr. Goldfarb said about
writing specifications or standards, "conserve nouns".

I understood Peter because of using the term for a similar problem only
to be told the term was "clica".  A very long time ago when sociology
was trendy, we would talk about clique theory, how one could identify
subcultures by their argot or lingo and how the right to create and
promote insider words was a sign of status as well as a means to
establish dominance by marking conversational territory. See "pissing on
trees".  It is also a means to avoid the same.

len

-----Original Message-----
From: Mike Sokolov [mailto:sokolov <at> ifactory.com] 
Sent: Friday, July 06, 2012 8:31 AM
To: Len Bullard
Cc: David Lee; Michael Kay; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of ...

> The king has clothes.  You are not his subject.
>
> len
>
>    
unless you want to be

personally I'm happy to be a king's follower in this instance.  I don't 
mind coinage of new terms as needed, but to avoid jargon it's preferable

to repurpose an old one that's relevant.  How about "links" or 
"references"?  But I don't have any real stake in changing the terms of 
that discourse: just saying.

sokolov

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 6 Jul 2012 20:44
Picon

RE: Tumbleweeds

Right!
________________________________________
From: Len Bullard [Len.Bullard <at> ses-i.com]
Sent: July 6, 2012 9:41 AM
To: Mike Sokolov
Cc: xml-dev <at> lists.xml.org
Subject: [xml-dev] Tumbleweeds

I'm changing the subject line to keep this from becoming topical dark
matter.

The problem of using an old one is it comes with it's community's
semiotic baggage as in repurposing "namespace".   It is one of the
trickier bits of communication in practice.  As Dr. Goldfarb said about
writing specifications or standards, "conserve nouns".

I understood Peter because of using the term for a similar problem only
to be told the term was "clica".  A very long time ago when sociology
was trendy, we would talk about clique theory, how one could identify
subcultures by their argot or lingo and how the right to create and
promote insider words was a sign of status as well as a means to
establish dominance by marking conversational territory. See "pissing on
trees".  It is also a means to avoid the same.

len

-----Original Message-----
From: Mike Sokolov [mailto:sokolov <at> ifactory.com]
Sent: Friday, July 06, 2012 8:31 AM
To: Len Bullard
Cc: David Lee; Michael Kay; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of ...

> The king has clothes.  You are not his subject.
>
> len
>
>
unless you want to be

personally I'm happy to be a king's follower in this instance.  I don't
mind coinage of new terms as needed, but to avoid jargon it's preferable

to repurpose an old one that's relevant.  How about "links" or
"references"?  But I don't have any real stake in changing the terms of
that discourse: just saying.

sokolov

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 6 Jul 2012 19:07

Re: hypermedia affordances

Mike Sokolov scripsit:

> personally I'm happy to be a king's follower in this instance.  I
> don't mind coinage of new terms as needed, but to avoid jargon it's
> preferable to repurpose an old one that's relevant.  How about
> "links" or "references"?  

We are so used to them that we don't easily see that "links" and
"references" are just as much jargon as "affordances".  Our field has been
repurposing terms from its beginnings, perhaps starting with "computer",
which used to mean someone whose job it was to compute things, with
or without an instrument.  Yanks and Brits collided in the early days
over "memory": the latter preferred the less misleading term "store",
but it didn't last.  I laughed almost twenty years ago when I got a
letter from the principal of my daughter's school talking about the
newfangled Internet: he mentioned that he knew some of us parents were
"expert browsers".  A natural mistake, really: isn't a browser an animal
that eats shoots and leaves (no commas)?

But not everyone thinks our terminological buccaneering a Good Thing.
Primo Levi in his essay collection _Other People's Trades_ talks about
his mystification in trying to decipher the manuals that came with his
shiny new Macintosh:

    The computer was delivered to me accompanied by a profusion of
    manuals. I tried to study them before touching the keys, and I felt
    lost. It seemed to me that although they were apparently written in
    Italian, there were in an unknown language; indeed in a mocking and
    misleading language in which well-known words like "open," "close,"
    and "quit" are used in unusual ways.  [...] How much better it would
    have been to invent a decisively new terminology for these new things.

And he also speaks of the un-helpfulness of the glossaries in those
same manuals, which proceed "in an opposite direction to that of common
dictionaries; these [glossaries] define familiar terms by having recourse
to abstruse terms, and the effect is devastating."

In short, the question of "new terms or old?" is a matter of taste and
common practice in a field, and "affordance" belongs to a field related
to ours but not the same.

--

-- 
Yes, chili in the eye is bad, but so is your    John Cowan
ear.  However, I would suggest you wash your    cowan <at> ccil.org
hands thoroughly before going to the toilet.    http://www.ccil.org/~cowan
        --gadicath

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 6 Jul 2012 19:26
Picon

RE: hypermedia affordances

> In short, the question of "new terms or old?" is a matter of 
> taste and common practice in a field, and "affordance" 
> belongs to a field related to ours but not the same.

Right.  You are in the tool factory business.  And if you want to help your customers
build tools that people can use, you should look at how people use tools and 
maybe build that into your business model.  And by "people", I mean programmers.

Just saying.

Cheers,
Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 6 Jul 2012 19:27
Favicon

RE: hypermedia affordances

Roger Costello reminded me of a discussion from the Web Architecture
list, 2004:

http://lists.w3.org/Archives/Public/www-tag/2004Sep/0161.html

<blockquote>
The definition is for a web resource.  The other word senses aren't 
applicable.  That is why it is a weak theory.  It isn't intended to 
be a comprehensive ontology for the colloquialism.  That is also 
why 'on the web' has to be called 'colloquial' instead of a 
formal term.   A hard and stubborn part of writing the 
web arch doc and in fact, any specification or standard is 
to "conserve nouns" as Goldfarb said, to reduce misinterpretation. 
It is similar to formal ontology work in that respect.  Ontologies 
are theories.  Ontological commitment as defined by Gruber means 
committing to a theory or word sense, typically, with a means to 
verify the commitment through a testable property.  What has 
been pointed out several times by several individuals is that 
the term 'web resource' is testable.  So, this is a good term 
for the formal set of web architecture terms.

Try to conceive of a test for 'information space'.
</blockquote>

And we here are committed or will be soon enough.

In the sense where norm is paired with affordance, there is a coherent
understanding.   Affordances can be increased or decreased by adjusting
norms.  Two examples are driver licenses and marriage licenses as being
accepted among or between states given federal and state norms.  Because
these are different power domains, the norms do vary and so do the
affordances... so far.

Here we have the example of "link" and/or "reference".   

With Hytime arch forms we attempted to take the terminology and give it
a meaning apart from the narrower domain of HTML which as SGML domain
specialists was "normal" because we wanted hypermedia technology that
could be applied to any application vocabulary.  Instead we settled for
downtranslation and namespaces and as predicted, the special case domain
(ie., HTML) became increasingly "special" and now as HTML5 appears ready
to cast off all other applications to become "the one true Ark"  On The
Web.  I think that makes it an easier target for sinking but....

No one translates X3D to HTML for obvious reasons so there is a good
case for separating linking as an affordance from HTML <A.

Len

-----Original Message-----
From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
Sent: Friday, July 06, 2012 12:08 PM
To: Mike Sokolov
Cc: Len Bullard; David Lee; Michael Kay; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] hypermedia affordances

Mike Sokolov scripsit:

> personally I'm happy to be a king's follower in this instance.  I
> don't mind coinage of new terms as needed, but to avoid jargon it's
> preferable to repurpose an old one that's relevant.  How about
> "links" or "references"?  

We are so used to them that we don't easily see that "links" and
"references" are just as much jargon as "affordances".  Our field has
been
repurposing terms from its beginnings, perhaps starting with "computer",
which used to mean someone whose job it was to compute things, with
or without an instrument.  Yanks and Brits collided in the early days
over "memory": the latter preferred the less misleading term "store",
but it didn't last.  I laughed almost twenty years ago when I got a
letter from the principal of my daughter's school talking about the
newfangled Internet: he mentioned that he knew some of us parents were
"expert browsers".  A natural mistake, really: isn't a browser an animal
that eats shoots and leaves (no commas)?

But not everyone thinks our terminological buccaneering a Good Thing.
Primo Levi in his essay collection _Other People's Trades_ talks about
his mystification in trying to decipher the manuals that came with his
shiny new Macintosh:

    The computer was delivered to me accompanied by a profusion of
    manuals. I tried to study them before touching the keys, and I felt
    lost. It seemed to me that although they were apparently written in
    Italian, there were in an unknown language; indeed in a mocking and
    misleading language in which well-known words like "open," "close,"
    and "quit" are used in unusual ways.  [...] How much better it would
    have been to invent a decisively new terminology for these new
things.

And he also speaks of the un-helpfulness of the glossaries in those
same manuals, which proceed "in an opposite direction to that of common
dictionaries; these [glossaries] define familiar terms by having
recourse
to abstruse terms, and the effect is devastating."

In short, the question of "new terms or old?" is a matter of taste and
common practice in a field, and "affordance" belongs to a field related
to ours but not the same.

-- 
Yes, chili in the eye is bad, but so is your    John Cowan
ear.  However, I would suggest you wash your    cowan <at> ccil.org
hands thoroughly before going to the toilet.
http://www.ccil.org/~cowan
        --gadicath

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 6 Jul 2012 20:42
Picon

RE: hypermedia affordances

> HTML5 appears ready
> to cast off all other applications to become "the one true Ark"  On The
> Web.  I think that makes it an easier target for sinking but....

I think the problem with html is that it is trying to swallow the semantics of the world inside text/html.

I think the problem with xml is that it doesn't have hypermedia affordances.  XML is complex because it needs
to be in every environment where semantics are necessary.

The solution is to cooperate, IMHO.  Hypermedia affordances that we can all live with would be a good start.

Where is Gandalf when you need him?!

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 6 Jul 2012 21:19
Favicon

RE: hypermedia affordances

This is dr;tl for some of you.  Sorry... so I am trimming the reply list out of respect for your time.

That is usually the problem of a one size fits all, but because I am not involved with HTML5 nor do I understand
its raison d'etre, I defer to those who are and do.  Noodling is the royal road to innovation but with Google
and Apple slugging it out in court, I am unsure of what will become of HTML5.

XML doesn't need hypermedia affordances to succeed in the tasks for which it was specified.  Does JSON?  Now
that is quite a different argument from there being a useful set of hypermedia affordances that become the
norm for all hypermedia applications on the web including those using XML or MicroXML.  I would understand
John's reluctance to include them because he and James have envisioned different goals.  Selah.

For example, VRML97 did not use XML syntax.  It could have but XML was not ready when it was spec'd and SGML was
too heavy for a real-time 3D application.  It was interoperable through the container API and that was
quite limited.  It did have the concept of click and go but it worked very differently at the technical level
of the control.  What it shared was http syntax which meant it could open a window with a contained resource. 
On the other hand, traversing to a different part of the world was not an HTML style hyperlink.  It is a jump
cut (different medium; different affordance; it inherited movie argot and style for valid reasons
(objects in motion)).

Then X3D was created to make it possible to use XML syntax and namespaces for real-time 3D.  It has namespaces
but once again, it still interoperates with different media through the container API, eg, the browser
although originally VRML worked in a VRML browser not an HTML browser and they were both web browsers.  The
idea here is a web browser is not an HTML browser; it is a framework of objects that any application
accessing the web can use and HTML is just one.  That is how hypermedia worked prior to the web:  it IS the
operating system GUI.

Now WebGL is attempting to side step that to put the 3D affordances lower in the application stack or "closer
to the metal" to take advantage of late breaking display technology (hardware and firmware).  It may get an
XML language on top and it may be X3D but likely not because of the personal and company politics among those
writing the specs.  Life among the mammals.

A compelling reason for SGML, architectural forms and so on was/is to keep semantics from being captured
**by a language or company**.  Otherwise putting it in the language 

A) Inhibits innovation, the treacle effect of distribution.  

B) Inhibits access, see the Patent Wars.   There are some long brutal threads on that topic somewhere in the
W3C archives.

This is why what Liam is suggesting is good advice.  Study all the examples you can find, not just HTML and find
the best way to express those requirements without adopting something owned or locked up.  As Liam says you
aren't likely to get more support than that from this community precisely because we do have experience. 
We aren't antithetical; but that is the way to get it accepted and it may be a slow long slog.

We have learned from hard experience that attempting to standardize or create outside the legal umbrella
of a consortium or other organization with transparent norms guarantees capture if the affordances have
value.  Again, life among the mammals.  You can't leave gold in the village square without a wall or guards. 
For something as important as this if successful you absolutely must have that legal umbrella.  Otherwise
it will be captured or it will die and then be resurrected under different norms, scrubbed of the names of
the originators and a new army of orcs will arise.  

Remember what orcs are made of.  Their souls aren't happy about it.

len

-----Original Message-----
From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca] 
Sent: Friday, July 06, 2012 1:42 PM
To: Len Bullard; John Cowan; Mike Sokolov
Cc: David Lee; Michael Kay; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] hypermedia affordances

> HTML5 appears ready
> to cast off all other applications to become "the one true Ark"  On The
> Web.  I think that makes it an easier target for sinking but....

I think the problem with html is that it is trying to swallow the semantics of the world inside text/html.

I think the problem with xml is that it doesn't have hypermedia affordances.  XML is complex because it needs
to be in every environment where semantics are necessary.

The solution is to cooperate, IMHO.  Hypermedia affordances that we can all live with would be a good start.

Where is Gandalf when you need him?!

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 6 Jul 2012 22:08

Re: hypermedia affordances

Len Bullard scripsit:

> That is usually the problem of a one size fits all, but because I am
> not involved with HTML5 nor do I understand its raison d'etre, I defer
> to those who are and do.  Noodling is the royal road to innovation
> but with Google and Apple slugging it out in court, I am unsure of
> what will become of HTML5.

HTML5 is two things at the same time.  On the one hand, it adds new
features to HTML 4, some of them already implemented in major browsers,
some not.  This is evolutionary.  On the other hand, it specifies in
painstaking detail, to the level of actual software (but written in highly
technical English, like a verbalized flowchart), exactly how to go from any
sequence of Unicode characters to the exact DOM that a conformant browser
will (and most browsers already do) create when handed that sequence.
This is revolutionary: the implementation is now driving the spec.

> XML doesn't need hypermedia affordances to succeed in the tasks for
> which it was specified.  Does JSON?  Now that is quite a different
> argument from there being a useful set of hypermedia affordances that
> become the norm for all hypermedia applications on the web including
> those using XML or MicroXML.  I would understand John's reluctance
> to include them because he and James have envisioned different goals.
> Selah.

I'm refusing (not merely reluctant) to include them because I have
specified MicroXML namespaces to be the same, not merely in general
but in particular, as XML namespaces.  The XML Core WG owns the xml:
namespace and I don't, and they have already refused (with my hearty
agreement) to add xml:ref and friends to that namespace.  Q.E.D.

> Remember what orcs are made of.  Their souls aren't happy about it.

Tolkien was never quite consistent about this.  How is it that the
children of orcs are still orcs?

--

-- 
I now introduce Professor Smullyan,             John Cowan
who will prove to you that either               cowan <at> ccil.org
he doesn't exist or you don't exist,            http://www.ccil.org/~cowan
but you won't know which.                               --Melvin Fitting

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 6 Jul 2012 22:39
Favicon

RE: hypermedia affordances

Thanks for clarifying that, John.  That sounds like a good thing
although the "sometimes not" part gives me the same feeling as that the
quote from marca did way back yonder (so what the heck are NOTATIONs
good for?)

I think, Peter, you have been answered authoritatively regards MicroXML.

As to the last question, because something had to spawn objectivists and
teach cosmetics.

len

-----Original Message-----
From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
Sent: Friday, July 06, 2012 3:08 PM
To: Len Bullard
Cc: Rushforth, Peter; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] hypermedia affordances

Len Bullard scripsit:

> That is usually the problem of a one size fits all, but because I am
> not involved with HTML5 nor do I understand its raison d'etre, I defer
> to those who are and do.  Noodling is the royal road to innovation
> but with Google and Apple slugging it out in court, I am unsure of
> what will become of HTML5.

HTML5 is two things at the same time.  On the one hand, it adds new
features to HTML 4, some of them already implemented in major browsers,
some not.  This is evolutionary.  On the other hand, it specifies in
painstaking detail, to the level of actual software (but written in
highly
technical English, like a verbalized flowchart), exactly how to go from
any
sequence of Unicode characters to the exact DOM that a conformant
browser
will (and most browsers already do) create when handed that sequence.
This is revolutionary: the implementation is now driving the spec.

> XML doesn't need hypermedia affordances to succeed in the tasks for
> which it was specified.  Does JSON?  Now that is quite a different
> argument from there being a useful set of hypermedia affordances that
> become the norm for all hypermedia applications on the web including
> those using XML or MicroXML.  I would understand John's reluctance
> to include them because he and James have envisioned different goals.
> Selah.

I'm refusing (not merely reluctant) to include them because I have
specified MicroXML namespaces to be the same, not merely in general
but in particular, as XML namespaces.  The XML Core WG owns the xml:
namespace and I don't, and they have already refused (with my hearty
agreement) to add xml:ref and friends to that namespace.  Q.E.D.

> Remember what orcs are made of.  Their souls aren't happy about it.

Tolkien was never quite consistent about this.  How is it that the
children of orcs are still orcs?

-- 
I now introduce Professor Smullyan,             John Cowan
who will prove to you that either               cowan <at> ccil.org
he doesn't exist or you don't exist,
http://www.ccil.org/~cowan
but you won't know which.                               --Melvin Fitting

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 6 Jul 2012 23:29
Picon

RE: hypermedia affordances

> I think, Peter, you have been answered authoritatively regards MicroXML.

Where you plant a peach, a peach tree will grow.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Sheets | 7 Jul 2012 00:34
Picon

Re: hypermedia affordances

On Fri, Jul 6, 2012 at 12:19 PM, Len Bullard <Len.Bullard <at> ses-i.com> wrote:
> This is dr;tl for some of you.  Sorry... so I am trimming the reply list out of respect for your time.
>
> That is usually the problem of a one size fits all, but because I am not involved with HTML5 nor do I
understand its raison d'etre, I defer to those who are and do.  Noodling is the royal road to innovation but
with Google and Apple slugging it out in court, I am unsure of what will become of HTML5.
>
> XML doesn't need hypermedia affordances to succeed in the tasks for which it was specified.  Does JSON?  Now
that is quite a different argument from there being a useful set of hypermedia affordances that become the
norm for all hypermedia applications on the web including those using XML or MicroXML.  I would understand
John's reluctance to include them because he and James have envisioned different goals.  Selah.
>
> For example, VRML97 did not use XML syntax.  It could have but XML was not ready when it was spec'd and SGML was
too heavy for a real-time 3D application.  It was interoperable through the container API and that was
quite limited.  It did have the concept of click and go but it worked very differently at the technical level
of the control.  What it shared was http syntax which meant it could open a window with a contained resource. 
On the other hand, traversing to a different part of the world was not an HTML style hyperlink.  It is a jump
cut (different medium; different affordance; it inherited movie argot and style for valid reasons
(objects in motion)).
>
> Then X3D was created to make it possible to use XML syntax and namespaces for real-time 3D.  It has
namespaces but once again, it still interoperates with different media through the container API, eg,
the browser although originally VRML worked in a VRML browser not an HTML browser and they were both web
browsers.  The idea here is a web browser is not an HTML browser; it is a framework of objects that any
application accessing the web can use and HTML is just one.  That is how hypermedia worked prior to the web: 
it IS the operating system GUI.
>
> Now WebGL is attempting to side step that to put the 3D affordances lower in the application stack or
"closer to the metal" to take advantage of late breaking display technology (hardware and firmware).  It
may get an XML language on top and it may be X3D but likely not because of the personal and company politics
among those writing the specs.  Life among the mammals.

Regarding WebGL, the standard reflects the procedural hardware
capabilities rather than a declarative content model. WebGL is
fundamentally about describing parallel algebraic computation rather
than 3D scenes or spaces. Any hypermedia affordances by WebGL concern
its computational domain and the declarative content of that numerical
language (WebGLSL).

To that end:

1. I have (perhaps clumsily) XML-ized the WebGL extension registry at
<http://www.khronos.org/registry/webgl/extensions/>. XML versions of
the extensions are linked from generated HTML by
link/ <at> type='alternate' tags. HTML is generated from XML by XSLT. Atom
syndication of extension revisions are also available. This
XML-ization provides a structured format to declare WebGLSL (GPU
shading language) extension module signatures for machine consumption.

2. I have proposed the IETF registration of a WebGL shading language
media type <http://www.khronos.org/webgl/public-mailing-list/archives/1205/msg00160.html>
which was met with confusion and hostility on the public mailing list.
Khronos Group, despite claiming to mint Open Web Standards and putting
"Web" in the name of their alleged Open Web Standards, does not
actually integrate their standards with other web standards.
Additionally, some non-trivial amount of technical discussion
regarding the standard occurs on the private, members ($10k+/yr) only
list <mailto:3dweb <at> khronos.org>. I have still not received a response
to my media type proposal from any WebGL committee members (to my
knowledge; the committee's membership also appears to be secret).

3. I have proposed a WebGL extension that embeds the WebGL extension
namespace into the WWW's URI
<http://www.khronos.org/webgl/public-mailing-list/archives/1205/msg00135.html>
which enjoyed similar reception to the media type proposal.

4. I am presently developing a WebGLSL analysis tool, gloc
<https://github.com/ashima/gloc>, to add sorely needed modularity and
hyperlinking to the general purpose numerical WebGLSL web language
while accommodating the insane legacy lexical preprocessor. See also
<http://blog.ashimagroup.net/2012/03/15/introducing-gloc-for-open-web-shader-linking/>
and <http://www.youtube.com/watch?v=wQfvYBDJaMY#t=19m13s>. gloc is
written in OCaml and compiles into JavaScript. gloc runs on node.js as
well. gloc is BSD-licensed and a 1.1 release with a bunch of goodies
will land soon. glo 1.0 is already hyperlinked module metadata with
JSON and XML serializations.

I am concerned that Khronos and its member corporations (Google,
Mozilla ($300MM/yr from GOOG), Apple, nVidia, etc) are not good
stewards of Web standards and are, in fact, newspeaking the value of
the term "Web" to further their own short-sighted agendas. Is it evil
yet?

Your thoughts on these matters or my software or serialization formats
are warmly welcome. I have a good collection of various types of
hyper-references to declare...

Contributors are always welcome.

> A compelling reason for SGML, architectural forms and so on was/is to keep semantics from being captured
**by a language or company**.  Otherwise putting it in the language
>
> A) Inhibits innovation, the treacle effect of distribution.
>
> B) Inhibits access, see the Patent Wars.   There are some long brutal threads on that topic somewhere in the
W3C archives.
>
> This is why what Liam is suggesting is good advice.  Study all the examples you can find, not just HTML and
find the best way to express those requirements without adopting something owned or locked up.  As Liam
says you aren't likely to get more support than that from this community precisely because we do have
experience.  We aren't antithetical; but that is the way to get it accepted and it may be a slow long slog.
>
> We have learned from hard experience that attempting to standardize or create outside the legal umbrella
of a consortium or other organization with transparent norms guarantees capture if the affordances have
value.  Again, life among the mammals.  You can't leave gold in the village square without a wall or guards. 
For something as important as this if successful you absolutely must have that legal umbrella.  Otherwise
it will be captured or it will die and then be resurrected under different norms, scrubbed of the names of
the originators and a new army of orcs will arise.

And if the village square is a gated community already? What are
transparent norms? What if capture contradicts dogma? Can a Gorilla
feel empathy from its mountain stronghold?

> Remember what orcs are made of.  Their souls aren't happy about it.

To Mt. Doom!

David

> len
>
> -----Original Message-----
> From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> Sent: Friday, July 06, 2012 1:42 PM
> To: Len Bullard; John Cowan; Mike Sokolov
> Cc: David Lee; Michael Kay; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] hypermedia affordances
>
>> HTML5 appears ready
>> to cast off all other applications to become "the one true Ark"  On The
>> Web.  I think that makes it an easier target for sinking but....
>
> I think the problem with html is that it is trying to swallow the semantics of the world inside text/html.
>
> I think the problem with xml is that it doesn't have hypermedia affordances.  XML is complex because it
needs to be in every environment where semantics are necessary.
>
> The solution is to cooperate, IMHO.  Hypermedia affordances that we can all live with would be a good start.
>
> Where is Gandalf when you need him?!
>
> Peter
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 9 Jul 2012 14:52
Favicon

RE: hypermedia affordances

As a past member of the Board of Directors of the Web3D Consortium (X3D,
VRML97), it is polite to remain circumspect with regards to Khronos
policies.  What follows is not aimed at any particular group.

I can say that you are not the first to express trepidation about
capture of that application space by closed systems and corporate
entities.  I do not keep up with the developments in WebGL although I
still receive public mail list content (can't seem to get off the list).
I am not surprised that public statements and private efforts are not
coherent or do not reinforce the values established in the early days of
web development.   There are reasons for the members-only nature of the
development teams, particularly the patent wars where contributions
cannot be vetted unless obliged by membership conditions.

The days of "we have some sets in the barn, let's put on a show and save
the school fire truck" are over and have been for at least a decade.
Sad but so.  There are still organizations that let one establish a
working group cheaply and with laissez-faire rules for participation.
Your mileage may vary.

len

-----Original Message-----
From: David Sheets [mailto:kosmo.zb <at> gmail.com] 
Sent: Friday, July 06, 2012 5:35 PM
To: Len Bullard
Cc: Rushforth, Peter; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] hypermedia affordances

On Fri, Jul 6, 2012 at 12:19 PM, Len Bullard <Len.Bullard <at> ses-i.com>
wrote:
> This is dr;tl for some of you.  Sorry... so I am trimming the reply
list out of respect for your time.
>
> That is usually the problem of a one size fits all, but because I am
not involved with HTML5 nor do I understand its raison d'etre, I defer
to those who are and do.  Noodling is the royal road to innovation but
with Google and Apple slugging it out in court, I am unsure of what will
become of HTML5.
>
> XML doesn't need hypermedia affordances to succeed in the tasks for
which it was specified.  Does JSON?  Now that is quite a different
argument from there being a useful set of hypermedia affordances that
become the norm for all hypermedia applications on the web including
those using XML or MicroXML.  I would understand John's reluctance to
include them because he and James have envisioned different goals.
Selah.
>
> For example, VRML97 did not use XML syntax.  It could have but XML was
not ready when it was spec'd and SGML was too heavy for a real-time 3D
application.  It was interoperable through the container API and that
was quite limited.  It did have the concept of click and go but it
worked very differently at the technical level of the control.  What it
shared was http syntax which meant it could open a window with a
contained resource.  On the other hand, traversing to a different part
of the world was not an HTML style hyperlink.  It is a jump cut
(different medium; different affordance; it inherited movie argot and
style for valid reasons (objects in motion)).
>
> Then X3D was created to make it possible to use XML syntax and
namespaces for real-time 3D.  It has namespaces but once again, it still
interoperates with different media through the container API, eg, the
browser although originally VRML worked in a VRML browser not an HTML
browser and they were both web browsers.  The idea here is a web browser
is not an HTML browser; it is a framework of objects that any
application accessing the web can use and HTML is just one.  That is how
hypermedia worked prior to the web:  it IS the operating system GUI.
>
> Now WebGL is attempting to side step that to put the 3D affordances
lower in the application stack or "closer to the metal" to take
advantage of late breaking display technology (hardware and firmware).
It may get an XML language on top and it may be X3D but likely not
because of the personal and company politics among those writing the
specs.  Life among the mammals.

Regarding WebGL, the standard reflects the procedural hardware
capabilities rather than a declarative content model. WebGL is
fundamentally about describing parallel algebraic computation rather
than 3D scenes or spaces. Any hypermedia affordances by WebGL concern
its computational domain and the declarative content of that numerical
language (WebGLSL).

To that end:

1. I have (perhaps clumsily) XML-ized the WebGL extension registry at
<http://www.khronos.org/registry/webgl/extensions/>. XML versions of
the extensions are linked from generated HTML by
link/ <at> type='alternate' tags. HTML is generated from XML by XSLT. Atom
syndication of extension revisions are also available. This
XML-ization provides a structured format to declare WebGLSL (GPU
shading language) extension module signatures for machine consumption.

2. I have proposed the IETF registration of a WebGL shading language
media type
<http://www.khronos.org/webgl/public-mailing-list/archives/1205/msg00160
.html>
which was met with confusion and hostility on the public mailing list.
Khronos Group, despite claiming to mint Open Web Standards and putting
"Web" in the name of their alleged Open Web Standards, does not
actually integrate their standards with other web standards.
Additionally, some non-trivial amount of technical discussion
regarding the standard occurs on the private, members ($10k+/yr) only
list <mailto:3dweb <at> khronos.org>. I have still not received a response
to my media type proposal from any WebGL committee members (to my
knowledge; the committee's membership also appears to be secret).

3. I have proposed a WebGL extension that embeds the WebGL extension
namespace into the WWW's URI
<http://www.khronos.org/webgl/public-mailing-list/archives/1205/msg00135
.html>
which enjoyed similar reception to the media type proposal.

4. I am presently developing a WebGLSL analysis tool, gloc
<https://github.com/ashima/gloc>, to add sorely needed modularity and
hyperlinking to the general purpose numerical WebGLSL web language
while accommodating the insane legacy lexical preprocessor. See also
<http://blog.ashimagroup.net/2012/03/15/introducing-gloc-for-open-web-sh
ader-linking/>
and <http://www.youtube.com/watch?v=wQfvYBDJaMY#t=19m13s>. gloc is
written in OCaml and compiles into JavaScript. gloc runs on node.js as
well. gloc is BSD-licensed and a 1.1 release with a bunch of goodies
will land soon. glo 1.0 is already hyperlinked module metadata with
JSON and XML serializations.

I am concerned that Khronos and its member corporations (Google,
Mozilla ($300MM/yr from GOOG), Apple, nVidia, etc) are not good
stewards of Web standards and are, in fact, newspeaking the value of
the term "Web" to further their own short-sighted agendas. Is it evil
yet?

Your thoughts on these matters or my software or serialization formats
are warmly welcome. I have a good collection of various types of
hyper-references to declare...

Contributors are always welcome.

> A compelling reason for SGML, architectural forms and so on was/is to
keep semantics from being captured **by a language or company**.
Otherwise putting it in the language
>
> A) Inhibits innovation, the treacle effect of distribution.
>
> B) Inhibits access, see the Patent Wars.   There are some long brutal
threads on that topic somewhere in the W3C archives.
>
> This is why what Liam is suggesting is good advice.  Study all the
examples you can find, not just HTML and find the best way to express
those requirements without adopting something owned or locked up.  As
Liam says you aren't likely to get more support than that from this
community precisely because we do have experience.  We aren't
antithetical; but that is the way to get it accepted and it may be a
slow long slog.
>
> We have learned from hard experience that attempting to standardize or
create outside the legal umbrella of a consortium or other organization
with transparent norms guarantees capture if the affordances have value.
Again, life among the mammals.  You can't leave gold in the village
square without a wall or guards.  For something as important as this if
successful you absolutely must have that legal umbrella.  Otherwise it
will be captured or it will die and then be resurrected under different
norms, scrubbed of the names of the originators and a new army of orcs
will arise.

And if the village square is a gated community already? What are
transparent norms? What if capture contradicts dogma? Can a Gorilla
feel empathy from its mountain stronghold?

> Remember what orcs are made of.  Their souls aren't happy about it.

To Mt. Doom!

David

> len
>
> -----Original Message-----
> From: Rushforth, Peter [mailto:Peter.Rushforth <at> NRCan-RNCan.gc.ca]
> Sent: Friday, July 06, 2012 1:42 PM
> To: Len Bullard; John Cowan; Mike Sokolov
> Cc: David Lee; Michael Kay; xml-dev <at> lists.xml.org
> Subject: RE: [xml-dev] hypermedia affordances
>
>> HTML5 appears ready
>> to cast off all other applications to become "the one true Ark"  On
The
>> Web.  I think that makes it an easier target for sinking but....
>
> I think the problem with html is that it is trying to swallow the
semantics of the world inside text/html.
>
> I think the problem with xml is that it doesn't have hypermedia
affordances.  XML is complex because it needs to be in every environment
where semantics are necessary.
>
> The solution is to cooperate, IMHO.  Hypermedia affordances that we
can all live with would be a good start.
>
> Where is Gandalf when you need him?!
>
> Peter
>
>
_______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 13 Jul 2012 18:02
Picon
Favicon

Re: hypermedia affordances

On Fri, 2012-07-06 at 15:34 -0700, David Sheets wrote:

> I am concerned that Khronos and its member corporations (Google,
> Mozilla ($300MM/yr from GOOG), Apple, nVidia, etc) are not good
> stewards of Web standards and are, in fact, newspeaking the value of
> the term "Web" to further their own short-sighted agendas. Is it evil
> yet?

I can't comment on the evil part (or probably shouldn't) but I can point
out that it doesn't cost anything at all to start a W3C Community Group
[1] and is relatively inexpensive to start a W3C industry-specific
"Business Group" too.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Co-author, 5th edition of Beginning XML, Wrox, July 2012

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 6 Jul 2012 19:59

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

BillClare3 <at> aol.com scripsit:

> 2.  It seems clear  that this not meant as a markup language.  

On the contrary, James says explicitly that one of the virtues of MicroXML
is that if you take a document that is both well-formed MicroXML and valid
against a suitable schema, you guarantee that it is also valid HTML5.
Such a document is both processable by all the facilities available
for XML documents, and guaranteed to be renderable by an HTML5 browser
without further down-translation.

I de-emphasized this use case in my SD Times interview, but it's a
perfectly realistic one.

> .  Fundamental simplicity is  achievable by eliminating attributes
> (with greater potential for simplifying  schema), simplifying relative
> URI’s, and severely sub-setting the characters  sets allowed (except
> where needed for URI’ s).  This simplicity would also greatly
> simplify  schema validation.  But I suspect the simplicity route is
> already  lost to JSON and to the myriad tools that generate and edit
> XML for neophytes.  Also, such radical surgery raises  issues of what
> can still be called XML.

Indeed.  I have attempted to position MicroXML as complementary to JSON
and interoperable with it, rather than a competitor of any sort.

But the complexities of Unicode are for the most part the complexities
of the real world of writing as it exists.  If we fix a single encoding
(UTF-8), and we strongly recommend a single normalization form (NFC),
then the complexity that remains reflects the complex history of writing
systems in all their hair.

As for schema validation, my intention with MicroLark is to package an
Examplotron validator with it.  Schema languages don't get much simpler
than Examplotron, and it is defined in terms of RELAX NG, so its
design is more sophisticated than it looks.

--

-- 
But that, he realized, was a foolish            John Cowan
thought; as no one knew better than he          cowan <at> ccil.org
that the Wall had no other side.                http://www.ccil.org/~cowan
        --Arthur C. Clarke, "The Wall of Darkness"

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 13 Jul 2012 17:07
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


If PIs are not available, this will likely eliminate MicroXML as a
markup language for composition intensive applications where
content-tagged structures such as Notes, Cautions and Warnings must by
specification be bound to the same page.  IOW, it and any applications
using it are pretty much shut out of the mil-technical manual business
because this kind of information is out-of-band and often denoted by
PIs.

For example:

<?pub _newline?>
<?pub _newpage?>

Some rather large organizations would have to rewrite applications and
convert large datasets.  For those organizations, the decision to remain
with XML is made for them.

Not a problem, I think, simply advisory.  If XSL-FOs, etc., are being
deprecated, MicroXML is low on the list of challenges to be faced as W3C
specifications become more insular with regard to their application
domains or in plain English, not all information of strategic importance
is on the web nor will it be.

len

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 13 Jul 2012 17:38

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Len Bullard scripsit:

> If PIs are not available, this will likely eliminate MicroXML as a
> markup language for composition intensive applications where
> content-tagged structures such as Notes, Cautions and Warnings must by
> specification be bound to the same page.  IOW, it and any applications
> using it are pretty much shut out of the mil-technical manual business
> because this kind of information is out-of-band and often denoted by
> PIs.

I came to the same conclusions, and compromised:

1) PIs are in the syntax, but not in the data model.  In MicroLark,
if you want them, you have to use the pull or the push parser, because
the tree parser ignores them.  There's even a switch to turn them into
fatal errors, if you decide you really don't want to deal with them.

2) Syntactically they have to look like start-tags except for the
<? and ?>.  That was pragmatic: there are a lot of widely used PIs that
already look like that, and it made parsing them trivial.  They are
reported with the pseudo-attributes already nicely parsed.

> For example:
> 
> <?pub _newline?>

<?pub _newline="yes"?>, or perhaps even <?pub _line="new"?>.

> Some rather large organizations would have to rewrite applications and
> convert large datasets.  For those organizations, the decision to remain
> with XML is made for them.

Indeed, and so it should be.  People who were heavily invested in SGML
didn't throw it all away and convert to XML, not if they were rational
economic actors.  As they needed to modernize their systems, they may
have redesigned them on an XML base.

-- 
John Cowan    http://www.ccil.org/~cowan   <cowan <at> ccil.org>
    "Any legal document draws most of its meaning from context.  A telegram
    that says 'SELL HUNDRED THOUSAND SHARES IBM SHORT' (only 190 bits in
    5-bit Baudot code plus appropriate headers) is as good a legal document
    as any, even sans digital signature." --me

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 13 Jul 2012 17:45
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Correct.  Some of the document types I handle are still SGML though the
larger sets are XML.

It's a cost over functionality available by market and distribution
problem.  My intuition is just as IETM classes pushed some to adopt
aspects of web technology, the desire to use the phone/tablet technology
will also push re-fielding glacially.  This is where the bet on markup
once again pays off as long as the feature sets are understood and
factored into other concerns such as security.

len

-----Original Message-----
From: John Cowan [mailto:cowan <at> ccil.org] On Behalf Of John Cowan
Sent: Friday, July 13, 2012 10:38 AM
To: Len Bullard
Cc: xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of ...

Len Bullard scripsit:

> If PIs are not available, this will likely eliminate MicroXML as a
> markup language for composition intensive applications where
> content-tagged structures such as Notes, Cautions and Warnings must by
> specification be bound to the same page.  IOW, it and any applications
> using it are pretty much shut out of the mil-technical manual business
> because this kind of information is out-of-band and often denoted by
> PIs.

I came to the same conclusions, and compromised:

1) PIs are in the syntax, but not in the data model.  In MicroLark,
if you want them, you have to use the pull or the push parser, because
the tree parser ignores them.  There's even a switch to turn them into
fatal errors, if you decide you really don't want to deal with them.

2) Syntactically they have to look like start-tags except for the
<? and ?>.  That was pragmatic: there are a lot of widely used PIs that
already look like that, and it made parsing them trivial.  They are
reported with the pseudo-attributes already nicely parsed.

> For example:
> 
> <?pub _newline?>

<?pub _newline="yes"?>, or perhaps even <?pub _line="new"?>.

> Some rather large organizations would have to rewrite applications and
> convert large datasets.  For those organizations, the decision to
remain
> with XML is made for them.

Indeed, and so it should be.  People who were heavily invested in SGML
didn't throw it all away and convert to XML, not if they were rational
economic actors.  As they needed to modernize their systems, they may
have redesigned them on an XML base.

-- 
John Cowan    http://www.ccil.org/~cowan   <cowan <at> ccil.org>
    "Any legal document draws most of its meaning from context.  A
telegram
    that says 'SELL HUNDRED THOUSAND SHARES IBM SHORT' (only 190 bits in
    5-bit Baudot code plus appropriate headers) is as good a legal
document
    as any, even sans digital signature." --me

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

James Clark | 15 Jul 2012 06:24

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Fri, Jul 13, 2012 at 10:38 PM, John Cowan <cowan <at> mercury.ccil.org> wrote:

> I ... compromised:
>
> 1) PIs are in the syntax, but not in the data model.  In MicroLark,
> if you want them, you have to use the pull or the push parser, because
> the tree parser ignores them.  There's even a switch to turn them into
> fatal errors, if you decide you really don't want to deal with them.
>
> 2) Syntactically they have to look like start-tags except for the
> <? and ?>.  That was pragmatic: there are a lot of widely used PIs that
> already look like that, and it made parsing them trivial.  They are
> reported with the pseudo-attributes already nicely parsed.

This is the one part of your current editor's draft that I strongly
disagree with.

Your draft says:

"PIs are not part of the MicroXML data model, but processors SHOULD
make them available to the application."

But surely the data model should be the canonical way that processors
make information the available to the application.

If MicroXML users can't rely on getting PI information out from
processors, then they can't rely on PIs to encode significant
information, which makes PIs of little use.

But if you put arbitrary PIs in the data model, you are, of course,
significantly complicating things (going from 2 kinds of content to
3).

The start-tag syntax restriction also means you can't encode arbitrary
XML infosets.

> I think you need support for the xml-stylesheet PI if you are going to
> support MicroXML on the Web other than MicroXML + HTML5.

I find that a much more compelling use case.

The compromise I suggest is this:

- allow PIs only before the root element (and perhaps only before the
DOCTYPE if there is one), probably with the start-tag syntax
restriction

- put them in the data model, so your formal data model represents
documents by a <pi-list, element> pair (I would similarly describe an
element as a <name, attributes, content> triple), where the pi-list is
a list of elements

In terms of the JSON encoding, I would suggest the following:

- encode elements differently: an element is represented by a JSON
object, with each attribute represented as a property of the object;
the element name and content would be represented by properties whose
name starts with "$", so  that are not legal XML names but are legal
JavaScript identifiers eg $name/$content or something shorter.

- encode PIs before the root element as a "$" prefixed property of the
root element eg $pi

- consider adding DOCTYPE to the data model as well using similar
techniques (not sure about this, but it's going to be difficult for
serializers to know whether to output a DOCTYPE otherwise)

I think this gives an encoding which is quite natural and makes it
easy to ignore PIs.

James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

James Clark | 15 Jul 2012 06:45

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

I wonder whether it might be worth starting a W3C Community Group to
hash out these sort of issues and try to produce a spec that has some
degree of consensus.

James

On Sun, Jul 15, 2012 at 11:24 AM, James Clark <jjc <at> jclark.com> wrote:
> On Fri, Jul 13, 2012 at 10:38 PM, John Cowan <cowan <at> mercury.ccil.org> wrote:
>
>> I ... compromised:
>>
>> 1) PIs are in the syntax, but not in the data model.  In MicroLark,
>> if you want them, you have to use the pull or the push parser, because
>> the tree parser ignores them.  There's even a switch to turn them into
>> fatal errors, if you decide you really don't want to deal with them.
>>
>> 2) Syntactically they have to look like start-tags except for the
>> <? and ?>.  That was pragmatic: there are a lot of widely used PIs that
>> already look like that, and it made parsing them trivial.  They are
>> reported with the pseudo-attributes already nicely parsed.
>
> This is the one part of your current editor's draft that I strongly
> disagree with.
>
> Your draft says:
>
> "PIs are not part of the MicroXML data model, but processors SHOULD
> make them available to the application."
>
> But surely the data model should be the canonical way that processors
> make information the available to the application.
>
> If MicroXML users can't rely on getting PI information out from
> processors, then they can't rely on PIs to encode significant
> information, which makes PIs of little use.
>
> But if you put arbitrary PIs in the data model, you are, of course,
> significantly complicating things (going from 2 kinds of content to
> 3).
>
> The start-tag syntax restriction also means you can't encode arbitrary
> XML infosets.
>
>> I think you need support for the xml-stylesheet PI if you are going to
>> support MicroXML on the Web other than MicroXML + HTML5.
>
> I find that a much more compelling use case.
>
> The compromise I suggest is this:
>
> - allow PIs only before the root element (and perhaps only before the
> DOCTYPE if there is one), probably with the start-tag syntax
> restriction
>
> - put them in the data model, so your formal data model represents
> documents by a <pi-list, element> pair (I would similarly describe an
> element as a <name, attributes, content> triple), where the pi-list is
> a list of elements
>
> In terms of the JSON encoding, I would suggest the following:
>
> - encode elements differently: an element is represented by a JSON
> object, with each attribute represented as a property of the object;
> the element name and content would be represented by properties whose
> name starts with "$", so  that are not legal XML names but are legal
> JavaScript identifiers eg $name/$content or something shorter.
>
> - encode PIs before the root element as a "$" prefixed property of the
> root element eg $pi
>
> - consider adding DOCTYPE to the data model as well using similar
> techniques (not sure about this, but it's going to be difficult for
> serializers to know whether to output a DOCTYPE otherwise)
>
> I think this gives an encoding which is quite natural and makes it
> easy to ignore PIs.
>
> James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 15 Jul 2012 11:27
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

James,

I think that's a great idea!  Count me in.

Peter

P.S. Nice to see you here again :-)
________________________________________
From: James Clark [jjc <at> jclark.com]
Sent: July 15, 2012 12:45 AM
To: John Cowan
Cc: xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of ...

I wonder whether it might be worth starting a W3C Community Group to
hash out these sort of issues and try to produce a spec that has some
degree of consensus.

James

On Sun, Jul 15, 2012 at 11:24 AM, James Clark <jjc <at> jclark.com> wrote:
> On Fri, Jul 13, 2012 at 10:38 PM, John Cowan <cowan <at> mercury.ccil.org> wrote:
>
>> I ... compromised:
>>
>> 1) PIs are in the syntax, but not in the data model.  In MicroLark,
>> if you want them, you have to use the pull or the push parser, because
>> the tree parser ignores them.  There's even a switch to turn them into
>> fatal errors, if you decide you really don't want to deal with them.
>>
>> 2) Syntactically they have to look like start-tags except for the
>> <? and ?>.  That was pragmatic: there are a lot of widely used PIs that
>> already look like that, and it made parsing them trivial.  They are
>> reported with the pseudo-attributes already nicely parsed.
>
> This is the one part of your current editor's draft that I strongly
> disagree with.
>
> Your draft says:
>
> "PIs are not part of the MicroXML data model, but processors SHOULD
> make them available to the application."
>
> But surely the data model should be the canonical way that processors
> make information the available to the application.
>
> If MicroXML users can't rely on getting PI information out from
> processors, then they can't rely on PIs to encode significant
> information, which makes PIs of little use.
>
> But if you put arbitrary PIs in the data model, you are, of course,
> significantly complicating things (going from 2 kinds of content to
> 3).
>
> The start-tag syntax restriction also means you can't encode arbitrary
> XML infosets.
>
>> I think you need support for the xml-stylesheet PI if you are going to
>> support MicroXML on the Web other than MicroXML + HTML5.
>
> I find that a much more compelling use case.
>
> The compromise I suggest is this:
>
> - allow PIs only before the root element (and perhaps only before the
> DOCTYPE if there is one), probably with the start-tag syntax
> restriction
>
> - put them in the data model, so your formal data model represents
> documents by a <pi-list, element> pair (I would similarly describe an
> element as a <name, attributes, content> triple), where the pi-list is
> a list of elements
>
> In terms of the JSON encoding, I would suggest the following:
>
> - encode elements differently: an element is represented by a JSON
> object, with each attribute represented as a property of the object;
> the element name and content would be represented by properties whose
> name starts with "$", so  that are not legal XML names but are legal
> JavaScript identifiers eg $name/$content or something shorter.
>
> - encode PIs before the root element as a "$" prefixed property of the
> root element eg $pi
>
> - consider adding DOCTYPE to the data model as well using similar
> techniques (not sure about this, but it's going to be difficult for
> serializers to know whether to output a DOCTYPE otherwise)
>
> I think this gives an encoding which is quite natural and makes it
> easy to ignore PIs.
>
> James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

James Clark | 15 Jul 2012 06:53

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

I forgot to mention one other point.

I think there are many situations where it would be useful to have a
single byte stream contain a sequence of MicroXML documents, eg log
files or XMPP-like applications.  If you allow PIs both before and
after the root element, you can't unambiguously parse such a byte
stream because you don't know whether a PI between two root elements
goes with the preceding or following element.

James

On Sun, Jul 15, 2012 at 11:24 AM, James Clark <jjc <at> jclark.com> wrote:
> On Fri, Jul 13, 2012 at 10:38 PM, John Cowan <cowan <at> mercury.ccil.org> wrote:
>
>> I ... compromised:
>>
>> 1) PIs are in the syntax, but not in the data model.  In MicroLark,
>> if you want them, you have to use the pull or the push parser, because
>> the tree parser ignores them.  There's even a switch to turn them into
>> fatal errors, if you decide you really don't want to deal with them.
>>
>> 2) Syntactically they have to look like start-tags except for the
>> <? and ?>.  That was pragmatic: there are a lot of widely used PIs that
>> already look like that, and it made parsing them trivial.  They are
>> reported with the pseudo-attributes already nicely parsed.
>
> This is the one part of your current editor's draft that I strongly
> disagree with.
>
> Your draft says:
>
> "PIs are not part of the MicroXML data model, but processors SHOULD
> make them available to the application."
>
> But surely the data model should be the canonical way that processors
> make information the available to the application.
>
> If MicroXML users can't rely on getting PI information out from
> processors, then they can't rely on PIs to encode significant
> information, which makes PIs of little use.
>
> But if you put arbitrary PIs in the data model, you are, of course,
> significantly complicating things (going from 2 kinds of content to
> 3).
>
> The start-tag syntax restriction also means you can't encode arbitrary
> XML infosets.
>
>> I think you need support for the xml-stylesheet PI if you are going to
>> support MicroXML on the Web other than MicroXML + HTML5.
>
> I find that a much more compelling use case.
>
> The compromise I suggest is this:
>
> - allow PIs only before the root element (and perhaps only before the
> DOCTYPE if there is one), probably with the start-tag syntax
> restriction
>
> - put them in the data model, so your formal data model represents
> documents by a <pi-list, element> pair (I would similarly describe an
> element as a <name, attributes, content> triple), where the pi-list is
> a list of elements
>
> In terms of the JSON encoding, I would suggest the following:
>
> - encode elements differently: an element is represented by a JSON
> object, with each attribute represented as a property of the object;
> the element name and content would be represented by properties whose
> name starts with "$", so  that are not legal XML names but are legal
> JavaScript identifiers eg $name/$content or something shorter.
>
> - encode PIs before the root element as a "$" prefixed property of the
> root element eg $pi
>
> - consider adding DOCTYPE to the data model as well using similar
> techniques (not sure about this, but it's going to be difficult for
> serializers to know whether to output a DOCTYPE otherwise)
>
> I think this gives an encoding which is quite natural and makes it
> easy to ignore PIs.
>
> James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 15 Jul 2012 15:44

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

> I forgot to mention one other point.
> 
> I think there are many situations where it would be useful to have a
> single byte stream contain a sequence of MicroXML documents, eg log
> files or XMPP-like applications.  If you allow PIs both before and
> after the root element, you can't unambiguously parse such a byte
> stream because you don't know whether a PI between two root elements
> goes with the preceding or following element.
> 
> James
> 

I started a few years ago working on some kind of spec/proposal to allow sequences of XDM.
I think suporting sequences of MicroXML would fit well with this.
But I came to the conclusion that to support streams of XDM (or XML ) that there needs to be
a separator or start or end character (or all 3) which is invalid in XML and any text serialized XDM.
This allows layering of processing so that the code that recognizes the units don't have to be include full
XML parsers.
This allows you to write things like cat, split, head ,  NofM extract etc with very simple code that doesnt
need to be XML aware.

http://xml.calldei.com/XDMSerialize

I'm still debating on the details, in particular if there really needs to be a "KIND" enumerator or if "duck
typing" can be used.
I plan on implementing something like this in xmlsh and would love to add MicroXML as an option.
In fact if MicroXML is to be fully supported in XML then ideally it should be parsable into XDM.   Then I can
still use Saxon Xdm as the 
data model and MicroXML as simply an alternative text format.
I recall that a goal of MicroXML is that it be readable by a full XML parser.  But I have not followed the
discussions enough to determine
if it can be parsed into XDM ... and how similar the result would be if the same text stream were parsed as XML
into XDM.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 15 Jul 2012 16:12
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David,

>I recall that a goal of MicroXML is that it be readable by a full XML parser.  But I have not followed the
discussions enough to >determine if it can be parsed into XDM ... and how similar the result would be if the
same text stream were parsed as XML into >XDM.

I was hoping MicroXML was going to get rid of namespaces.  Are namespaces part of the XDM such that they would
have to be included?  I would not have thought so, but these parser things seem to be pretty delicate beasts.

Peter
________________________________________
From: David Lee [dlee <at> calldei.com]
Sent: July 15, 2012 9:44 AM
To: James Clark; John Cowan
Cc: xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of ...

> I forgot to mention one other point.
>
> I think there are many situations where it would be useful to have a
> single byte stream contain a sequence of MicroXML documents, eg log
> files or XMPP-like applications.  If you allow PIs both before and
> after the root element, you can't unambiguously parse such a byte
> stream because you don't know whether a PI between two root elements
> goes with the preceding or following element.
>
> James
>

I started a few years ago working on some kind of spec/proposal to allow sequences of XDM.
I think suporting sequences of MicroXML would fit well with this.
But I came to the conclusion that to support streams of XDM (or XML ) that there needs to be
a separator or start or end character (or all 3) which is invalid in XML and any text serialized XDM.
This allows layering of processing so that the code that recognizes the units don't have to be include full
XML parsers.
This allows you to write things like cat, split, head ,  NofM extract etc with very simple code that doesnt
need to be XML aware.

http://xml.calldei.com/XDMSerialize

I'm still debating on the details, in particular if there really needs to be a "KIND" enumerator or if "duck
typing" can be used.
I plan on implementing something like this in xmlsh and would love to add MicroXML as an option.
In fact if MicroXML is to be fully supported in XML then ideally it should be parsable into XDM.   Then I can
still use Saxon Xdm as the
data model and MicroXML as simply an alternative text format.
I recall that a goal of MicroXML is that it be readable by a full XML parser.  But I have not followed the
discussions enough to determine
if it can be parsed into XDM ... and how similar the result would be if the same text stream were parsed as XML
into XDM.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 15 Jul 2012 16:32

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

> 
> >I recall that a goal of MicroXML is that it be readable by a full XML parser.
> But I have not followed the discussions enough to >determine if it can be
> parsed into XDM ... and how similar the result would be if the same text
> stream were parsed as XML into >XDM.
> 
> I was hoping MicroXML was going to get rid of namespaces.  Are namespaces
> part of the XDM such that they would have to be included?  I would not have
> thought so, but these parser things seem to be pretty delicate beasts.
> 
> Peter

Namespaces are 'part' of XDM but they can be empty.  So in theory MicroXML with no namespaces might fit in an
XDM Model.

From the reading of the evolving commentary I am not sure if a 'real' XML parser could actually read MicroXML ...
if it ran across namespacy like things like <foo:bar/>  without an associated namespace declaration.
However ... a MicroXML Parser could read such a thing and possibly construct an XDM model with  it.
But what would the localname be ? "foo:bar" ?  Not a valid NCName ... "bar" ? but no namespace node ?
Would XSLT and XQuery be able to process the XDM produced by a MicroXML parser ?
I would hope so otherwise MicroXML will have to stay its own island like JSON.  In which case why even bother
making it look like XML?

I admit I have not kept up with the MicroXML "specs" to know if even <foo:bar/> is valid MicroXML ... let alone
to consider
how it would be converted to XDM.   

But this latest series of discussions has me interested.

-David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 15 Jul 2012 16:57
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


David,

>I would hope so otherwise MicroXML will have to stay its own island like JSON.  In which case why even bother
making it look like XML?

Exactly.  Simplify XML, via a profile.  "Full, fat XML" is still necessary, and useful.  Simplified XML could
work where XML itself might not be a good fit.  What goes in the profile?  The minimum possible.  It should be
backwards compatible, though, so XQuery and XSLT can work with it.

>I admit I have not kept up with the MicroXML "specs" to know if even <foo:bar/> is valid MicroXML ... let
alone to consider
how it would be converted to XDM.

I think that just eliminating <foo:bar/> in favour of <bar/> would work.

>But this latest series of discussions has me interested.

Me too.

Peter
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 15 Jul 2012 17:07

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

I think its time for a community group , were cooking with gas now lets not get burned

> 
> >But this latest series of discussions has me interested.
> 
> Me too.
> 
> Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Sokolov | 15 Jul 2012 17:57
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On 7/15/2012 10:32 AM, David Lee wrote:
>> Namespaces are 'part' of XDM but they can be empty.  So in theory MicroXML with no namespaces might fit in an
XDM Model.
>>
>>  From the reading of the evolving commentary I am not sure if a 'real' XML parser could actually read
MicroXML ...
>> if it ran across namespacy like things like <foo:bar/>  without an associated namespace declaration.
>> However ... a MicroXML Parser could read such a thing and possibly construct an XDM model with  it.
>> But what would the localname be ? "foo:bar" ?  Not a valid NCName ... "bar" ? but no namespace node ?
>>
You can do all sorts of rational things here if you're willing to give 
up interoperability with XDM delivered from namespace-aware XML 
parsers.  In my personal view, I like the idea of making the localname 
"bar" and the namespace "foo".  Then you can keep the NCName/QName types 
in the data model, you don't lose any information, but you just ignore 
all the problems with namespace fixup, the need to carry around in-scope 
namespace prefixes and so on, and the context-dependence of the prefixes.

There's a kind of downgrading model for interoperating with older 
parsers.  If you know you're getting XDM coming in from an old parser, 
you simply run a utility over it sets each QName's namespace to be its 
prefix.

Then as long as your prefixes are globally unique, you're happy.  or you 
just redefine your expectations such that the significant piece of 
information is the prefix.  It would be interesting to see what that 
breaks.  But it means pushing this knowledge about new namespace 
handling into layers beyond the parser: you have to own the whole stack, 
I think, so it's not really a tenable stance for tool vendors?

-Mike

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 15 Jul 2012 21:56

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Rushforth, Peter scripsit:

> I was hoping MicroXML was going to get rid of namespaces.

It does and it doesn't.  The MicroXML data model knows nothing of
namespaces.  However, attributes are permitted to have prefixes in my
draft (to which James has not raised a serious objection).  So it's up to
the application if it wants to interpret element names and/or attribute
names as referring to QNames.  The MicroLark API for Element class has
some convenience methods for returning the namespace URI associated with
either an element or an attribute.

> Are namespaces part of the XDM such that they would have to be included?  

If a document is not namespace-valid per the XML Namespace rec, it does not
have an XDM, but is still well-formed XML.

-- 
Why are well-meaning Westerners so concerned that   John Cowan
the opening of a Colonel Sanders in Beijing means   cowan <at> ccil.org
the end of Chinese culture? [...]  We have had      http://www.ccil.org/~cowan
Chinese restaurants in America for over a century,
and it hasn't made us Chinese.  On the contrary,
we obliged the Chinese to invent chop suey.            --Marshall Sahlins

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 15 Jul 2012 21:50

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David Lee scripsit:

> In fact if MicroXML is to be fully supported in XML then ideally it
> should be parsable into XDM.   Then I can still use Saxon Xdm as the
> data model and MicroXML as simply an alternative text format.

Every well-formed MicroXML document is a well-formed XML document.
Therefore, MicroXML is parsable into XDM under the same circumstances
as full XML, namely that it must also be namespace-valid.

> I recall that a goal of MicroXML is that it be readable by a full XML
> parser.  But I have not followed the discussions enough to determine
> if it can be parsed into XDM ... and how similar the result would be
> if the same text stream were parsed as XML into XDM.

The only difference is the treatment of line endings inside attribute
values, which are left alone in MicroXML and converted into spaces in
full XML.

--

-- 
Do I contradict myself?                         John Cowan
Very well then, I contradict myself.            cowan <at> ccil.org
I am large, I contain multitudes.               http://www.ccil.org/~cowan
        --Walt Whitman, Leaves of Grass

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 16 Jul 2012 10:21
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...


On 15/07/2012 14:44, David Lee wrote:
>> I forgot to mention one other point.
>>
>> I think there are many situations where it would be useful to have a
>> single byte stream contain a sequence of MicroXML documents, eg log
>> files or XMPP-like applications.  If you allow PIs both before and
>> after the root element, you can't unambiguously parse such a byte
>> stream because you don't know whether a PI between two root elements
>> goes with the preceding or following element.
>>
>> James
>>
> I started a few years ago working on some kind of spec/proposal to allow sequences of XDM.
> I think suporting sequences of MicroXML would fit well with this.
> But I came to the conclusion that to support streams of XDM (or XML ) that there needs to be
> a separator or start or end character (or all 3) which is invalid in XML and any text serialized XDM.
>

What's wrong with an XML declaration as the separator?

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 14:19

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

> 
> What's wrong with an XML declaration as the separator?
> 
> Michael Kay
> Saxonica
> 
> 

I believe 
<?xml ... ?>
can be within a CDATA section ....

My goal is to be able to easily identify separations between units without having to parse everything.
So far I have tried to define the syntax without actually choosing the separator as it is largely arbitrary
*as long as it is impossible to show up in the plain text of any serialized XDM value*

Unfortunately those pesky CDATA sections make the set of charactors fairly small.
Now one could restrict CDATA and require serialized XML (or elements ...) to use entity expansion instead.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 16 Jul 2012 14:30
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On 16/07/2012 13:19, David Lee wrote:
> So far I have tried to define the syntax without actually choosing the separator as it is largely arbitrary
> *as long as it is impossible to show up in the plain text of any serialized XDM value*
>
> Unfortunately those pesky CDATA sections make the set of charactors fairly small.

But isn't that exactly what the control characters are for, eg

U+000C FORM FEED
or
U+001F INFORMATION SEPARATOR ONE

But you still have to know the text encoding (unless you fix that it is 
always (say) utf-8). Otherwise any byte could appear anywhere.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 14:51

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


> -----Original Message-----
> From: David Carlisle [mailto:davidc <at> nag.co.uk]
> Sent: Monday, July 16, 2012 8:31 AM
> To: David Lee
> Cc: xml-dev <at> lists.xml.org
> Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
> principles of ...
> 
> On 16/07/2012 13:19, David Lee wrote:
> > So far I have tried to define the syntax without actually choosing the
> separator as it is largely arbitrary
> > *as long as it is impossible to show up in the plain text of any serialized
> XDM value*
> >
> > Unfortunately those pesky CDATA sections make the set of charactors fairly
> small.
> 
> But isn't that exactly what the control characters are for, eg
> 
> U+000C FORM FEED
> or
> U+001F INFORMATION SEPARATOR ONE
> 
> But you still have to know the text encoding (unless you fix that it is
> always (say) utf-8). Otherwise any byte could appear anywhere.
> 
> 
> David
> 

I am not sure if that is what control characters are "for" --- they are an ASCII invention and were "for"
control of actual hardware and in a very real sense make no sense in an XML world.   But , they can be *used* for
this ... and probably best so.    Or maybe the creators of Unicode really did imagine them in a new role in the
Unicode world to outlive their old context or why would they bother adding them to Unicode (and why did XML
Exclude them ?) They dont have glyphs  which is interesting for Unicode.
I keep looking for some magic string that is more easy to insert in a plain text editor (try getting a 0x1F into
a text document with VI or Notepad).
But some things have to give.    I have yet to find ANY character or string which could be in a plain XML document
at the beginning or the end and not cause an XML processor to crash (except BOM) so my fantasy of having 
A) sequence of one document represented the same as a single document , AND
B) concatenation of single documents producing sequences  AND 
C) a single document being readable as XML 

is not viable.   But sometimes not all your wishes can come true. I have only found a way of having any 2 of the
above but not 3.
( Note: substitute XML with XDM above I am trying to solve sequences of arbitrary XDM as well as XML documents
- not fully but at least enough to 
represent their values and types - which means I need to distinguish between documents and elements,
strings and numbers etc,
but the concept is still valid with XML documents).

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Carlisle | 16 Jul 2012 15:05
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On 16/07/2012 13:51, David Lee wrote:
> A) sequence of one document represented the same as a single document , AND
> B) concatenation of single documents producing sequences  AND
> C) a single document being readable as XML

well...

I think the string

<?xml version="1.0"?><!--]]>]]>-->

can only appear at the start of an XML document and can not appear in 
element or attribute content nor in comments or cdata sections.

David

 > (try getting a 0x1F into a text document with VI or Notepad).
both those editors fail the "is it emacs" test.

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 15:16

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

> On 16/07/2012 13:51, David Lee wrote:
> > A) sequence of one document represented the same as a single document ,
> AND
> > B) concatenation of single documents producing sequences  AND
> > C) a single document being readable as XML
> 
> 
> well...
> 
> I think the string
> 
> 
> <?xml version="1.0"?><!--]]>]]>-->
> 
> 
> can only appear at the start of an XML document and can not appear in
> element or attribute content nor in comments or cdata sections.
> 

True but if the document didnt *happen* to start like that the string would have to be inserted,
and thus break rule #3    
And if it DID start that way it and you didnt insert it then it  would break #A because you couldnt tell the
difference between the marker
and the start of an actual document.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 16 Jul 2012 22:17
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Mon, 2012-07-16 at 12:51 +0000, David Lee wrote:

> I keep looking for some magic string that is more easy to insert in a
> plain text editor (try getting a 0x1F into a text document with VI or
> Notepad).

Don't know about notepad; in vi, control-v in insert mode quotes the
next character, and 1F is control-underscore, so control-v control-_
will put it there, as will (in gnome terminal) control-v followed by
control-shift-u and then (keeping shift held down) any hex sequence, in
this case 1F, to enter the corresponding unicode character.

> I am trying to solve sequences of arbitrary XDM as well as XML
> documents

Then I think you want a single document containing an xdm-sequence
top-level element. If you want to preserve sequences of strings then you
need per-item markup.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of Beginning XML, Wroxx, 2012

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 16 Jul 2012 22:31
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

And if you are using MS Notepad instead of free Notepad++, I suggest you
switch to the latter.  XML support for editing is quite good when you
turn on XML mode.

len

-----Original Message-----
From: Liam R E Quin [mailto:liam <at> w3.org] 
Sent: Monday, July 16, 2012 3:18 PM
To: David Lee
Cc: xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of ...

On Mon, 2012-07-16 at 12:51 +0000, David Lee wrote:

> I keep looking for some magic string that is more easy to insert in a
> plain text editor (try getting a 0x1F into a text document with VI or
> Notepad).

Don't know about notepad; in vi, control-v in insert mode quotes the
next character, and 1F is control-underscore, so control-v control-_
will put it there, as will (in gnome terminal) control-v followed by
control-shift-u and then (keeping shift held down) any hex sequence, in
this case 1F, to enter the corresponding unicode character.

> I am trying to solve sequences of arbitrary XDM as well as XML
> documents

Then I think you want a single document containing an xdm-sequence
top-level element. If you want to preserve sequences of strings then you
need per-item markup.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of Beginning XML, Wroxx, 2012

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 16 Jul 2012 16:56
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Mon, Jul 16, 2012 at 6:30 AM, David Carlisle <davidc <at> nag.co.uk> wrote:

But isn't that exactly what the control characters are for, eg

U+000C FORM FEED
or
U+001F INFORMATION SEPARATOR ONE

But you still have to know the text encoding (unless you fix that it is always (say) utf-8). Otherwise any byte could appear anywhere.

MicroXML does fix the text encoding as UTF-8, but now I'm confused because I thought we were talking about the series-of-documents facility as a MicroXML adjunct, and the XML declaration and CDATA Sections have come up, neither of which are part of MicroXML. Is the proposal that these be added back (which I'd oppose), or has the topic changed more generally to series-of-documents for full XML?


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
David Lee | 16 Jul 2012 17:13

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Sorry for hijacking the thread.

I totally switched subjects to a similar one.

 

 

say) utf-8). Otherwise any byte could appear anywhere.

 

MicroXML does fix the text encoding as UTF-8, but now I'm confused because I thought we were talking about the series-of-documents facility as a MicroXML adjunct, and the XML declaration and CDATA Sections have come up, neither of which are part of MicroXML. Is the proposal that these be added back (which I'd oppose), or has the topic changed more generally to series-of-documents for full XML?

 

 

--       

Uche Ogbuji | 15 Jul 2012 16:25
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Sat, Jul 14, 2012 at 10:53 PM, James Clark <jjc <at> jclark.com> wrote:

I forgot to mention one other point.

I think there are many situations where it would be useful to have a
single byte stream contain a sequence of MicroXML documents, eg log
files or XMPP-like applications.

Yes, this is something I've long wished XML had. Of course there have been all the old, transport layer tricks such as separating them with form feed characters and having a pre-processor separating by that signal and sending them serially to a parser, but it would be useful to have a way to describe the parsing of such documents in XML terms.

 
 If you allow PIs both before and
after the root element, you can't unambiguously parse such a byte
stream because you don't know whether a PI between two root elements
goes with the preceding or following element.

I'm still mulling over your thoughts on PIs, and at first consideration your suggestions seem very sound, but I'm not sure about the document series use-case argument.  I would tend to think there should be some sort of separator. Since the DTDecls has been so greatly simplified, one could simply mandate that at the beginning of each document for the serial use-case. Or pick form feed or other such control character as a separator.

Sure without a separator, you would simply have an closing document tag switch the serial docs parser to a state of looking for new start tag, DTDecl, PI or end of stream, but I think an explicit separator would reduce the cases where what we would think of now as malformedness from user error winds up looking like an intentional sequence of two or more documents.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
David Lee | 15 Jul 2012 16:42

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


=====================  Uche says
Sure without a separator, you would simply have an closing document tag switch the serial docs parser to a
state of looking for new start tag, DTDecl, PI or end of stream, but I think an explicit separator would
reduce the cases where what we would think of now as malformedness from user error winds up looking like an
intentional sequence of two or more documents.
========

See my cross posted reference to 
http://xml.calldei.com/XDMSerialize

I had an "Ah Ha" Moment last week when I realized that the UTF8 BOM could serve as such a separator.
( I havent updated the above page to reflect this).

Why I stumbled on this is I had a concatenation of all things, a bunch of JSON documents in UTF8.
( in this case Twitter output) and they had UTF8 BOM at the beginning of each document but all in the same file.
I opened it in my favorite JSON reader app and Voila ! It opened just fine but only showed the first JSON document.
Then I realized that a use case I wanted for XDM Serialize is that a sequence of 1 take the same format as just 1,
Thus a single XML document (or any XDM value) would have the same serialized form as a sequence of 1 document.
This is somewhat tricky ... in conjunction with some other use cases. Such as the concatentation of 2
documents should produce 
a sequence of 2 documents.
Then I realized that if I used BOM as a separator it might actually work and plain XML parsers could read the
degenerate case of 1 document.
If every document started like
BOM <data>
BOM <data>

Then by themselves they are valid XML documents
If you concatenate them they become
BOM <data> BOM <data>

which a XDM Serialized capable parser could parse, and in some cases "dumb" parsers might just see this as 1
document and stop.

This also means you can concatenate arbitrary documents with 0 or more sequences without inspecting them
and without adding extra bytes.
And splitting, counting  document sequences requires only knowing how to read for BOM sequences.

Still its a bit of a misuse though but still I am intrieged.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 16 Jul 2012 23:43
Picon
Favicon

XDM serialization (was buried in microXML thread)

On Sun, 2012-07-15 at 14:42 +0000, David Lee wrote:

> See my cross posted reference to 
> http://xml.calldei.com/XDMSerialize

This also misses function items and other XDM 3 additions.

> I had an "Ah Ha" Moment last week when I realized that the UTF8 BOM could serve as such a separator.

You could use any string if you declared it, ala MIME conventions, and
had a way to escape it, and a way to escape the escape.  SGML and XML
get that sadly wrong, and even microxml, as an XML subset, can't grok
&#ddd; used as part of an element name.

You need a string that cannot occur in the middle of a document (out of
band) or one that can be escaped (in band, future-proof but more work)
or content-length (hard to stream) or a chunked encoding (pain to decode
but I think more promising). Maybe EXI could be made to work?

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 17 Jul 2012 00:32

RE: XDM serialization (was buried in microXML thread)

Thanks for reading and commenting Liam.
Yes function items are problematic and for a while I was so depressed I gave up on the dream of XDM Serialization.
But now I am more willing to compromise.   I think the value of supporting *many* XML types overweighs the
inability to support *all*.
For function items I think a subset could be serialized such as   fn:concat#2   ... but much like user defined
types which would only work if there was an in band or out of band schema,  arbitrary function items may
require full XQuery lying around or worse, whatever proprietary language instantiated it.  And thats not
even considering the in-scope (lambda) variable problem.

As for the delemiter strings,  yes I agree they could be nearly anything.  In fact I gave up arguing with myself
what they need to be and 
just defered that decision to later ... because  they are largely arbitrary as long as they meet the
constraints you give.
I still am on the fence as to predefining one or leaving them configurable.   Freedom vs 	responsibility !
I had not considered either content-length, chunking, or EXI
Food for thought ! Although I think any of those adds complexity (especially EXI ...)
Although I would be all for EXI being enhanced to support XDM ...
It just disappoints me greatly that XPath, XSLT, and XQuery have this great data model with no standardized
way of representing it.
Thus everyone just deals with Documents.   Like that is all there is ...   XDM is wonderfully rich ... but all the
XDM aware processors are stuck with proprietary only means of passing it around, which usually means it is
not passed around.   Even something as simple as a sequence of documents, or <gasp horrid> a sequence of
strings has no portable representation either in memory or serialized !
<rant rave rant rant rant rant >

Time for a beer

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

> -----Original Message-----
> From: Liam R E Quin [mailto:liam <at> w3.org]
> Sent: Monday, July 16, 2012 5:44 PM
> To: David Lee
> Cc: Uche Ogbuji; xml-dev <at> lists.xml.org
> Subject: XDM serialization (was buried in microXML thread)
> 
> On Sun, 2012-07-15 at 14:42 +0000, David Lee wrote:
> 
> > See my cross posted reference to
> > http://xml.calldei.com/XDMSerialize
> 
> This also misses function items and other XDM 3 additions.
> 
> > I had an "Ah Ha" Moment last week when I realized that the UTF8 BOM
> could serve as such a separator.
> 
> You could use any string if you declared it, ala MIME conventions, and
> had a way to escape it, and a way to escape the escape.  SGML and XML
> get that sadly wrong, and even microxml, as an XML subset, can't grok
> &#ddd; used as part of an element name.
> 
> You need a string that cannot occur in the middle of a document (out of
> band) or one that can be escaped (in band, future-proof but more work)
> or content-length (hard to stream) or a chunked encoding (pain to decode
> but I think more promising). Maybe EXI could be made to work?
> 
> Liam
> 
> --
> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> Pictures from old books: http://fromoldbooks.org/
> 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 17 Jul 2012 04:15
Picon
Favicon

RE: XDM serialization (was buried in microXML thread)

On Mon, 2012-07-16 at 22:32 +0000, David Lee wrote:
[...]
> For function items I think a subset could be serialized such as
> fn:concat#2   ... but much like user defined types which would only
> work if there was an in band or out of band schema,  arbitrary
> function items may require full XQuery lying around or worse, whatever
> proprietary language instantiated it.  And thats not even considering
> the in-scope (lambda) variable problem.

Note, function items are also part of XPath 3.

[...]

> I had not considered either content-length, chunking, or EXI
> Food for thought ! Although I think any of those adds complexity
> (especially EXI ...)
Yes, I can't say whether the complexity is worth while.

> Although I would be all for EXI being enhanced to support XDM ...

I also; the EXI WG chose to focus on their profile for
memory-constrained devices in this period of their work, but they are
ilkely to be rechartered in the New Year, so we'll see what TPAC brings.

> It just disappoints me greatly that XPath, XSLT, and XQuery have this
> great data model with no standardized way of representing it.

+1

Both Saxon and Qizx have proprietary ways to serialize it in XML.

> Time for a beer
Maybe at Balisage -)

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of Beginning XML, Wrox, July 2012.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 17 Jul 2012 10:12
Favicon
Gravatar

Re: RE: XDM serialization (was buried in microXML thread)


On 17/07/2012 03:15, Liam R E Quin wrote:
>
>> It just disappoints me greatly that XPath, XSLT, and XQuery have this
>> great data model with no standardized way of representing it.
> +1
>
> Both Saxon and Qizx have proprietary ways to serialize it in XML.
>
>

For Saxon: Nodes and atomic values, yes. But function items, no. That 
would be a significant challenge.

(Memo to self: allow serialization of maps...)

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 16 Jul 2012 03:36
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Sun, 2012-07-15 at 08:25 -0600, Uche Ogbuji wrote:
> On Sat, Jul 14, 2012 at 10:53 PM, James Clark <jjc <at> jclark.com> wrote:
[...]
> > single byte stream contain a sequence of MicroXML documents,

> Yes, this is something I've long wished XML had. Of course there have been
> all the old, transport layer tricks such as separating them with form feed
> characters and having a pre-processor separating by that signal and sending
> them serially to a parser, but it would be useful to have a way to describe
> the parsing of such documents in XML terms.

Maybe HTTP/2.0 (which Tim Bray reminds us is active) could have the
possibility of interleaving blocks of data from multiple streams, in
which case that might be a good place to address it.

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 15 Jul 2012 22:48

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

James Clark scripsit:

> But if you put arbitrary PIs in the data model, you are, of course,
> significantly complicating things (going from 2 kinds of content to
> 3).

What is worse, you go from Element objects to Document, PI, and Element
objects.

> The start-tag syntax restriction also means you can't encode arbitrary
> XML infosets.

True.

> - allow PIs only before the root element (and perhaps only before the
> DOCTYPE if there is one), probably with the start-tag syntax
> restriction

How about placing them under, rather than adjacent to, the root element?
There is no real semantic distinction between one and the other, and
that would eliminate the need for a separate Document object in the model.

> - encode elements differently: an element is represented by a JSON
> object, with each attribute represented as a property of the object;
> the element name and content would be represented by properties whose
> name starts with "$", so  that are not legal XML names but are legal
> JavaScript identifiers eg $name/$content or something shorter.

The content should be just $, I think.  But I really hate to introduce
yet another mapping from XML to JSON; at least the ones I document already
exist and have some support behind them.

> - encode PIs before the root element as a "$" prefixed property of the
> root element eg $pi

This corresponds to what I mentioned above.

> - consider adding DOCTYPE to the data model as well using similar
> techniques (not sure about this, but it's going to be difficult for
> serializers to know whether to output a DOCTYPE otherwise)

I think that should be an implementation-level switch rather than
something in the data model, since it depends on the context in which
the MicroXML document is to be consumed.

--

-- 
Ambassador Trentino: I've said enough. I'm a man of few words.
Rufus T. Firefly: I'm a man of one word: scram!
        --Duck Soup                     John Cowan <cowan <at> ccil.org>

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 16 Jul 2012 00:51
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Sun, Jul 15, 2012 at 2:48 PM, John Cowan <cowan <at> mercury.ccil.org> wrote:

> - allow PIs only before the root element (and perhaps only before the
> DOCTYPE if there is one), probably with the start-tag syntax
> restriction

How about placing them under, rather than adjacent to, the root element?
There is no real semantic distinction between one and the other, and
that would eliminate the need for a separate Document object in the model.


So syntactically they would, as James suggested, have to appear before the beginning of the root element, but they would be considered for data model purposes as an additional list on the root element object, and this generally reported after the attributes but before child content of the root element's start tag?


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
James Clark | 15 Jul 2012 05:31

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Fri, Jul 13, 2012 at 10:07 PM, Len Bullard <Len.Bullard <at> ses-i.com> wrote:
>
> If PIs are not available, this will likely eliminate MicroXML as a
> markup language for composition intensive applications where
> content-tagged structures such as Notes, Cautions and Warnings must by
> specification be bound to the same page.

Why can't you use elements or attributes for this?

Historically, in SGML days, the reason people used PIs for this was
because they needed to add processing-related stuff that their DTDs
didn't allow.  I would suggest the solution to the problem is more
flexible validation (or perhaps stylesheet) technologies rather than
PIs.

James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 15 Jul 2012 05:44

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

James Clark scripsit:

> Historically, in SGML days, the reason people used PIs for this was
> because they needed to add processing-related stuff that their DTDs
> didn't allow.  I would suggest the solution to the problem is more
> flexible validation (or perhaps stylesheet) technologies rather than
> PIs.

Thanks for signing in, James!

I think you need support for the xml-stylesheet PI if you are going to
support MicroXML on the Web other than MicroXML + HTML5.  That's why I
added support for them to MicroLark.

-- 
John Cowan  cowan <at> ccil.org  http://ccil.org/~cowan
And now here I was, in a country where a right to say how the country should
be governed was restricted to six persons in each thousand of its population.
For the nine hundred and ninety-four to express dissatisfaction with the
regnant system and propose to change it, would have made the whole six
shudder as one man, it would have been so disloyal, so dishonorable, such
putrid black treason.  --Mark Twain's Connecticut Yankee

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 15 Jul 2012 22:10
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

I agree.  It is a tooling issue (e.g., the ubiquity of Arbor Text, Microsoft
and Adobe in mil-spec logistics organizations) and as you say, a DTD issue
with large extant instances.

In both cases, moving on to better designs is also advised, but this is the
current state of the records. Cost over utility, of course, but also
procurement sources must make and publish plans for near and medium term
fielding of new consumer devices and phasing out older systems with
conversions.  

As I said my comment is advisory.  To be fair, the multiplicity of standards
making and consortia sources and a lack of coherence in their directions
makes this a wee bit more daunting than in the days of SGML when at least
ISO was the dominant source.

As John said, thanks for taking time to comment, James.

len

-----Original Message-----
From: James Clark [mailto:jjc <at> jclark.com] 
Sent: Saturday, July 14, 2012 10:32 PM
To: Len Bullard
Cc: John Cowan; xml-dev <at> lists.xml.org
Subject: Re: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic
principles of ...

On Fri, Jul 13, 2012 at 10:07 PM, Len Bullard <Len.Bullard <at> ses-i.com> wrote:
>
> If PIs are not available, this will likely eliminate MicroXML as a
> markup language for composition intensive applications where
> content-tagged structures such as Notes, Cautions and Warnings must by
> specification be bound to the same page.

Why can't you use elements or attributes for this?

Historically, in SGML days, the reason people used PIs for this was
because they needed to add processing-related stuff that their DTDs
didn't allow.  I would suggest the solution to the problem is more
flexible validation (or perhaps stylesheet) technologies rather than
PIs.

James

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 16 Jul 2012 01:30
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Sun, 2012-07-15 at 15:10 -0500, Len Bullard wrote:
> I agree.  It is a tooling issue (e.g., the ubiquity of Arbor Text, Microsoft
> and Adobe in mil-spec logistics organizations) and as you say, a DTD issue
> with large extant instances.

Sometimes I'm still sad that SoftQuad Author/Editor isn't there too.

> As I said my comment is advisory.  To be fair, the multiplicity of standards
> making and consortia sources and a lack of coherence in their directions
> makes this a wee bit more daunting than in the days of SGML when at least
> ISO was the dominant source.

It's a pain, I agree; I'm not sure how to break past the Balkan States
of Standardization Organizations, the fiefdoms of focus.

Going back to processing instructions, some of the uses are served just
as well with comments, some, like <?php...?>, won't work at all with the
current µXML proposal, some would be better with elements - in XML these
days one might simply say, <dl:page-break /> or <ptc:cursor-loc/> and
use NVDL and/or a pipeline validator to handle them.

If MicroXML is to go anywhere it probably needs to be rich enough for
. XSLT to be expressed in it
. Web pages, yes with PHP, and, as John notes, HTML compatibility
. be a close enough subset of XML and (for the data model) of XDM that
existing software can process them. This last was a requirement for XML,
to be a subset of SGML and to work with SGML tools; in the end we needed
some minor changes to those tools, and, had we known that would be a
possibility at the start, some other decisions might have been
different. The future is longer (we hope) than the past, and if there
are more people on the planet now than have ever lived, the statistical
odds of death are now under 50% - so maybe microXML has a rosy future.
Similarly,
. be formattable directly with CSS - but the CSS WG is open to new
proposals, so this is not too onerous provided that the naming/namespace
mechanism ends up not being too bizarre.
. have a clear easily-understood relationship to JSON (documents vs
data-binding), to XML, to Web services and the existing XML stack.

A W3C community group would be a fine place to discuss requirements and
use cases and get a draft hammered out. Or maybe I'm biased there :)

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 02:40

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


> A W3C community group would be a fine place to discuss requirements and
> use cases and get a draft hammered out. Or maybe I'm biased there :)
> 
> Liam
> 
> -- 

I agree !

But ... to test the water, while I am technically interested I step and ask myself  "Why MicroXML?"
Is there really such a dearth of full XML processors that MicroXML has value over simply coding to simpler
XML by convention ?
Noone is making you use the full (and ugly?) breath of XML in your documents - and (IMHO) Unlike SGML, there is
a *plethora* of full XML parsers and processors available,
yea even in the Browser.

So ... partially as devil's advocate, but also to question why put so much effort into a new standard if
simply ad-hoc subsetting of the one we have would suffice
"Why not just use XML ?"  Or for that matter, JSON.  What is the value add of a *new* standard.

-David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rushforth, Peter | 16 Jul 2012 03:58
Picon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David,

In my opinion, the value of a new standard could be in convergence with HTML.  If there was a single parser that could
deal with XML, HTML, and JSON in one application, would that not be more efficient?  Maybe I go too far there,
but anyway better integration is a goal IMHO.

For example, I deal with maps.  I want to see maps in HTML in a declarative, RESTful manner.    In HTML proper, I
don't think I stand much chance.  But in XML, or MicroXML, I can define a vocabulary and service model in my
domain.  If HTML can somehow be persuaded to understand the semantics of the media types involved via REST
(by reference), maybe now we have a means to extend the functionality in the browser.  I think a similar
discussion could apply to many many domains. 3d models come to mind.  Semantic data of any sort really.  If we
identify patterns that should be supported, we can craft MicroXML to support them.  HTML could then
integrate derived vocabularies in an agreed-on, orderly fashion.

Like Len mentions, HTML is getting stuffed so full of semantics, its going to burst too.  So we need to find a
way to help each other.

I remember trying to add parts of modular xhtml to my domain specific vocabulary to create a hypermedia
language.  It turned out to be hard, as I recall.  

Maybe the goal should be to make a success of "XML" on the Web.  To do that, it will have to be simple.  Maybe we
should think about NanoXML while we're at it.   

Peter
________________________________________
From: David Lee [dlee <at> calldei.com]
Sent: July 15, 2012 8:40 PM
To: liam <at> w3.org; Len Bullard
Cc: 'James Clark'; 'John Cowan'; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of ...

> A W3C community group would be a fine place to discuss requirements and
> use cases and get a draft hammered out. Or maybe I'm biased there :)
>
> Liam
>
> --

I agree !

But ... to test the water, while I am technically interested I step and ask myself  "Why MicroXML?"
Is there really such a dearth of full XML processors that MicroXML has value over simply coding to simpler
XML by convention ?
Noone is making you use the full (and ugly?) breath of XML in your documents - and (IMHO) Unlike SGML, there is
a *plethora* of full XML parsers and processors available,
yea even in the Browser.

So ... partially as devil's advocate, but also to question why put so much effort into a new standard if
simply ad-hoc subsetting of the one we have would suffice
"Why not just use XML ?"  Or for that matter, JSON.  What is the value add of a *new* standard.

-David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 16 Jul 2012 06:17

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David Lee scripsit:

> Is there really such a dearth of full XML processors that MicroXML
> has value over simply coding to simpler XML by convention ?

No, of course not.  It's the Really Simple Data Model that makes MicroXML
interesting, which is why I resist any attempts to complicate it, with the
possible exception of PIs in a very limited way.  Everything is an element,
and an element has a map from attribute names to values and a sequence
including elements or strings or both.

> Noone is making you use the full (and ugly?) breath of XML in your
> documents - and (IMHO) Unlike SGML, there is a *plethora* of full XML
> parsers and processors available, yea even in the Browser.

Right.  But unless you are usiung a complete XML stack (XQuery/XSLT and
XML database), eventually you have to bind your XML to some third-generation
language, and that's where full XML is a big pain.  The Really Simple Data
Model is really easy to work with.

> "Why not just use XML ?"  Or for that matter, JSON.  What is the value
> add of a *new* standard.

If JSON is sufficient, use it.  If not, MicroXML provides a data model
simpler than JSON's but compatible with full XML.

--

-- 
Verbogeny is one of the pleasurettes    John Cowan <cowan <at> ccil.org>
of a creatific thinkerizer.             http://www.ccil.org/~cowan
   --Peter da Silva

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 14:28

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

>  John Sez ...

> Right.  But unless you are usiung a complete XML stack (XQuery/XSLT and
> XML database), eventually you have to bind your XML to some third-
> generation
> language, and that's where full XML is a big pain.  The Really Simple Data
> Model is really easy to work with.
> 

Interesting I didn't consider Data Binding.  If one big use case is Data Binding I think MicroXML 
needs improvement.  It lacks the basic "duck typing" that JSON has.
A self-describing data binding markup needs (IMHO) to atleast identify common atomic values like
String , Integer, Double, Date [JSON lacks this] , Boolean , Null [? not so useful but JSON has it].

If its going to take XSD to add this to MicroXML I think well be in trouble.
And remember we need these not only for leaf elements but attributes and mixed text.

Alternatively .... Everything is String , Element (Map + List of Element or String) , Map of String/String pairs.

Secondly, unlike JSON, Maps (attributes) are limited to String values.

So .. if I read this right, if simple Data  Binding is an important use case we need a lot more work to do to both
add typing - even duck typing like JSON,  AND maybe simplify things more like getting rid of attributes
entirely except possibly for typing, and figuring out a way for Element content to represent either/or
(but not both at once)  arrays and maps.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 16 Jul 2012 15:41

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David Lee scripsit:

> So .. if I read this right, if simple Data  Binding is an important
> use case we need a lot more work to do to both add typing - even duck
> typing like JSON,  AND maybe simplify things more like getting rid
> of attributes entirely except possibly for typing, and figuring out a
> way for Element content to represent either/or (but not both at once)
> arrays and maps.

That's turning MicroXML into JSON, but we already have a perfectly
good JSON.

--

-- 
John Cowan  cowan <at> ccil.org  http://ccil.org/~cowan
If I have seen farther than others, it is because I was standing on
the shoulders of giants.
        --Isaac Newton

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 15:55

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

> That's turning MicroXML into JSON, but we already have a perfectly
> good JSON.
> 

I am open for an alternative way of enabling simple DataBinding to common languages with MicroXML.
As it sits I dont see it.  	

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Uche Ogbuji | 16 Jul 2012 17:00
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Mon, Jul 16, 2012 at 7:55 AM, David Lee <dlee <at> calldei.com> wrote:

> That's turning MicroXML into JSON, but we already have a perfectly
> good JSON.


I am open for an alternative way of enabling simple DataBinding to common languages with MicroXML.
As it sits I dont see it.

I think that's because you come from a strongly-typed language perspective, and I've definitely paid 3X my fair dues giving the contrary view in this list for more than a decade, and I'm not up for re-hashing. There are many users of XML who don't have that perspective, and who happily use XML "data" binding without strong typing. You don't have to worry about it. You can stick to the standards that scratch your own itch.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed <at> TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
John Cowan | 16 Jul 2012 18:27

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David Lee scripsit:

> I am open for an alternative way of enabling simple DataBinding to
> common languages with MicroXML.

Well, in MicroLark you can implement an ElementFactory and pass it to the
parser, and the parser will use the factory to create element objects
(which must be instances of a subclass of Element).  The factory gets
access to the new element's name and the current element stack including
attributes.  This is somewhat richer than XML Schema, which requires
that the  of an element be determinable using the new element's name
and the names of the elements in the current stack.

Of course, one could write an ElementFactory that uses a configuration
file of some sort; it doesn't have to be hard-coded logic.

--

-- 
John Cowan  cowan <at> ccil.org  http://www.ccil.org/~cowan
Thor Heyerdahl recounts his attempt to prove Rudyard Kipling's theory
that the mongoose first came to India on a raft from Polynesia.
        --blurb for Rikki-Kon-Tiki-Tavi

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 18:46

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

> John Sayeth
> 
> Well, in MicroLark you can implement an ElementFactory and pass it to the
> parser, and the parser will use the factory to create element objects
> (which must be instances of a subclass of Element).  The factory gets
> access to the new element's name and the current element stack including
> attributes.  This is somewhat richer than XML Schema, which requires
> that the  of an element be determinable using the new element's name
> and the names of the elements in the current stack.
> 
> Of course, one could write an ElementFactory that uses a configuration
> file of some sort; it doesn't have to be hard-coded logic.
> 

OK ... 
but what I am getting at, is if we want a *simpler* XML DataBinding this isnt simple enough IMHO.
Full Stack XML already has data binding to native language objects.
What I am reading here is not really data binding but rather a DOM-like structure where MicroXML gets turned
into Elements ...
Which is fine ... but if we want to compete against Simple Data Binding (a worthwhile goal IMHO)
Then the resultant objects should be something a user would like to use, not the XML model mapped to an XML
Model in memory.
Something very much like what JSON can do to JavaScript objects,
or JAXB can do to Java Objects.

Hence Suggesting that we have some kind of data typing as part of the spec, either explicit or implicit.
XMLRPC is one example of an in-band XML Typing.  
If we could use xsi:type or something similar that would help, although we still "suffer" that maps can only
have string values.

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Mike Sokolov | 16 Jul 2012 18:58
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Doesn't the JAXB model make sense here: push the typing inference to a 
mapping process that has type awareness in the host language?  Different 
host languages will have different type systems: you wouldn't want to 
build those into the interchange layer.  JSON can do that because it is 
a *javascript* object notation.  I don't think MicroXML should be a 
*Java* object notation.

-Mike

On 07/16/2012 12:46 PM, David Lee wrote:
>> John Sayeth
>>
>> Well, in MicroLark you can implement an ElementFactory and pass it to the
>> parser, and the parser will use the factory to create element objects
>> (which must be instances of a subclass of Element).  The factory gets
>> access to the new element's name and the current element stack including
>> attributes.  This is somewhat richer than XML Schema, which requires
>> that the  of an element be determinable using the new element's name
>> and the names of the elements in the current stack.
>>
>> Of course, one could write an ElementFactory that uses a configuration
>> file of some sort; it doesn't have to be hard-coded logic.
>>
>>      
>
> OK ...
> but what I am getting at, is if we want a *simpler* XML DataBinding this isnt simple enough IMHO.
> Full Stack XML already has data binding to native language objects.
> What I am reading here is not really data binding but rather a DOM-like structure where MicroXML gets
turned into Elements ...
> Which is fine ... but if we want to compete against Simple Data Binding (a worthwhile goal IMHO)
> Then the resultant objects should be something a user would like to use, not the XML model mapped to an XML
Model in memory.
> Something very much like what JSON can do to JavaScript objects,
> or JAXB can do to Java Objects.
>
> Hence Suggesting that we have some kind of data typing as part of the spec, either explicit or implicit.
> XMLRPC is one example of an in-band XML Typing.
> If we could use xsi:type or something similar that would help, although we still "suffer" that maps can
only have string values.
>
> ----------------------------------------
> David A. Lee
> dlee <at> calldei.com
> http://www.xmlsh.org
>
>
>
>
>
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
> subscribe: xml-dev-subscribe <at> lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>    

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 19:03

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


> Doesn't the JAXB model make sense here: push the typing inference to a
> mapping process that has type awareness in the host language?  Different

Yes, but then JAXB requires Schema.
Do we pull Schema into MicroXML ?

----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Mike Sokolov | 16 Jul 2012 19:56
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

XML 1.0/1.1 doesn't include schema does it?  So I don't see why MicroXML 
has to include schema in order to support schema-aware programs like 
JAXB.  One of the good things about schema (unlike DTD) is that it is 
layered *on top of* XML not intertwingled with it.

-Mike

On 07/16/2012 01:03 PM, David Lee wrote:
>    
>> Doesn't the JAXB model make sense here: push the typing inference to a
>> mapping process that has type awareness in the host language?  Different
>>      
> Yes, but then JAXB requires Schema.
> Do we pull Schema into MicroXML ?
>
>
> ----------------------------------------
> David A. Lee
> dlee <at> calldei.com
> http://www.xmlsh.org
>
>    

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

David Lee | 16 Jul 2012 21:07

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...


> XML 1.0/1.1 doesn't include schema does it?  So I don't see why MicroXML
> has to include schema in order to support schema-aware programs like
> JAXB.  One of the good things about schema (unlike DTD) is that it is
> layered *on top of* XML not intertwingled with it.
> 
> -Mike

Technically true, but if were trying to position MicroXML as "XML Lite" and DataBinding is a key feature, 
then we turn around and say "Oh you need XSD for that to work",  I'd just laugh all the way to the bank.

 
----------------------------------------
David A. Lee
dlee <at> calldei.com
http://www.xmlsh.org

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 16 Jul 2012 23:17

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

David Lee scripsit:

> Technically true, but if were trying to position MicroXML as "XML Lite"
> and DataBinding is a key feature, then we turn around and say "Oh you
> need XSD for that to work",  I'd just laugh all the way to the bank.

Oh, I would too.

I've been planning to add Examplotron support to MicroLark, as a suitable
kind of validation for a Very Small Animal.  I could easily add support
for a few values of xsi:type as well.

--

-- 
John Cowan  cowan <at> ccil.org  http://ccil.org/~cowan
In computer science, we stand on each other's feet.
        --Brian K. Reid

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 16 Jul 2012 19:15
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

 >The factory gets access to the new element's name and the current 
element stack including attributes. This is somewhat richer than XML 
Schema, which requires that the [type] of an element be determinable 
using the new element's name and the names of the elements in the 
current stack.

Actually that describes rather precisely what XSD 1.1 allows.

Giving access to the attributes of ancestor elements is a bit 
questionable because it means the validity/type of an element depends on 
the element's context and not only on its content. It got into XSD 1.1 
because of the xml:lang use case and the influence of the I18N police.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 17 Jul 2012 00:43

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Michael Kay scripsit:

> Giving access to the attributes of ancestor elements is a bit
> questionable because it means the validity/type of an element
> depends on the element's context and not only on its content. 

I'm not sure what that means.  Surely types that depend on the names of
the ancestors are also "depending on the context"?  After all, the
HyTime Lesson is that the element name is just another attribute value.

-- 
My corporate data's a mess!                     John Cowan
It's all semi-structured, no less.              http://www.ccil.org/~cowan
    But I'll be carefree                        cowan <at> ccil.org
    Using XSLT
On an XML DBMS.

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 17 Jul 2012 10:08
Favicon
Gravatar

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...


On 16/07/2012 23:43, John Cowan wrote:
> Michael Kay scripsit:
>
>> Giving access to the attributes of ancestor elements is a bit
>> questionable because it means the validity/type of an element
>> depends on the element's context and not only on its content.
> I'm not sure what that means.  Surely types that depend on the names of
> the ancestors are also "depending on the context"?  After all, the
> HyTime Lesson is that the element name is just another attribute value.
>
I was going to answer as follows:

"The change is that if you select an element as the validation root and 
do strict validation on it (which means looking for a global element 
declaration), then in XSD 1.0 the result didn't depend on anything in 
the instance outside the subtree rooted at that element; in XSD 1.1 it 
does."

On more careful examination, however, I see that we fixed this problem. 
Conditional type assignment only has access to the values of 
"inheritable attributes" that have the same validation context as the 
element being validated, so in effect attributes outside the validation 
root don't affect the outcome, just as element names outside the 
validation root don't.

Sorry for this excursion up the garden path.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 16 Jul 2012 06:11

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Liam R E Quin scripsit:

> If MicroXML is to go anywhere it probably needs to be rich enough for
> . XSLT to be expressed in it

You could do that, but why would you?  It would be a pain in the ass to
write XSLT without any element prefixes.

> . Web pages, yes with PHP, and, as John notes, HTML compatibility
> . be a close enough subset of XML and (for the data model) of XDM that
> existing software can process them. 

No reason why not, since it's a subset.

> . be formattable directly with CSS - but the CSS WG is open to new
> proposals, so this is not too onerous provided that the naming/namespace
> mechanism ends up not being too bizarre.

It's the same mechanism used with XML, just less flexible.

> . have a clear easily-understood relationship to JSON (documents vs
> data-binding), to XML, to Web services and the existing XML stack.

XML doesn't have a clear and easily understood relationship to JSON
in the general case.  I defined two mappings, one for round-tripping
MicroXML through JSON and the other for round-tripping JSON through
MicroXML, both lossless.

But I repeat, there's no real reason to use MicroXML as an XML replacement,
particularly not if you have a full XML stack anyway.

--

-- 
By Elbereth and Luthien the Fair, you shall     cowan <at> ccil.org
have neither the Ring nor me!  --Frodo          http://www.ccil.org/~cowan

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 16 Jul 2012 12:52
Picon
Favicon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Mon, 2012-07-16 at 00:11 -0400, John Cowan wrote:

> But I repeat, there's no real reason to use MicroXML as an XML replacement,
> particularly not if you have a full XML stack anyway.

That's what we said of XML at first - there's no reason to use XML as an
SGML replacement.

We were in a world in which XML was input to a Netscape plugin.

These things have a habit of either growing like weeds, or of dying by
the wayside unused, so I prefer to prepare for success at least a
little, even if it does not come.

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Len Bullard | 16 Jul 2012 15:38
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Trimmed the CC list for politeness...

I still have my SQ editor set in the red box.  Like Confederate money, someday the Canadians will rise again. :)

The domains I have to deal with are application standards so nothing you should worry about.  I try to keep up
with different efforts as possible in case they become relevant.   I see that Paul Grosso is a member of the
Core group, so the right person is available to you should the MicroXML effort become relevant.  As Rick J
noted offlist and others are noting here, the hypermedia affordances discussion is best directed to
common data models and we've been here before.

While fascinating to see XML-Dev wake up like the seven dwarves and return to the mines, I am grigori and will
watch.  The smart folks who know how to do the work are engaging as they should.

len

-----Original Message-----
From: Liam R E Quin [mailto:liam <at> w3.org] 
Sent: Sunday, July 15, 2012 6:30 PM
To: Len Bullard
Cc: 'James Clark'; 'John Cowan'; xml-dev <at> lists.xml.org
Subject: RE: [xml-dev] "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Sun, 2012-07-15 at 15:10 -0500, Len Bullard wrote:
> I agree.  It is a tooling issue (e.g., the ubiquity of Arbor Text, Microsoft
> and Adobe in mil-spec logistics organizations) and as you say, a DTD issue
> with large extant instances.

Sometimes I'm still sad that SoftQuad Author/Editor isn't there too.

> As I said my comment is advisory.  To be fair, the multiplicity of standards
> making and consortia sources and a lack of coherence in their directions
> makes this a wee bit more daunting than in the days of SGML when at least
> ISO was the dominant source.

It's a pain, I agree; I'm not sure how to break past the Balkan States
of Standardization Organizations, the fiefdoms of focus.

Going back to processing instructions, some of the uses are served just
as well with comments, some, like <?php...?>, won't work at all with the
current µXML proposal, some would be better with elements - in XML these
days one might simply say, <dl:page-break /> or <ptc:cursor-loc/> and
use NVDL and/or a pipeline validator to handle them.

If MicroXML is to go anywhere it probably needs to be rich enough for
. XSLT to be expressed in it
. Web pages, yes with PHP, and, as John notes, HTML compatibility
. be a close enough subset of XML and (for the data model) of XDM that
existing software can process them. This last was a requirement for XML,
to be a subset of SGML and to work with SGML tools; in the end we needed
some minor changes to those tools, and, had we known that would be a
possibility at the start, some other decisions might have been
different. The future is longer (we hope) than the past, and if there
are more people on the planet now than have ever lived, the statistical
odds of death are now under 50% - so maybe microXML has a rosy future.
Similarly,
. be formattable directly with CSS - but the CSS WG is open to new
proposals, so this is not too onerous provided that the naming/namespace
mechanism ends up not being too bizarre.
. have a clear easily-understood relationship to JSON (documents vs
data-binding), to XML, to Web services and the existing XML stack.

A W3C community group would be a fine place to discuss requirements and
use cases and get a draft hammered out. Or maybe I'm biased there :)

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Liam R E Quin | 17 Jul 2012 00:43
Picon
Favicon

RE: "Introducing MicroXML, Part 1: Explore the basic principles of ...

On Mon, 2012-07-16 at 08:38 -0500, Len Bullard wrote:
> Trimmed the CC list for politeness...
> I see that Paul Grosso is a member of the Core group, so the right
> person is available to you should the MicroXML effort become relevant.

John Cowan is also there.

>   As Rick J noted offlist and others are noting here, the hypermedia
> affordances discussion is best directed to common data models and
> we've been here before.

I'm not even sure I'd go that far. But yes, nothing new under the sun,
Pink Floyd got that one right :)

Liam

--

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Rick Jelliffe | 20 Jul 2012 12:43
Picon

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Because you are not always in the position of being able to influence
what is allowed in the Schema?

If you are in an organization where the schemas are made by one
department (in one country), the data is authored by another
department (in another country), the testing is done by another group
(in another country), the stylesheets are made by another department
(also not in your country) and the content is packaged into
applications by yet  another department, in another country,
outsourced to some other country, then then the schema business can be
a highly controlled affair, in order to reduce communication or
re-tooling costs.

Then imagine this was coupled to a company that used a data mapping
tool where you have to state every possible absolute XPath that can be
found in any document and program for that explicitly.  That is the
behaviour of at least one commonly used commercial tool, from the data
warehouse industry. If you add an extra element, you potentially may
have to deal with an explosion: so you cannot do it willy nilly.

Or imagine a production system which is written so that unknown
elements cause documents to be dropped as exceptions.  An earlier part
of the chain cannot just add an element or attribute unless they can
also remove it.

I think these kinds of scenarios are often more the case for people
working in large organizations, than being able to arbitrarily bend
the schemas: the technical difficulty in understanding schemas only
makes it worse.

One way out of this would be to provide a standard namespace that had
a semantic of "can appear anywhere, can contain anything you like,
isnt validated", which is not really possible without changing
existing schemas (and schema languages).   So I don't think elements
provide what PIs do: if elements were satisfactory, people would use
elements.

However, if MicroXML is not geared towards allowing people to hack
functional systems in the confines of large enterprises, none of that
matters. The response is not "You can use elements and attributes" but
"Use something else".

Cheers
Rick

On Sun, Jul 15, 2012 at 1:31 PM, James Clark <jjc <at> jclark.com> wrote:
> On Fri, Jul 13, 2012 at 10:07 PM, Len Bullard <Len.Bullard <at> ses-i.com> wrote:
>>
>> If PIs are not available, this will likely eliminate MicroXML as a
>> markup language for composition intensive applications where
>> content-tagged structures such as Notes, Cautions and Warnings must by
>> specification be bound to the same page.
>
> Why can't you use elements or attributes for this?

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

John Cowan | 16 Jul 2012 06:20

Re: "Introducing MicroXML, Part 1: Explore the basic principles of ...

Uche Ogbuji scripsit:

> So syntactically they would, as James suggested, have to appear before
> the beginning of the root element, but they would be considered for
> data model purposes as an additional list on the root element object,
> and this generally reported after the attributes but before child
> content of the root element's start tag?

Hmm.  I was mostly thinking about the tree-form data model.  I'm not so
sure about reporting the root-tag first in a streaming API, which would
require buffering up all the PIs.

--
A rabbi whose congregation doesn't want         John Cowan
to drive him out of town isn't a rabbi,         http://www.ccil.org/~cowan
and a rabbi who lets them do it                 cowan <at> ccil.org
isn't a man.    --Jewish saying

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


Gmane