﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>XMLDEV Mailing List: An Email Discussion Forum for W3C XML technologies and XML development trends.</title><link>http://www.stylusstudio.com/blogs/xmldev/</link><description>XML-DEV is an open, un-moderated email list about XML development. Over the years it has been a popular forum for the development of emerging XML specifications and XML technology enthusiasts. XML Dev was founded in 1997 by Prof. Peter Murray-Rust and Dr. Henry Rzepa, and is presently managed by OASIS.</description><copyright>The XML DEV mailing list is managed by OASIS</copyright><ttl>5</ttl><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Andrew Welch wrote:
&gt; I mentioned the streaming aspect for 2 reasons:
&gt;
&gt; 1) If validation performance is an issue, can RNG + Schematron still
&gt; be considered when <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> is validation so fast?
&gt;   
I think Andrew is identifying one of the basic flaws of XSD evolution:  
an optimization controls the design.  

But I don't believe the claim that XSD validation is necessarily faster 
than RNG + Schematron, even at the poor state of optimization we have at 
the moment.

1) There are many kinds of constraints that Schematron can do that XSD 
1.1 assertions etc cannot do. XSD cannot be considered faster at things 
that are completely out of its reach!  On these, I can state that RELAX 
NG and Schematron are absolutely faster than XSD  :-) 

2) An XSD assertion requires that a local XDM trimmed branch be 
constructed. So the worst case for XSD is where all elements have an 
assertion: the same amount of tree building would have to go on as for 
building a full XDM tree for the typical non-streaming implementation of 
Schematron. There would be a space <a title="saving" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/buy/">saving</a>, but not necessarily a speed 
saving.  (In fact, I think only the non leaf elements would need 
assertions to get to this same point.)

3) There are Schematron implementations with a terminate on fail 
construction. (Ken Holman contributed this IIRC.) So where pass/fail 
testing is required,  these can be very fast in the amount of work they 
need to do. Combine them with a streaming implementation or even a 
lazily constructed <a title="XML DOM" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dom.html">DOM</a>, and they certainly could be faster than an XSD 
implementation that attempts to run over a whole large file.

3a)  A RELAX NG implementation that just provides a validation result 
does much less <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">work than an XSD</a> implementation that produces a fill 
PSVI, too.

4) XSD implementations are not necessarily streaming, but may be random 
access. For example, my implementation of XSD by <a title="converting" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/convert_to_xml.html">converting</a> it to 
Schematron would use whatever the Schematron implementation used. Or a 
validator that ran over data in a database directly without pickling it 
first.

5) Where the application that uses the XML requires a tree, the tree 
needs to be built even if you have streaming validation: so you aren't 
actually saving any tree construction time or space. In fact, since the 
PSVI has no <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">standard</a> XML form or standard streaming <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/api/">API</a> form, I actually 
imagine that most uses of XSD actually result in a tree being built (or 
the data being entered into a DBMS): the point of the PSVI is to make 
extra information available for systems which are typically random 
access, keyed access or object trees (anything except streaming!)   

6) Where a document is not large, it is not certain that a streaming 
implementation of a validator using a modern language with automatic 
garbage-collected will actually allocate or use fewer objects compared 
to a tree-building implementation.  And object-allocation-avoidance 
strategies such as a cross-thread pool of DOM objects can also benefit 
in-memory implementations just as much as streaming implementations. The 
size of documents limits the number of simultaneous process more in the 
case of the tree-building implementation, but not necessarily the number 
of objects allocated.  (In fact, if the system is a validator, it may be 
that the event stream may need to be queued untill validation has 
finished before passing it on to the application: this will limit 
opportunities from speed-ups due to less object allocation from pooling 
or singleton strategies, for example.)

The exception might be XSD validation used for firewalls. But when you 
look at, for example, the Lloyds London Market system, they validate 
incoming data using XSD for coarse-grain validation, then Schematron for 
fine-grain validation: non-streaming is not a bar for their documents.

7)  Where there is a resource constraint like a real-time constraint,  
benchmarking is ultimately the most objective way of determining 
performance. Whitebox knowledge of algorithms and implementation details 
may certainly give hints about behaviour, but they are just armchair 
hints that may vary with different implementations, schemas and input 
documents: an algorithm that is efficient but explosive may give better 
performance than an algorithm that is slow but inefficient. 

(For example, a system that takes  10+n^2  has better performance than a 
system that is 110 + 10n for n &lt;11.  We know about XSLT engines that the 
slowest is at least 24 times slower than the fastest even for basic 
transformations, for example, so the constants could plausibly swamp the 
exponents. ) 

8) XSD schemas can be very large and verbose, with multiple files, and 
many internal checks of the schema components such as derivation by 
restriction and UPA. I see no reason to expect that  loading a large XSD 
schema with all that extra work would necessarily be more efficient than 
the effort in loading a RNC or Schematron schema.  Indeed, in XSD is is 
quite common that the schema is larger than the instance: even when 
there is a streaming validation, most of the process is taken up with 
creating persistent objects for the schema.

Putting all these together, I certainly concede that if you have a large 
document, a small memory, a compiled and pre-loaded schema, a small 
schema with only a few assertions, constraints that are only local, 
where the document is thrown away after validation and the PSVI or tree 
or stream not passed on, the document is parsed from XML rather than 
coming in as a DOM,  and you want the validation to get as much outcome 
as possible,  then you might reasonably suspect that a streaming 
implementation (whether XSD or RNG + Schematron) would be faster to go 
through an entire document to confirm that no errors exist than an 
in-memory implementation made with the same attention to memory issues, 
in the absence of benchmarking. 

Added to that, I think there is tremendous scope for optimization of 
Xpaths and XSLT, and consequently Schematron. Michael Kay's optimization 
work in XSLT and XPath is interesting. There are a lot of fun 
possibilities for Schematron-specific optimization based on getting fast 
results (e.g. http://www.topologi.com/public/SchematronHeuristic.pdf) or 
optimization on tries and feature sets 
(http://broadcast.oreilly.com/2009/06/validation-using-tries-and-fea.html)
 

&gt; 2) Isn't it the case that some of the complexities of XSD are that way
&gt; to allow for that validation speed?
&gt;   
Do you have an example?  (I imagine it causes some simplifications as 
well as some complexities.)

Cheers
Rick Jelliffe
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10180.html</link><pubDate>Thu, 19 Nov 2009 18:12:53 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Glidden, Douglass A wrote:
&gt; Phillipe,
&gt; 
&gt; That sounds pretty slick--definitely sounds like it goes even above and beyond what I've been looking for in many ways.  I noticed though that you didn't comment on my complaints about typing--does ASL support the concept of complex data typing with type derivation, etc.?  If so, it definitely sounds promising.

Well, complex data typing with type derivation is rather a concept 
tightly close to <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a>; the design approch is somewhat 
different in ASL, it is rather based on schema composition optionally 
with the help of active <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">catalogs</a> as the glue.

IMHO, I'm not sure that this OO paradigm can be applied in XML: a class 
is defined by its unordered members that a subclass can simply override, 
whereas the sequential nature of XML doesn't allow to override only a 
given part of a content model. Contorsionists at W3C XML Schema's group 
make things hard to achieve at the cost of an extreme verbosity and 
extreme complexity that removes the benefits of this OO <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">feature</a>.

With ASL, I didn't try to adopt at any cost a feature that doesn't fit 
well in XML technologies, I'd rather tried to think different. Moving 
from a static abstract tree to a dynamic one that can adapt itself 
according to the incoming data to validate is one of the best feature of 
ASL. Bringing semantic capabilities that are not supported by other 
schema technologies is another one.

Kind regards.

&gt; 
&gt; By the way, I love your signature--gave me a great laugh this morning! :-)

:)

&gt; 
&gt; Doug Glidden
&gt; Software Engineer
&gt; The Boeing Company
&gt; Dou&#103;&#x6c;ass.A.&#x47;&#108;&#105;&#100;&#100;en&#64;boe&#105;n&#x67;&#x2e;&#99;&#x6f;&#x6d;
&gt; 
&gt; -----Original Message-----
&gt; From: Philippe Poulard [<A  HREF="mailto:ph&#105;&#108;&#105;p&#112;&#101;&#x2e;p&#x6f;u&#108;ard&#64;&#115;&#x6f;p&#x68;i&#97;&#46;&#105;&#110;r&#105;a.&#x66;&#114;">mailto:ph&#105;&#108;&#105;p&#112;&#101;&#x2e;p&#x6f;u&#108;ard&#64;&#115;&#x6f;p&#x68;i&#97;&#46;&#105;&#110;r&#105;a.&#x66;&#114;</A>]
&gt; Sent: Thursday, November 19, 2009 05:42
&gt; To: Glidden, Douglass A
&gt; Cc: &#120;&#x6d;l&#45;d&#x65;v&#64;&#108;ists&#x2e;xm&#x6c;.&#111;rg
&gt; Subject: Re:  XML spec and XSD
&gt; 
&gt; Hi,
&gt; 
&gt; I have presented the &quot;Active Schema Language&quot; at Balisage last year, that covers rather well most of the features you expect:
&gt; http://www.balisage.net/Proceedings/vol1/html/Poulard01/BalisageVol1-Poulard01.html
&gt; Slides:
&gt; http://hal.inria.fr/docs/00/32/26/61/ANNEX/Bal2008poul061003.pdf
&gt; Implementation:
&gt; http://reflex.gforge.inria.fr/
&gt; 
&gt; Glidden, Douglass A wrote:
&gt;&gt; From the perspective of an application developer who uses XML for storing fairly complex hierarchical data (as opposed to documents), I have a very basic question:  Is there any real, practical reason that Relax NG is _universally_ better than XSD?
&gt;&gt;
&gt;&gt; Here's the background for my question:  I've been using XSDs for generating object-oriented <a title="data models" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema_editor.html">data models</a> for some time, and have been frustrated by various inflexibilities in XSDs.  For instance:
&gt;&gt; - Derivation by restriction, while conceptually very useful, seems slightly cumbersome in operation; in particular, I wish it could be accomplished with less repetition (I'm a fanatical believer in DRY).  I can live with the repetition, though, because I am assured that, if I make a typographical or some other error, the XSD will (almost) always fail to validate (&quot;Bar is not a valid restriction of Foo&quot;), so the the possiblity of unintended changes being introduced due to the repetition is kept to a minimum.
&gt;&gt; - Certain fairly simple data structures can only be achieved in XSD (if at all) with ridiculously verbose patterns; for instance, how do you represent a structure with five possible elements, at least one of which must be present and none of which may be repeated?  The best method I have found takes about 25 lines and far too much code repetition.
&gt; 
&gt; With ASL, you just express things in the way you think of them:
&gt;      &lt;asl:element name=&quot;property&quot;&gt;
&gt;          &lt;asl:select max-occurs=&quot;unbounded&quot;&gt;
&gt;              &lt;asl:element ref-elem=&quot;width&quot; min-occurs=&quot;0&quot;/&gt;
&gt;              &lt;asl:element ref-elem=&quot;color&quot; min-occurs=&quot;0&quot;/&gt;
&gt;              &lt;asl:element ref-elem=&quot;border&quot; min-occurs=&quot;0&quot;/&gt;
&gt;          &lt;/asl:select&gt;
&gt;      &lt;/asl:element&gt;
&gt; by default, cardinalities are set to 1, which means that &lt;property&gt; must have at least 1 occurrence, and within, the other elements can't appear more than once
&gt; 
&gt; &lt;property&gt;&lt;!--valid--&gt;
&gt;         &lt;width/&gt;
&gt; &lt;/property&gt;
&gt; &lt;property&gt;&lt;!--valid--&gt;
&gt;         &lt;width/&gt;
&gt;         &lt;border/&gt;
&gt; &lt;/property&gt;
&gt; &lt;property&gt;
&gt;         &lt;width/&gt;
&gt;         &lt;width/&gt;&lt;!--unexpected element--&gt;
&gt; &lt;/property&gt;
&gt; &lt;property&gt;
&gt;         &lt;width/&gt;
&gt;         &lt;border/&gt;
&gt;         &lt;width/&gt;&lt;!--unexpected element--&gt;
&gt; &lt;/property&gt;
&gt; &lt;property/&gt;&lt;!--element missing--&gt;
&gt; 
&gt;&gt; - Most business logic cannot be represented, like &quot;the value of the foo element must be less than or equal to the value of the bar element&quot;.
&gt; 
&gt; You will find here some usefull use cases of business logic representation:
&gt; http://reflex.gforge.inria.fr/tutorial-schemas.html
&gt; 
&gt;&gt; - I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which make it difficult to enforce rules such as &quot;if the value of the foo element is xyz, then the bar and baz elements are required, but otherwise they are optional&quot;.
&gt; 
&gt; Straightforward in ASL:
&gt; 
&gt; &lt;asl:element name=&quot;xxxxxx&quot;&gt;
&gt;    &lt;xcl:if test=&quot;{/path/to/foo = 'xyz'}&quot;&gt;
&gt;      &lt;xcl:then&gt;
&gt;        &lt;asl:sequence&gt;
&gt;          &lt;asl:element ref-elem=&quot;bar&quot;/&gt;
&gt;          &lt;asl:element ref-elem=&quot;baz&quot;/&gt;
&gt;        &lt;/asl:sequence&gt;
&gt;      &lt;/xcl:then&gt;
&gt;      &lt;xcl:else&gt;
&gt;        &lt;asl:sequence&gt;
&gt;          &lt;asl:element ref-elem=&quot;bar&quot; min-occurs=&quot;0&quot;/&gt;
&gt;          &lt;asl:element ref-elem=&quot;baz&quot; min-occurs=&quot;0&quot;/&gt;
&gt;        &lt;/asl:sequence&gt;
&gt;      &lt;/xcl:else&gt;
&gt;    &lt;/xcl:if&gt;
&gt; &lt;/asl:element&gt;
&gt; 
&gt; you will notice that ASL can be mixed with other XML libraries (above, XCL that stands for the XML Control Language); this is a very useful feature that makes the abstract tree of the schema dynamic (other schema technologies have a static abstract tree) which boost the expressiveness of the language (isn't that a features that you are looking for ?)
&gt; 
&gt;&gt; Nonetheless, I have been more or less pleased with the final results in most cases.  Having heard much praise of Relax NG, I recently decided to try it out, hoping it would be able to resolve these issues.  Here's what I found:
&gt;&gt; - It does relieve the &quot;no ambiguity&quot; problem and makes enforcing that sort of rules much easier.
&gt;&gt; - It does not resolve most of the business logic issues, but there are other technologies that can be used in combination with either Relax NG or XSD to resolve these issues, so that can be worked around in either case.
&gt;&gt; - It does not appear to relieve the complexity of representing some types of data structures (see the one described above-as far as I can tell, it would not be significantly easier to define in Relax NG than it is in XSD).
&gt;&gt; - There is only a rudimentary concept of type definition and virually
&gt;&gt; none of inheritance.  Designing good, object-oriented data models is
&gt;&gt; practically impossible in Relax NG; for me, this is a HUGE deficiency.
&gt;&gt; For instance, say Foo is an abstract data type with several fields,
&gt;&gt; including an id field (any mixed data allowed) and a type field (with
&gt;&gt; enumerated values); Bar is one of several concrete subtypes of Foo,
&gt;&gt; which restricts the content of the id field (must contain two
&gt;&gt; elements, a groupId and a subId) and the type field (to a subset of
&gt;&gt; the values enumerated by Foo) and appends several new fields; other
&gt;&gt; subtypes have completely different restrictions on the id and type
&gt;&gt; fields and append various different new fields.  In XSD, implementing
&gt;&gt; this is fairly straightforward (although not necessarily simple and
&gt;&gt; certainly more verbose than I would prefer):  Foo is an abstract
&gt;&gt; complex type, and Bar and the other subtypes must derive from it first
&gt;&gt; via restriction (creating the re
&gt; strictions on id and type) and then via extension (appending the new fields).  In Relax NG, by contrast, I could find only two ways of doing this, neither of which was at all acceptable:  One is to get rid of Foo completely and reference its fields separately in each subtype-this is unacceptable to me as it completely violates DRY and object-oriented design; the other is to define each subtype of Foo in a separate file, importing Foo and redefining as necessary-this is marginally better from an OOP point-of-view, but still makes it impossible for a schema to use &quot;any valid subtype of Foo&quot; as a content definition without violating the Open-Closed principle.
&gt;&gt; - Relax NG provides no way of specifying cardinalities other than 0, 1, and infinity!  This is also a big one for me--if I need at least 2 and no more than 20 occurrences of the foo element (fairly common in my data definitions), there's NO WAY I'm going to define two required foo elements and eighteen optional ones!
&gt; 
&gt; In ASL, cardinalities support &quot;2&quot; or &quot;20&quot;, but can also be dynamic &quot;{1+1}&quot; or &quot;{count(../column[1]/cell)}&quot; or whatever you find useful with XPath
&gt; 
&gt;&gt; Now, I'm hoping that some Relax NG expert will come along and prove me wrong about some or all of these things, since I only experimented with it for a couple of days.  If not, for me these deficiencies in Relax NG *far* outweigh its benefits over XSD-there's really no comparison.  As much as I would like to see some aspects of XSD improved, unless someone can propose real alternatives for issues like the ones above, Relax NG is simply not an option for the type of data I work with.
&gt;&gt;
&gt;&gt; As a postscript, let me say I'm very thankful that the tone of this
&gt;&gt; thread has been gradually transitioning to actual constructive
&gt;&gt; argument (at which this list is normally rather good) rather than the
&gt;&gt; ridiculously juvenile mud-slinging that was predominant early last
&gt;&gt; week-in particular, I've appreciated the level-headed input from Jim
&gt;&gt; Tivy, Liam Quin, Ken Holman, and Michael Kay.  Unfortunately there are
&gt;&gt; still some emotionally charged but pretty much meaningless (or worse,
&gt;&gt; completely false) words being thrown around, but at least those aren't
&gt;&gt; in the majority anymore.  In all good humor, I have to say that
&gt;&gt; XML-dev is by far the most argumentative mailing list to which I've
&gt;&gt; ever been a subscriber. :-)
&gt;&gt;
&gt;&gt; Doug Glidden
&gt;&gt; Software Engineer
&gt;&gt; The Boeing Company
&gt;&gt; Dougla&#115;s&#46;&#65;.Glidd&#101;&#x6e;&#64;b&#111;&#101;i&#110;g.com
&gt;&gt; ______________________________________________________________________
&gt;&gt; _
&gt;&gt;
&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS to
&gt;&gt; support XML implementation and development. To minimize spam in the
&gt;&gt; archives, you must subscribe before posting.
&gt;&gt;
&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt; Or unsubscribe: xm&#x6c;-d&#101;v&#x2d;&#117;n&#x73;u&#x62;&#115;cr&#105;b&#101;&#64;&#x6c;&#105;&#x73;ts.&#120;&#x6d;&#108;.&#x6f;&#x72;g
&gt;&gt; subscribe: xml&#45;dev-subsc&#x72;ibe&#x40;&#x6c;&#105;&#115;ts.x&#x6d;&#108;.&#111;&#114;&#x67; List archive:
&gt;&gt; http://lists.xml.org/archives/xml-dev/
&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;
&gt; 
&gt; 
&gt; --
&gt; Cordialement,
&gt; 
&gt;                ///
&gt;               (. .)
&gt;   --------ooO--(_)--Ooo--------
&gt; |      Philippe Poulard       |
&gt;   -----------------------------
&gt;   http://reflex.gforge.inria.fr/
&gt;         Have the RefleX !
&gt; 
&gt; _______________________________________________________________________
&gt; 
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt; 
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#x78;ml&#45;dev&#45;&#117;ns&#x75;bs&#99;&#114;&#x69;&#x62;&#x65;&#64;&#x6c;&#105;&#x73;t&#115;.&#x78;ml&#46;o&#114;g
&gt; subscribe: xml&#x2d;&#x64;e&#118;&#x2d;s&#117;&#98;s&#99;ribe&#64;l&#105;&#x73;t&#x73;.&#120;&#x6d;&#x6c;.&#111;&#114;&#103;
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt; 


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50180.html</link><pubDate>Thu, 19 Nov 2009 15:35:02 GMT</pubDate></item><item><title>RE:  [ANN] Python XML Schema Bindings 1.0.0</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
An RNC version would be especially nice thing to see.
Leigh. 

-----Original Message-----
From: Peter A. Bigot [<A  HREF="mailto:b&#105;&#103;&#111;&#x74;&#112;&#x40;&#97;c&#x6d;&#46;&#111;r&#x67;">mailto:b&#105;&#103;&#111;&#x74;&#112;&#x40;&#97;c&#x6d;&#46;&#111;r&#x67;</A>] 
... PyXB is only appropriate where an <a title="XML schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML schema</a> is already available or useful for other reasons...
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80180.html</link><pubDate>Thu, 19 Nov 2009 15:02:09 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi,

I have presented the &quot;Active <a title="Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">Schema</a> Language&quot; at Balisage last year, 
that covers rather well most of the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">features</a> you expect:
http://www.balisage.net/Proceedings/vol1/html/Poulard01/BalisageVol1-Poulard01.html
Slides:
http://hal.inria.fr/docs/00/32/26/61/ANNEX/Bal2008poul061003.pdf
Implementation:
http://reflex.gforge.inria.fr/

Glidden, Douglass A wrote:
&gt; From the perspective of an application developer who uses <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> for storing fairly complex hierarchical data (as opposed to documents), I have a very basic question:  Is there any real, practical reason that Relax NG is _universally_ better than XSD?
&gt; 
&gt; Here's the background for my question:  I've been using XSDs for generating object-oriented <a title="data models" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema_editor.html">data models</a> for some time, and have been frustrated by various inflexibilities in XSDs.  For instance:
&gt; - Derivation by restriction, while conceptually very useful, seems slightly cumbersome in operation; in particular, I wish it could be accomplished with less repetition (I'm a fanatical believer in DRY).  I can live with the repetition, though, because I am assured that, if I make a typographical or some other error, the XSD will (almost) always fail to validate (&quot;Bar is not a valid restriction of Foo&quot;), so the the possiblity of unintended changes being introduced due to the repetition is kept to a minimum.
&gt; - Certain fairly simple data structures can only be achieved in XSD (if at all) with ridiculously verbose patterns; for instance, how do you represent a structure with five possible elements, at least one of which must be present and none of which may be repeated?  The best method I have found takes about 25 lines and far too much code repetition.

With ASL, you just express things in the way you think of them:
     &lt;asl:element name=&quot;property&quot;&gt;
         &lt;asl:select max-occurs=&quot;unbounded&quot;&gt;
             &lt;asl:element ref-elem=&quot;width&quot; min-occurs=&quot;0&quot;/&gt;
             &lt;asl:element ref-elem=&quot;color&quot; min-occurs=&quot;0&quot;/&gt;
             &lt;asl:element ref-elem=&quot;border&quot; min-occurs=&quot;0&quot;/&gt;
         &lt;/asl:select&gt;
     &lt;/asl:element&gt;
by default, cardinalities are set to 1, which means that &lt;property&gt; must 
have at least 1 occurrence, and within, the other elements can't appear 
more than once

&lt;property&gt;&lt;!--valid--&gt;
	&lt;width/&gt;
&lt;/property&gt;
&lt;property&gt;&lt;!--valid--&gt;
	&lt;width/&gt;
	&lt;border/&gt;
&lt;/property&gt;
&lt;property&gt;
	&lt;width/&gt;
	&lt;width/&gt;&lt;!--unexpected element--&gt;
&lt;/property&gt;
&lt;property&gt;
	&lt;width/&gt;
	&lt;border/&gt;
	&lt;width/&gt;&lt;!--unexpected element--&gt;
&lt;/property&gt;
&lt;property/&gt;&lt;!--element missing--&gt;

&gt; - Most business logic cannot be represented, like &quot;the value of the foo element must be less than or equal to the value of the bar element&quot;.

You will find here some usefull <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xquery/use_cases.html">use cases</a> of business logic representation:
http://reflex.gforge.inria.fr/tutorial-schemas.html

&gt; - I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which make it difficult to enforce rules such as &quot;if the value of the foo element is xyz, then the bar and baz elements are required, but otherwise they are optional&quot;.

Straightforward in ASL:

&lt;asl:element name=&quot;xxxxxx&quot;&gt;
   &lt;xcl:if test=&quot;{/path/to/foo = 'xyz'}&quot;&gt;
     &lt;xcl:then&gt;
       &lt;asl:sequence&gt;
         &lt;asl:element ref-elem=&quot;bar&quot;/&gt;
         &lt;asl:element ref-elem=&quot;baz&quot;/&gt;
       &lt;/asl:sequence&gt;
     &lt;/xcl:then&gt;
     &lt;xcl:else&gt;
       &lt;asl:sequence&gt;
         &lt;asl:element ref-elem=&quot;bar&quot; min-occurs=&quot;0&quot;/&gt;
         &lt;asl:element ref-elem=&quot;baz&quot; min-occurs=&quot;0&quot;/&gt;
       &lt;/asl:sequence&gt;
     &lt;/xcl:else&gt;
   &lt;/xcl:if&gt;
&lt;/asl:element&gt;

you will notice that ASL can be mixed with other XML libraries (above, 
XCL that stands for the XML Control Language); this is a very useful 
feature that makes the abstract tree of the schema dynamic (other schema 
technologies have a static abstract tree) which boost the expressiveness 
of the language (isn't that a features that you are looking for ?)

&gt; 
&gt; Nonetheless, I have been more or less pleased with the final results in most cases.  Having heard much praise of Relax NG, I recently decided to try it out, hoping it would be able to resolve these issues.  Here's what I found:
&gt; - It does relieve the &quot;no ambiguity&quot; problem and makes enforcing that sort of rules much easier.
&gt; - It does not resolve most of the business logic issues, but there are other technologies that can be used in combination with either Relax NG or XSD to resolve these issues, so that can be worked around in either case.
&gt; - It does not appear to relieve the complexity of representing some types of data structures (see the one described above-as far as I can tell, it would not be significantly easier to define in Relax NG than it is in XSD).
&gt; - There is only a rudimentary concept of type definition and virually none of inheritance.  Designing good, object-oriented data models is practically impossible in Relax NG; for me, this is a HUGE deficiency.  For instance, say Foo is an abstract data type with several fields, including an id field (any mixed data allowed) and a type field (with enumerated values); Bar is one of several concrete subtypes of Foo, which restricts the content of the id field (must contain two elements, a groupId and a subId) and the type field (to a subset of the values enumerated by Foo) and appends several new fields; other subtypes have completely different restrictions on the id and type fields and append various different new fields.  In XSD, implementing this is fairly straightforward (although not necessarily simple and certainly more verbose than I would prefer):  Foo is an abstract complex type, and Bar and the other subtypes must derive from it first via restriction (creating the re
strictions on id and type) and then via extension (appending the new fields).  In Relax NG, by contrast, I could find only two ways of doing this, neither of which was at all acceptable:  One is to get rid of Foo completely and reference its fields separately in each subtype-this is unacceptable to me as it completely violates DRY and object-oriented design; the other is to define each subtype of Foo in a separate file, importing Foo and redefining as necessary-this is marginally better from an OOP point-of-view, but still makes it impossible for a schema to use &quot;any valid subtype of Foo&quot; as a content definition without violating the Open-Closed principle.
&gt; - Relax NG provides no way of specifying cardinalities other than 0, 1, and infinity!  This is also a big one for me--if I need at least 2 and no more than 20 occurrences of the foo element (fairly common in my data definitions), there's NO WAY I'm going to define two required foo elements and eighteen optional ones!

In ASL, cardinalities support &quot;2&quot; or &quot;20&quot;, but can also be dynamic 
&quot;{1+1}&quot; or &quot;{count(../column[1]/cell)}&quot; or whatever you find useful with 
XPath

&gt; 
&gt; Now, I'm hoping that some Relax NG expert will come along and prove me wrong about some or all of these things, since I only experimented with it for a couple of days.  If not, for me these deficiencies in Relax NG *far* outweigh its benefits over XSD-there's really no comparison.  As much as I would like to see some aspects of XSD improved, unless someone can propose real alternatives for issues like the ones above, Relax NG is simply not an option for the type of data I work with.
&gt; 
&gt; As a postscript, let me say I'm very thankful that the tone of this thread has been gradually transitioning to actual constructive argument (at which this list is normally rather good) rather than the ridiculously juvenile mud-slinging that was predominant early last week-in particular, I've appreciated the level-headed input from Jim Tivy, Liam Quin, Ken Holman, and Michael Kay.  Unfortunately there are still some emotionally charged but pretty much meaningless (or worse, completely false) words being thrown around, but at least those aren't in the majority anymore.  In all good humor, I have to say that XML-dev is by far the most argumentative mailing list to which I've ever been a subscriber. :-)
&gt; 
&gt; Doug Glidden
&gt; Software Engineer
&gt; The Boeing Company
&gt; &#68;ougl&#97;ss.A.Glid&#x64;en&#64;&#x62;&#x6f;&#101;&#105;ng.c&#x6f;&#109;
&gt; _______________________________________________________________________
&gt; 
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt; 
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#120;&#109;&#x6c;&#x2d;&#100;e&#118;-un&#115;&#117;bs&#x63;ri&#98;&#101;&#x40;&#x6c;&#x69;s&#x74;&#115;&#x2e;x&#109;l&#x2e;or&#103;
&gt; subscribe: &#120;ml-de&#x76;&#x2d;s&#117;&#x62;s&#99;&#114;i&#98;e&#x40;list&#115;&#x2e;x&#x6d;l&#46;&#x6f;&#x72;g
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt; 


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30180.html</link><pubDate>Thu, 19 Nov 2009 11:42:22 GMT</pubDate></item><item><title>[Announce] Poll for hands-on XML training offerings in Europe Q1'2010 (X</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Please ignore the following if you have no interest in XML-related training.

In Q1'2010 I will be in Europe a couple of times for some standards 
meetings (<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a> and ISO) and conferences ( http://www.XMLPrague.cz 
and PEPPOL) and I like to take advantage of my presence there by 
offering Crane's hands-on training classes in the week before or 
after each of the events, open to public subscription.

I'll be in Copenhagen in February and in Prague and Stockholm in March.

But it is a gamble to decide on which training class to offer and 
find no-one is interested in that particular topic, because of hotel 
and event obligations that need to be paid in advance or reserved 
with the risk of forfeit.  We realize not many people in these 
economic times have money for training, so we are now trying to 
target our offerings specifically where we learn there is demand and 
availability of students.

Last year's http://www.XMLPrague.cz conference was great and we did 
our training adjacent to the conference and our students were 
conference attendees.  The venue we have chosen again in Prague next 
year has room for only 6 students (a large 14th century hotel room), 
so if <a title="Online XML Training" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/quickstart/">XML training</a> at this time of year and in conjunction with the 
conference is of interest to you, it would be important to sign up 
your interest soon.

To address this urgency to start making plans, I am polling the 
various XML lists for any interest in training in these cities early 
next year.  If you are interested in hands-on training on any of 
XSLT, XQuery, <a title="xslfo" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xsl_fo.html">XSL-FO</a>, the <a title="UBL Schemas" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://schemas.stylusstudio.com/ubl/index.html">Universal Business Language</a> or <a title="code lists" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/edifact/">code lists</a> 
in XML, and you would be interested in attending, please let us know 
and we will figure out what we can do.  To see the proposed dates, 
please visit:

   http://www.CraneSoftwrights.com/forms/interest.php
   (the page has links to syllabi)

On the form, please indicate all of the offered dates that you would 
be interested in, and we'll make a decision based on the response 
level we get for each class and date.

Thanks!  Please direct any questions to me off-list.

. . . . . . . . . Ken

p.s. it hasn't been decided but I might be in Perth Australia in 
January or February, so you won't see it on the form, but if you are 
in that area, please let me know in a mail message if you are 
interested in training on any of our subjects and we'll see about 
setting up a publicly-subscribed class.

cc: XML-Dev, XSL List, XQuery Talk, XML-Doc, UBL Dev, CLR Dev, 
Antenna House list, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/renderx/xep.html">RenderX</a> list, MarkLogic list

--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/<a title="XPath Download" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xpath.html">XPath 1.0</a>/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:g&#x6b;ho&#x6c;&#x6d;a&#110;&#64;C&#x72;an&#101;&#83;&#x6f;&#102;tw&#114;&#x69;g&#104;ts.c&#x6f;m">mailto:g&#x6b;ho&#x6c;&#x6d;a&#110;&#64;C&#x72;an&#101;&#83;&#x6f;&#102;tw&#114;&#x69;g&#104;ts.c&#x6f;m</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60180.html</link><pubDate>Thu, 19 Nov 2009 10:05:03 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>

&gt; &gt; 2) Isn't it the case that some of the complexities of XSD 
&gt; are that way 
&gt; &gt; to allow for that validation speed?
&gt; &gt;   
&gt; Do you have an example?  (I imagine it causes some 
&gt; simplifications as well as some complexities.)
&gt; 

Some of the restrictions are certainly there for that reason, like the
subset of XPath permitted in identity constraints, the ban on backtracking
(UPA etc), and the rules in conditional type assignment that restrict you to
looking at attributes of the current element.

I'm always suspicious of such rules: on the whole I think it's better to let
users decide where to make the trade-off between performance and
functionality; and I think writers of specifications are sometimes
unimaginative when they consider implementation options. There's a classic
in XSD, the rules for restriction of xs:all content models, where the spec
explicitly says that a rule is there only for implementation convenience,
and it actually causes my implementation a great deal of inconvenience to
enforce it.

As for streaming, I think we'll find in the fullness of time that a
reasonably large subset of the assertions that people write (either in XSD
1.1 or in Schematron) can actually be evaluated in streaming mode.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20180.html</link><pubDate>Thu, 19 Nov 2009 07:57:55 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Phillipe,

That sounds pretty slick--definitely sounds like it goes even above and beyond what I've been looking for in many ways.  I noticed though that you didn't comment on my complaints about typing--does ASL support the concept of complex data typing with type derivation, etc.?  If so, it definitely sounds promising.

By the way, I love your signature--gave me a great laugh this morning! :-)

Doug Glidden
Software Engineer
The Boeing Company
&#x44;&#x6f;ug&#108;ass.A.&#x47;li&#100;d&#101;n&#64;&#x62;o&#x65;in&#x67;.c&#x6f;&#x6d;

-----Original Message-----
From: Philippe Poulard [<A  HREF="mailto:&#112;&#x68;i&#108;ip&#x70;&#101;&#46;&#112;&#111;&#117;l&#97;rd&#x40;&#115;&#111;&#112;&#x68;ia&#46;&#x69;n&#114;&#x69;&#x61;.f&#x72;">mailto:&#112;&#x68;i&#108;ip&#x70;&#101;&#46;&#112;&#111;&#117;l&#97;rd&#x40;&#115;&#111;&#112;&#x68;ia&#46;&#x69;n&#114;&#x69;&#x61;.f&#x72;</A>]
Sent: Thursday, November 19, 2009 05:42
To: Glidden, Douglass A
Cc: &#120;ml-d&#x65;&#x76;&#x40;&#x6c;ists&#x2e;&#x78;m&#108;&#46;&#x6f;r&#x67;
Subject: Re:  <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> spec and <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>

Hi,

I have presented the &quot;Active Schema Language&quot; at Balisage last year, that covers rather well most of the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">features</a> you expect:
http://www.balisage.net/Proceedings/vol1/html/Poulard01/BalisageVol1-Poulard01.html
Slides:
http://hal.inria.fr/docs/00/32/26/61/ANNEX/Bal2008poul061003.pdf
Implementation:
http://reflex.gforge.inria.fr/

Glidden, Douglass A wrote:
&gt; From the perspective of an application developer who uses XML for storing fairly complex hierarchical data (as opposed to documents), I have a very basic question:  Is there any real, practical reason that Relax NG is _universally_ better than XSD?
&gt;
&gt; Here's the background for my question:  I've been using XSDs for generating object-oriented <a title="data models" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema_editor.html">data models</a> for some time, and have been frustrated by various inflexibilities in XSDs.  For instance:
&gt; - Derivation by restriction, while conceptually very useful, seems slightly cumbersome in operation; in particular, I wish it could be accomplished with less repetition (I'm a fanatical believer in DRY).  I can live with the repetition, though, because I am assured that, if I make a typographical or some other error, the XSD will (almost) always fail to validate (&quot;Bar is not a valid restriction of Foo&quot;), so the the possiblity of unintended changes being introduced due to the repetition is kept to a minimum.
&gt; - Certain fairly simple data structures can only be achieved in XSD (if at all) with ridiculously verbose patterns; for instance, how do you represent a structure with five possible elements, at least one of which must be present and none of which may be repeated?  The best method I have found takes about 25 lines and far too much code repetition.

With ASL, you just express things in the way you think of them:
     &lt;asl:element name=&quot;property&quot;&gt;
         &lt;asl:select max-occurs=&quot;unbounded&quot;&gt;
             &lt;asl:element ref-elem=&quot;width&quot; min-occurs=&quot;0&quot;/&gt;
             &lt;asl:element ref-elem=&quot;color&quot; min-occurs=&quot;0&quot;/&gt;
             &lt;asl:element ref-elem=&quot;border&quot; min-occurs=&quot;0&quot;/&gt;
         &lt;/asl:select&gt;
     &lt;/asl:element&gt;
by default, cardinalities are set to 1, which means that &lt;property&gt; must have at least 1 occurrence, and within, the other elements can't appear more than once

&lt;property&gt;&lt;!--valid--&gt;
        &lt;width/&gt;
&lt;/property&gt;
&lt;property&gt;&lt;!--valid--&gt;
        &lt;width/&gt;
        &lt;border/&gt;
&lt;/property&gt;
&lt;property&gt;
        &lt;width/&gt;
        &lt;width/&gt;&lt;!--unexpected element--&gt;
&lt;/property&gt;
&lt;property&gt;
        &lt;width/&gt;
        &lt;border/&gt;
        &lt;width/&gt;&lt;!--unexpected element--&gt;
&lt;/property&gt;
&lt;property/&gt;&lt;!--element missing--&gt;

&gt; - Most business logic cannot be represented, like &quot;the value of the foo element must be less than or equal to the value of the bar element&quot;.

You will find here some usefull use cases of business logic representation:
http://reflex.gforge.inria.fr/tutorial-schemas.html

&gt; - I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which make it difficult to enforce rules such as &quot;if the value of the foo element is xyz, then the bar and baz elements are required, but otherwise they are optional&quot;.

Straightforward in ASL:

&lt;asl:element name=&quot;xxxxxx&quot;&gt;
   &lt;xcl:if test=&quot;{/path/to/foo = 'xyz'}&quot;&gt;
     &lt;xcl:then&gt;
       &lt;asl:sequence&gt;
         &lt;asl:element ref-elem=&quot;bar&quot;/&gt;
         &lt;asl:element ref-elem=&quot;baz&quot;/&gt;
       &lt;/asl:sequence&gt;
     &lt;/xcl:then&gt;
     &lt;xcl:else&gt;
       &lt;asl:sequence&gt;
         &lt;asl:element ref-elem=&quot;bar&quot; min-occurs=&quot;0&quot;/&gt;
         &lt;asl:element ref-elem=&quot;baz&quot; min-occurs=&quot;0&quot;/&gt;
       &lt;/asl:sequence&gt;
     &lt;/xcl:else&gt;
   &lt;/xcl:if&gt;
&lt;/asl:element&gt;

you will notice that ASL can be mixed with other XML libraries (above, XCL that stands for the XML Control Language); this is a very useful feature that makes the abstract tree of the schema dynamic (other schema technologies have a static abstract tree) which boost the expressiveness of the language (isn't that a features that you are looking for ?)

&gt;
&gt; Nonetheless, I have been more or less pleased with the final results in most cases.  Having heard much praise of Relax NG, I recently decided to try it out, hoping it would be able to resolve these issues.  Here's what I found:
&gt; - It does relieve the &quot;no ambiguity&quot; problem and makes enforcing that sort of rules much easier.
&gt; - It does not resolve most of the business logic issues, but there are other technologies that can be used in combination with either Relax NG or XSD to resolve these issues, so that can be worked around in either case.
&gt; - It does not appear to relieve the complexity of representing some types of data structures (see the one described above-as far as I can tell, it would not be significantly easier to define in Relax NG than it is in XSD).
&gt; - There is only a rudimentary concept of type definition and virually
&gt; none of inheritance.  Designing good, object-oriented data models is
&gt; practically impossible in Relax NG; for me, this is a HUGE deficiency.
&gt; For instance, say Foo is an abstract data type with several fields,
&gt; including an id field (any mixed data allowed) and a type field (with
&gt; enumerated values); Bar is one of several concrete subtypes of Foo,
&gt; which restricts the content of the id field (must contain two
&gt; elements, a groupId and a subId) and the type field (to a subset of
&gt; the values enumerated by Foo) and appends several new fields; other
&gt; subtypes have completely different restrictions on the id and type
&gt; fields and append various different new fields.  In XSD, implementing
&gt; this is fairly straightforward (although not necessarily simple and
&gt; certainly more verbose than I would prefer):  Foo is an abstract
&gt; complex type, and Bar and the other subtypes must derive from it first
&gt; via restriction (creating the re
strictions on id and type) and then via extension (appending the new fields).  In Relax NG, by contrast, I could find only two ways of doing this, neither of which was at all acceptable:  One is to get rid of Foo completely and reference its fields separately in each subtype-this is unacceptable to me as it completely violates DRY and object-oriented design; the other is to define each subtype of Foo in a separate file, importing Foo and redefining as necessary-this is marginally better from an OOP point-of-view, but still makes it impossible for a schema to use &quot;any valid subtype of Foo&quot; as a content definition without violating the Open-Closed principle.
&gt; - Relax NG provides no way of specifying cardinalities other than 0, 1, and infinity!  This is also a big one for me--if I need at least 2 and no more than 20 occurrences of the foo element (fairly common in my data definitions), there's NO WAY I'm going to define two required foo elements and eighteen optional ones!

In ASL, cardinalities support &quot;2&quot; or &quot;20&quot;, but can also be dynamic &quot;{1+1}&quot; or &quot;{count(../column[1]/cell)}&quot; or whatever you find useful with XPath

&gt;
&gt; Now, I'm hoping that some Relax NG expert will come along and prove me wrong about some or all of these things, since I only experimented with it for a couple of days.  If not, for me these deficiencies in Relax NG *far* outweigh its benefits over XSD-there's really no comparison.  As much as I would like to see some aspects of XSD improved, unless someone can propose real alternatives for issues like the ones above, Relax NG is simply not an option for the type of data I work with.
&gt;
&gt; As a postscript, let me say I'm very thankful that the tone of this
&gt; thread has been gradually transitioning to actual constructive
&gt; argument (at which this list is normally rather good) rather than the
&gt; ridiculously juvenile mud-slinging that was predominant early last
&gt; week-in particular, I've appreciated the level-headed input from Jim
&gt; Tivy, Liam Quin, Ken Holman, and Michael Kay.  Unfortunately there are
&gt; still some emotionally charged but pretty much meaningless (or worse,
&gt; completely false) words being thrown around, but at least those aren't
&gt; in the majority anymore.  In all good humor, I have to say that
&gt; XML-dev is by far the most argumentative mailing list to which I've
&gt; ever been a subscriber. :-)
&gt;
&gt; Doug Glidden
&gt; Software Engineer
&gt; The Boeing Company
&gt; &#x44;&#111;ug&#x6c;&#97;s&#x73;.A.&#71;li&#100;d&#x65;n&#x40;&#x62;o&#101;&#105;ng&#x2e;&#99;o&#109;
&gt; ______________________________________________________________________
&gt; _
&gt;
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS to
&gt; support XML implementation and development. To minimize spam in the
&gt; archives, you must subscribe before posting.
&gt;
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: xml&#45;&#x64;&#101;v&#45;&#x75;&#x6e;&#x73;ub&#x73;&#x63;ribe&#x40;&#108;&#105;s&#116;&#x73;.&#120;m&#108;&#x2e;org
&gt; subscribe: xml-&#x64;&#x65;&#x76;-su&#98;&#x73;&#99;&#x72;&#x69;&#98;e&#x40;lis&#x74;&#x73;.xm&#108;.&#111;r&#x67; List archive:
&gt; http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;


--
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40180.html</link><pubDate>Thu, 19 Nov 2009 06:35:44 GMT</pubDate></item><item><title>Re:  [ANN] Python XML Schema Bindings 1.0.0</title><description><![CDATA[<!--X-Body-of-Message-->
On Wed, Nov 18, 2009 at 5:01 PM, Peter A. Bigot <span dir="ltr">&lt;<a href="mailto:bi&#103;ot&#x70;&#64;ac&#109;.&#x6f;r&#x67;">bi&#103;ot&#x70;&#64;ac&#109;.&#x6f;r&#x67;</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
PyXB version 1.0.0 is now available from SourceForge at: http://sourceforge.net/projects/pyxb/<br>
<br>
PyXB (Python XML Schema Bindings; &quot;pixbee&quot;) is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema.  In concept it is similar to JAXB for Java and CodeSynthesis XSD for C++.  The current release supports XML Schema 1.0.<br>

<br>
Version 1.0.0 is feature-complete and suitable for production development where validation of incoming and generated documents is desired.  The following schema constructs are supported:<br>
<br>
   * Class constants corresponding to string enumeration constraints<br>
   * Simple and complex type definitions<br>
   * List and union datatypes<br>
   * Constraints on (simple) datatypes (e.g., minInclusive, length)<br>
   * Model groups and attribute groups<br>
   * Complex content models (all, sequence, choice); minOccurs and maxOccurs<br>
   * Abstract types, xsi:type, substitution groups<br>
   * Nillable elements with xsi:nil<br>
   * Namespace qualified attributes and elements<br>
   * Documentation annotations present in the schema are converted to Python docstrings in the generated bindings.<br>
   * Pattern constraints (as long as the simple type derives from something that is represented as a Python string)<br></blockquote><div><br>This looks like impressive work.<br><br>I must say, though, aren&#39;t static-language-style data bindings rather rigid, and counter to the spirit of Python?  Of course, I develop a tool with a very different philosophy [1], but perhaps it&#39;s possible to probe the matter with use-cases.<br>
<br>[1] http://wiki.xml3k.org/Amara2/Tutorial#ModelingXML<br clear="all"></div></div><br><br>-- <br>Uche Ogbuji                       http://uche.ogbuji.net<br>
Founding Partner, Zepheira        http://zepheira.com<br>Linked-in profile: http://www.linkedin.com/in/ucheogbuji<br>Articles: http://uche.ogbuji.net/tech/publications/<br>
TNB: http://www.thenervousbreakdown.com/author/uogbuji/<br>Friendfeed: http://friendfeed.com/uche<br>Twitter: http://twitter.com/uogbuji<br>
http://www.google.com/profiles/uche.ogbuji<br>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00180.html</link><pubDate>Wed, 18 Nov 2009 23:39:57 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Andrew Welch wrote:

&gt; Is this still the Schematron-that-is-a-generated-XSLT-transform, or is
&gt; there a Java based streaming validator available now?

What difference does it make? A Java implementation will not necessarily
be streaming:  Probotron4J for example is Java but not streaming.

Streaming has never been a design requirement for Schematron. There are a
couple of libraries that allow XPath rewriting of reverse axes, and these
could indeed allow streaming implementation.

However, someone could have made a streaming implementation long ago with
the STAX library, if they had wanted to. But no-one has in the last 10
years, to my knowledge, so I have no evidence that a streaming
implementation is something that anyone actually wants.

Cheers
Rick Jelliffe
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50170.html</link><pubDate>Wed, 18 Nov 2009 23:32:10 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Glidden, Douglass A wrote:
&gt; From the perspective of an application developer who uses XML for storing fairly complex hierarchical data (as opposed to documents), I have a very basic question:  Is there any real, practical reason that Relax NG is _universally_ better than XSD?
&gt;
&gt; Here's the background for my question:  I've been using XSDs for generating object-oriented data models for some time, and have been frustrated by various inflexibilities in XSDs.  For instance:
&gt; - Derivation by restriction, while conceptually very useful, seems slightly cumbersome in operation; in particular, I wish it could be accomplished with less repetition (I'm a fanatical believer in DRY).  I can live with the repetition, though, because I am assured that, if I make a typographical or some other error, the XSD will (almost) always fail to validate (&quot;Bar is not a valid restriction of Foo&quot;), so the the possiblity of unintended changes being introduced due to the repetition is kept to a minimum.
&gt; - Certain fairly simple data structures can only be achieved in XSD (if at all) with ridiculously verbose patterns; for instance, how do you represent a structure with five possible elements, at least one of which must be present and none of which may be repeated?  The best method I have found takes about 25 lines and far too much code repetition.
&gt; - Most business logic cannot be represented, like &quot;the value of the foo element must be less than or equal to the value of the bar element&quot;.
&gt; - I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which make it difficult to enforce rules such as &quot;if the value of the foo element is xyz, then the bar and baz elements are required, but otherwise they are optional&quot;.
&gt;
&gt; Nonetheless, I have been more or less pleased with the final results in most cases.  Having heard much praise of Relax NG, I recently decided to try it out, hoping it would be able to resolve these issues.  Here's what I found:
&gt; - It does relieve the &quot;no ambiguity&quot; problem and makes enforcing that sort of rules much easier.
&gt; - It does not resolve most of the business logic issues, but there are other technologies that can be used in combination with either Relax NG or XSD to resolve these issues, so that can be worked around in either case.
&gt; - It does not appear to relieve the complexity of representing some types of data structures (see the one described above-as far as I can tell, it would not be significantly easier to define in Relax NG than it is in XSD).
&gt; - There is only a rudimentary concept of type definition and virually none of inheritance.  Designing good, object-oriented data models is practically impossible in Relax NG; for me, this is a HUGE deficiency.  For instance, say Foo is an abstract data type with several fields, including an id field (any mixed data allowed) and a type field (with enumerated values); Bar is one of several concrete subtypes of Foo, which restricts the content of the id field (must contain two elements, a groupId and a subId) and the type field (to a subset of the values enumerated by Foo) and appends several new fields; other subtypes have completely different restrictions on the id and type fields and append various different new fields.  In XSD, implementing this is fairly straightforward (although not necessarily simple and certainly more verbose than I would prefer):  Foo is an abstract complex type, and Bar and the other subtypes must derive from it first via restriction (creating the restrictions on id and type) and then via extension (appending the new fields).  In Relax NG, by contrast, I could find only two ways of doing this, neither of which was at all acceptable:  One is to get rid of Foo completely and reference its fields separately in each subtype-this is unacceptable to me as it completely violates DRY and object-oriented design; the other is to define each subtype of Foo in a separate file, importing Foo and redefining as necessary-this is marginally better from an OOP point-of-view, but still makes it impossible for a schema to use &quot;any valid subtype of Foo&quot; as a content definition without violating the Open-Closed principle.
&gt; - Relax NG provides no way of specifying cardinalities other than 0, 1, and infinity!  This is also a big one for me--if I need at least 2 and no more than 20 occurrences of the foo element (fairly common in my data definitions), there's NO WAY I'm going to define two required foo elements and eighteen optional ones!
&gt;
&gt; Now, I'm hoping that some Relax NG expert will come along and prove me wrong about some or all of these things, since I only experimented with it for a couple of days.  If not, for me these deficiencies in Relax NG *far* outweigh its benefits over XSD-there's really no comparison.  As much as I would like to see some aspects of XSD improved, unless someone can propose real alternatives for issues like the ones above, Relax NG is simply not an option for the type of data I work with
&gt;   
Three responses.
 

First is that XSD was not designed as an abstract data modeling language 
but rather a markup description language: even though the grammars have 
been somewhat extended with xsd:any and wildcards (and now assertions 
and conditional types), XSD is not a substitute for the kinds of things 
you would use, say, UML for. (And then convert the UML to RELAX NG.) 
XBRL is an example of a system that attempts to piggyback data modeling 
on top of XSD, and makes an almost fatal complexity. 

The second is that IMHO it is better to see RELAX NG as part of the ISO 
DSDL standard, so when there is some feature missing from RELAX NG, it 
may be provided elsewhere.  This is a layered approach, where each 
language tries to do one thing really well, rather than a monolithic 
approach where . For example, you organize your system to that there is 
a master RELAX NG schema, then you add your restrictions as a layer in 
Schematron. You do the detailed cardnality constraints in Schematron. 
The advantage of this approach is that you are not at the mercy of the 
abstractions provided by the schema language: you don't need to think 
&quot;what combination of restiction/extension/redeclaration do I need, and 
what are the order, ambiguity and UPA issues?&quot; because you can just say 
&quot;Inside a Bar, element X is not allowed&quot; directly.

Why model abstractly things that can be more simply said directly?   If 
the intent of all the data modeling is to reveal the connections and 
design of the system, the grammar-based systems have the fundamentally 
poor abstraction weakness that they don't allow negatives or exclusions, 
one of the great tools of logic simplification: you don't need to have 
types in order to do restrictions, and you don't have to have types in 
order to document and explain restrictions.

The third thing is that the design of RELAX NG is, to my mind, that 
abstract assertions about the relationships between schema items does 
not belong in the schemas themselves. They would better left to tools. 
For example, there is a third party tool that checks if a RELAX NG 
schema is ambiguous or not. But certainly the lack of tools for RELAX NG 
shows that it has not been adopted by people who are so keen on 
automated conversion from abstract types to the schema language. Because 
of RELAX NGs strong theoretical base, it should be easier to do these 
kind of set operations on. 

I would note that one large schema we maintain, in which a master 
vocabulary is used by a dozen committees to make multiple local schemas, 
we actually remove type derivation information from the working draft 
schemas, and only add it at the end (it is a pain) because it is too 
much trouble maintaining the base schemas to track the work in progress. 
So we use XSD, but in the same kind of approach (and custom tooling) 
that would have been necessary if we were using RELAX NG. (In fact, they 
are discussing abandoning much use of type derivation and just moving to 
a master XSD and much more Schematron, just for reasons of directness 
and simplicity.)

&gt; As a postscript, let me say I'm very thankful that the tone of this thread has been gradually transitioning to actual constructive argument (at which this list is normally rather good) rather than the ridiculously juvenile mud-slinging that was predominant early last week-in particular, I've appreciated the level-headed input from Jim Tivy, Liam Quin, Ken Holman, and Michael Kay.
Argumentative on this topic: that would be me! I plead guilty.  For 
constructive responses, please see the ISO standards for RELAX NG and 
Schematron etc which a number of us on this list have worked on, and the 
open source implementations we have made. Please also note that there 
was no mud-slinging at individuals. If some of us have lost patience at 
XSD because we have to use the wretched monstrosity, please don't blame 
the victims!

Cheers
Rick Jelliffe

P.S. &quot;how do you represent a structure with five possible elements, at 
least one of which must be present and none of which may be repeated? 
The best method I have found takes about 25 lines and far too much code 
repetition.&quot;

Here is one straight-forward Schematron schema, in 10 lines, including 
documentation, if I understand the requirement.

&lt;rule context=&quot;x&quot;&gt;
   &lt;assert test=&quot;count(a) &amp;lt;= 1&quot;&gt;An a may only appear once in an 
x&lt;/assert&gt;
   &lt;assert test=&quot;count(b) &amp;lt;= 1&quot;&gt;An b may only appear once in an 
x&lt;/assert&gt;
   &lt;assert test=&quot;count(c) &amp;lt;= 1&quot;&gt;An d may only appear once in an 
x&lt;/assert&gt;
   &lt;assert test=&quot;count(d) &amp;lt;= 1&quot;&gt;An e may only appear once in an 
x&lt;/assert&gt;
   &lt;assert test=&quot;count(e) &amp;lt;= 1&quot;&gt;An f may only appear once in an 
x&lt;/assert&gt;
   &lt;assert test=&quot;count(*) &gt; 0&quot;&gt;There must be at least one element in 
x&lt;/assert&gt;
   &lt;assert test=&quot;count(*) = count(a) + count(b) + count(c) + count(d) + 
count(e)&quot;&gt;
     The only elements allowed in x are a, b, c, d, and e&lt;/assert&gt;
&lt;/rule&gt;

And here is another version, which demonstrates that you can do kinds of 
abstract type modeling
in Schematron that are unavailable in XSD. In this case, it is mixin 
style modeling (like interfaces
in Java). Note that there is no combinatorial explosion: in fact, to add 
an extra child you only
need to alter the last XPath, not even add a new element.

&lt;rule abstract=&quot;true&quot; id=&quot;non-empty-element&quot;&gt;
   &lt;assert test=&quot;count(*) &gt; 0&quot;&gt;There must be at least one element in 
&lt;name/&gt;&lt;/assert&gt;
&lt;/rule&gt;

&lt;rule abstract=&quot;true&quot;  id=&quot;bag&quot;&gt;
   &lt;assert test=&quot;*[not(following-sibling::*[name()=current()/name()])]&quot;&gt;
   No child of x may appear more than once.&lt;/assert&gt;
&lt;/rule&gt;

&lt;rule context=&quot;x&quot;&gt;
   &lt;extends rule=&quot;bag&quot; /&gt;
   &lt;extends rule=&quot;non-empty-element&quot; /&gt; 
   &lt;assert test=&quot;count(*) = count(a) + count(b) + count(c) + count(d) + 
count(e)&quot;&gt;
     The only elements allowed in x are a, b, c, d, and e&lt;/assert&gt;
&lt;/rule&gt;

I think that XSD 1.1 will have an OK story: you could use xsd:any with 
maxOccurs=1,
and then an assertion using     count(*) &gt; 0      I guess you could use 
RELAX NG &amp; in the
same way.

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10170.html</link><pubDate>Wed, 18 Nov 2009 18:13:01 GMT</pubDate></item><item><title>[ANN] Python XML Schema Bindings 1.0.0</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
PyXB version 1.0.0 is now available from SourceForge at: 
http://sourceforge.net/projects/pyxb/

PyXB (Python XML Schema Bindings; &quot;pixbee&quot;) is a pure Python package 
that generates Python source code for classes that correspond to data 
structures defined by XMLSchema.  In concept it is similar to JAXB for 
Java and CodeSynthesis XSD for C++.  The current release supports XML 
Schema 1.0.

Version 1.0.0 is feature-complete and suitable for production 
development where validation of incoming and generated documents is 
desired.  The following schema constructs are supported:

    * Class constants corresponding to string enumeration constraints
    * Simple and complex type definitions
    * List and union datatypes
    * Constraints on (simple) datatypes (e.g., minInclusive, length)
    * Model groups and attribute groups
    * Complex content models (all, sequence, choice); minOccurs and 
maxOccurs
    * Abstract types, xsi:type, substitution groups
    * Nillable elements with xsi:nil
    * Namespace qualified attributes and elements
    * Documentation annotations present in the schema are converted to 
Python docstrings in the generated bindings.
    * Pattern constraints (as long as the simple type derives from 
something that is represented as a Python string)

The full distribution includes generated bindings for twenty-three 
namespaces related to web services (including several versions of SOAP 
and WSDL), and twenty-eight namespaces from the Open Geospatial 
Consortium's Geographic Information System schema.

For further information and links to the support forum and mailing list, 
please consult the documentation available at: http://pyxb.sourceforge.net/

Peter


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90170.html</link><pubDate>Wed, 18 Nov 2009 17:01:56 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
2009/11/18  &lt;rjelliff&#x65;&#64;all&#101;&#x74;te.&#99;&#x6f;&#x6d;&#46;&#97;u&gt;:
&gt; Andrew Welch wrote:
&gt;
&gt;&gt; Is this still the Schematron-that-is-a-generated-XSLT-transform, or is
&gt;&gt; there a Java based streaming validator available now?
&gt;
&gt; What difference does it make? A Java implementation will not necessarily
&gt; be streaming:  Probotron4J for example is Java but not streaming.

Looking at the source for Probotron4J, it simply creates and then
applies the XSLT.... ?   That isn't really an implemenation, more like
a helper utility.

I mentioned the streaming aspect for 2 reasons:

1) If validation performance is an issue, can RNG + Schematron still
be considered when XSD is validation so fast?

2) Isn't it the case that some of the complexities of XSD are that way
to allow for that validation speed?



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80170.html</link><pubDate>Wed, 18 Nov 2009 13:20:48 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; Undoubtedly XSD could have been better, but if your requirements are met by
&gt; what it offers then there's no real motivation to use some other approach.

For the work I've done, XSD with xs:assert and xs:alternative covers
most things (roll on XSD 1.1!)... If someone is considering which
schema language to use on a project today, surely XSD is the still the
right choice with 1.1 around the corner (or just use it now with
Saxon)?

XSD 1.1 vs RNG / Schematron / Whatever is a more worthwhile
discussion, the debate involving 1.0 has been done to death, and will
be out of date soon.





-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40170.html</link><pubDate>Wed, 18 Nov 2009 10:29:26 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
2009/11/18 Rick Jelliffe &lt;&#114;j&#x65;&#108;l&#x69;&#x66;&#x66;e&#64;&#97;&#108;lett&#101;&#46;c&#111;&#109;&#46;au&gt;:
&gt; The second is that IMHO it is better to see RELAX NG as part of the ISO DSDL
&gt; standard, so when there is some feature missing from RELAX NG, it may be
&gt; provided elsewhere.  This is a layered approach, where each language tries
&gt; to do one thing really well, rather than a monolithic approach where . For
&gt; example, you organize your system to that there is a master RELAX NG schema,
&gt; then you add your restrictions as a layer in Schematron. You do the detailed
&gt; cardnality constraints in Schematron.

Is this still the Schematron-that-is-a-generated-XSLT-transform, or is
there a Java based streaming validator available now?



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30170.html</link><pubDate>Wed, 18 Nov 2009 10:04:45 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I think a lot of this is horses for courses.

I think for a lot of programmers with a Java/C#/C++ background the structure 
of XSD mirrors what they do in classes.  So something like:

&lt;xs:element name='foo' type='xs:int' minOccurs='0' maxOccurs='unbounded'/&gt;

is more readily mappable to their everyday mindset than:

&lt;zeroOrMore&gt;
    &lt;element name='foo'&gt;
        &lt;data type='int/&gt;
    &lt;/element&gt;
&lt;/zeroOrMore&gt;

Also, as classes tend to be a bag of bits without much co-occurence 
constraints it probably doesn't even occur to them that XSD is weak in this 
area.

I think for a lot of people XML is just a means to an end, and the less they 
have to deal with it the better.  So they pick up the first thing they see, 
decide that it's adequate for their needs and go with it.  Maybe also a case 
of nobody got fired for choosing XSD!

For example, it was stated previously on this list that people tend to do 
things in Java that would be better done in XSLT.  Sometimes the devil you 
know is the better route to take.  Especially as pointy-haired boss likes to 
see regular progress updates, and doesn't consider surfing the web as 
productive.

Undoubtedly XSD could have been better, but if your requirements are met by 
what it offers then there's no real motivation to use some other approach.

My 2 cents (for today at least!)

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
----- Original Message ----- 
From: &quot;Rick Jelliffe&quot; &lt;&#114;&#106;e&#x6c;liffe&#64;all&#x65;t&#x74;&#x65;.com&#x2e;au&gt;
To: &lt;&#x78;&#x6d;&#108;&#45;&#x64;ev&#64;&#108;is&#x74;&#115;&#x2e;x&#109;&#108;&#46;&#111;&#x72;g&gt;
Sent: Wednesday, November 18, 2009 7:13 AM
Subject: Re:  XML spec and XSD



Glidden, Douglass A wrote:
&gt; From the perspective of an application developer who uses XML for storing 
&gt; fairly complex hierarchical data (as opposed to documents), I have a very 
&gt; basic question:  Is there any real, practical reason that Relax NG is 
&gt; _universally_ better than XSD?
&gt;
&gt; Here's the background for my question:  I've been using XSDs for 
&gt; generating object-oriented data models for some time, and have been 
&gt; frustrated by various inflexibilities in XSDs.  For instance:
&gt; - Derivation by restriction, while conceptually very useful, seems 
&gt; slightly cumbersome in operation; in particular, I wish it could be 
&gt; accomplished with less repetition (I'm a fanatical believer in DRY).  I 
&gt; can live with the repetition, though, because I am assured that, if I make 
&gt; a typographical or some other error, the XSD will (almost) always fail to 
&gt; validate (&quot;Bar is not a valid restriction of Foo&quot;), so the the possiblity 
&gt; of unintended changes being introduced due to the repetition is kept to a 
&gt; minimum.
&gt; - Certain fairly simple data structures can only be achieved in XSD (if at 
&gt; all) with ridiculously verbose patterns; for instance, how do you 
&gt; represent a structure with five possible elements, at least one of which 
&gt; must be present and none of which may be repeated?  The best method I have 
&gt; found takes about 25 lines and far too much code repetition.
&gt; - Most business logic cannot be represented, like &quot;the value of the foo 
&gt; element must be less than or equal to the value of the bar element&quot;.
&gt; - I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which 
&gt; make it difficult to enforce rules such as &quot;if the value of the foo 
&gt; element is xyz, then the bar and baz elements are required, but otherwise 
&gt; they are optional&quot;.
&gt;
&gt; Nonetheless, I have been more or less pleased with the final results in 
&gt; most cases.  Having heard much praise of Relax NG, I recently decided to 
&gt; try it out, hoping it would be able to resolve these issues.  Here's what 
&gt; I found:
&gt; - It does relieve the &quot;no ambiguity&quot; problem and makes enforcing that sort 
&gt; of rules much easier.
&gt; - It does not resolve most of the business logic issues, but there are 
&gt; other technologies that can be used in combination with either Relax NG or 
&gt; XSD to resolve these issues, so that can be worked around in either case.
&gt; - It does not appear to relieve the complexity of representing some types 
&gt; of data structures (see the one described above-as far as I can tell, it 
&gt; would not be significantly easier to define in Relax NG than it is in 
&gt; XSD).
&gt; - There is only a rudimentary concept of type definition and virually none 
&gt; of inheritance.  Designing good, object-oriented data models is 
&gt; practically impossible in Relax NG; for me, this is a HUGE deficiency. 
&gt; For instance, say Foo is an abstract data type with several fields, 
&gt; including an id field (any mixed data allowed) and a type field (with 
&gt; enumerated values); Bar is one of several concrete subtypes of Foo, which 
&gt; restricts the content of the id field (must contain two elements, a 
&gt; groupId and a subId) and the type field (to a subset of the values 
&gt; enumerated by Foo) and appends several new fields; other subtypes have 
&gt; completely different restrictions on the id and type fields and append 
&gt; various different new fields.  In XSD, implementing this is fairly 
&gt; straightforward (although not necessarily simple and certainly more 
&gt; verbose than I would prefer):  Foo is an abstract complex type, and Bar 
&gt; and the other subtypes must derive from it first via restriction (creating 
&gt; the restrictions on id and type) and then via extension (appending the new 
&gt; fields).  In Relax NG, by contrast, I could find only two ways of doing 
&gt; this, neither of which was at all acceptable:  One is to get rid of Foo 
&gt; completely and reference its fields separately in each subtype-this is 
&gt; unacceptable to me as it completely violates DRY and object-oriented 
&gt; design; the other is to define each subtype of Foo in a separate file, 
&gt; importing Foo and redefining as necessary-this is marginally better from 
&gt; an OOP point-of-view, but still makes it impossible for a schema to use 
&gt; &quot;any valid subtype of Foo&quot; as a content definition without violating the 
&gt; Open-Closed principle.
&gt; - Relax NG provides no way of specifying cardinalities other than 0, 1, 
&gt; and infinity!  This is also a big one for me--if I need at least 2 and no 
&gt; more than 20 occurrences of the foo element (fairly common in my data 
&gt; definitions), there's NO WAY I'm going to define two required foo elements 
&gt; and eighteen optional ones!
&gt;
&gt; Now, I'm hoping that some Relax NG expert will come along and prove me 
&gt; wrong about some or all of these things, since I only experimented with it 
&gt; for a couple of days.  If not, for me these deficiencies in Relax NG *far* 
&gt; outweigh its benefits over XSD-there's really no comparison.  As much as I 
&gt; would like to see some aspects of XSD improved, unless someone can propose 
&gt; real alternatives for issues like the ones above, Relax NG is simply not 
&gt; an option for the type of data I work with
&gt;
Three responses.


First is that XSD was not designed as an abstract data modeling language
but rather a markup description language: even though the grammars have
been somewhat extended with xsd:any and wildcards (and now assertions
and conditional types), XSD is not a substitute for the kinds of things
you would use, say, UML for. (And then convert the UML to RELAX NG.)
XBRL is an example of a system that attempts to piggyback data modeling
on top of XSD, and makes an almost fatal complexity.

The second is that IMHO it is better to see RELAX NG as part of the ISO
DSDL standard, so when there is some feature missing from RELAX NG, it
may be provided elsewhere.  This is a layered approach, where each
language tries to do one thing really well, rather than a monolithic
approach where . For example, you organize your system to that there is
a master RELAX NG schema, then you add your restrictions as a layer in
Schematron. You do the detailed cardnality constraints in Schematron.
The advantage of this approach is that you are not at the mercy of the
abstractions provided by the schema language: you don't need to think
&quot;what combination of restiction/extension/redeclaration do I need, and
what are the order, ambiguity and UPA issues?&quot; because you can just say
&quot;Inside a Bar, element X is not allowed&quot; directly.

Why model abstractly things that can be more simply said directly?   If
the intent of all the data modeling is to reveal the connections and
design of the system, the grammar-based systems have the fundamentally
poor abstraction weakness that they don't allow negatives or exclusions,
one of the great tools of logic simplification: you don't need to have
types in order to do restrictions, and you don't have to have types in
order to document and explain restrictions.

The third thing is that the design of RELAX NG is, to my mind, that
abstract assertions about the relationships between schema items does
not belong in the schemas themselves. They would better left to tools.
For example, there is a third party tool that checks if a RELAX NG
schema is ambiguous or not. But certainly the lack of tools for RELAX NG
shows that it has not been adopted by people who are so keen on
automated conversion from abstract types to the schema language. Because
of RELAX NGs strong theoretical base, it should be easier to do these
kind of set operations on.

I would note that one large schema we maintain, in which a master
vocabulary is used by a dozen committees to make multiple local schemas,
we actually remove type derivation information from the working draft
schemas, and only add it at the end (it is a pain) because it is too
much trouble maintaining the base schemas to track the work in progress.
So we use XSD, but in the same kind of approach (and custom tooling)
that would have been necessary if we were using RELAX NG. (In fact, they
are discussing abandoning much use of type derivation and just moving to
a master XSD and much more Schematron, just for reasons of directness
and simplicity.)

&gt; As a postscript, let me say I'm very thankful that the tone of this thread 
&gt; has been gradually transitioning to actual constructive argument (at which 
&gt; this list is normally rather good) rather than the ridiculously juvenile 
&gt; mud-slinging that was predominant early last week-in particular, I've 
&gt; appreciated the level-headed input from Jim Tivy, Liam Quin, Ken Holman, 
&gt; and Michael Kay.
Argumentative on this topic: that would be me! I plead guilty.  For
constructive responses, please see the ISO standards for RELAX NG and
Schematron etc which a number of us on this list have worked on, and the
open source implementations we have made. Please also note that there
was no mud-slinging at individuals. If some of us have lost patience at
XSD because we have to use the wretched monstrosity, please don't blame
the victims!

Cheers
Rick Jelliffe

P.S. &quot;how do you represent a structure with five possible elements, at
least one of which must be present and none of which may be repeated?
The best method I have found takes about 25 lines and far too much code
repetition.&quot;

Here is one straight-forward Schematron schema, in 10 lines, including
documentation, if I understand the requirement.

&lt;rule context=&quot;x&quot;&gt;
   &lt;assert test=&quot;count(a) &amp;lt;= 1&quot;&gt;An a may only appear once in an
x&lt;/assert&gt;
   &lt;assert test=&quot;count(b) &amp;lt;= 1&quot;&gt;An b may only appear once in an
x&lt;/assert&gt;
   &lt;assert test=&quot;count(c) &amp;lt;= 1&quot;&gt;An d may only appear once in an
x&lt;/assert&gt;
   &lt;assert test=&quot;count(d) &amp;lt;= 1&quot;&gt;An e may only appear once in an
x&lt;/assert&gt;
   &lt;assert test=&quot;count(e) &amp;lt;= 1&quot;&gt;An f may only appear once in an
x&lt;/assert&gt;
   &lt;assert test=&quot;count(*) &gt; 0&quot;&gt;There must be at least one element in
x&lt;/assert&gt;
   &lt;assert test=&quot;count(*) = count(a) + count(b) + count(c) + count(d) +
count(e)&quot;&gt;
     The only elements allowed in x are a, b, c, d, and e&lt;/assert&gt;
&lt;/rule&gt;

And here is another version, which demonstrates that you can do kinds of
abstract type modeling
in Schematron that are unavailable in XSD. In this case, it is mixin
style modeling (like interfaces
in Java). Note that there is no combinatorial explosion: in fact, to add
an extra child you only
need to alter the last XPath, not even add a new element.

&lt;rule abstract=&quot;true&quot; id=&quot;non-empty-element&quot;&gt;
   &lt;assert test=&quot;count(*) &gt; 0&quot;&gt;There must be at least one element in
&lt;name/&gt;&lt;/assert&gt;
&lt;/rule&gt;

&lt;rule abstract=&quot;true&quot;  id=&quot;bag&quot;&gt;
   &lt;assert test=&quot;*[not(following-sibling::*[name()=current()/name()])]&quot;&gt;
   No child of x may appear more than once.&lt;/assert&gt;
&lt;/rule&gt;

&lt;rule context=&quot;x&quot;&gt;
   &lt;extends rule=&quot;bag&quot; /&gt;
   &lt;extends rule=&quot;non-empty-element&quot; /&gt;
   &lt;assert test=&quot;count(*) = count(a) + count(b) + count(c) + count(d) +
count(e)&quot;&gt;
     The only elements allowed in x are a, b, c, d, and e&lt;/assert&gt;
&lt;/rule&gt;

I think that XSD 1.1 will have an OK story: you could use xsd:any with
maxOccurs=1,
and then an assertion using     count(*) &gt; 0      I guess you could use
RELAX NG &amp; in the
same way.


_______________________________________________________________________

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: &#120;&#109;&#x6c;&#45;&#x64;&#101;&#118;&#45;&#117;&#110;s&#x75;&#x62;scri&#98;e&#64;&#108;&#105;s&#x74;s.xm&#x6c;&#46;o&#114;g
subscribe: x&#109;&#x6c;&#45;&#x64;e&#x76;&#x2d;&#x73;u&#x62;scri&#x62;&#101;&#64;&#108;i&#115;&#116;s.&#120;&#x6d;&#x6c;.o&#114;&#x67;
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20170.html</link><pubDate>Wed, 18 Nov 2009 09:47:28 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
From: Rick Jelliffe [<A  HREF="mailto:&#x72;&#106;&#101;llif&#x66;&#101;&#x40;all&#101;t&#116;&#x65;&#x2e;c&#x6f;&#109;.&#x61;&#x75;">mailto:&#x72;&#106;&#101;llif&#x66;&#101;&#x40;all&#101;t&#116;&#x65;&#x2e;c&#x6f;&#109;.&#x61;&#x75;</A>]
Three responses.


First is that XSD was not designed as an abstract data modeling language but rather a markup description language: even though the grammars have been somewhat extended with xsd:any and wildcards (and now assertions and conditional types), XSD is not a substitute for the kinds of things you would use, say, UML for. (And then convert the UML to RELAX NG.) XBRL is an example of a system that attempts to piggyback data modeling on top of XSD, and makes an almost fatal complexity.



Okay, I'm not sure I entirely followed that; using UML to model data structures is fine and great, but UML doesn't enforce anything.  If the contract specified by your abstract (UML) data model is not enforced by your concrete data model (be that XSD or RNG or a combination of layers), then your abstract model is a lie and any code that depends on it will be unreliable.  However...



The second is that IMHO it is better to see RELAX NG as part of the ISO DSDL standard, so when there is some feature missing from RELAX NG, it may be provided elsewhere.  This is a layered approach, where each language tries to do one thing really well, rather than a monolithic approach where . For example, you organize your system to that there is a master RELAX NG schema, then you add your restrictions as a layer in Schematron. You do the detailed cardnality constraints in Schematron.
The advantage of this approach is that you are not at the mercy of the abstractions provided by the schema language: you don't need to think &quot;what combination of restiction/extension/redeclaration do I need, and what are the order, ambiguity and UPA issues?&quot; because you can just say &quot;Inside a Bar, element X is not allowed&quot; directly.



Fair enough, but the projects I work on tend already to have a rather painful number of layers, so I try to avoid adding more layers than is absolutely necessary.  On the other hand, I have recently been looking into adding a Schematron layer anyway, in order to enforce some of the rules that XSD cannot (or cannot easily) enforce, so I may re-evaluate RNG as part of that process.



[...]

The third thing is that the design of RELAX NG is, to my mind, that abstract assertions about the relationships between schema items does not belong in the schemas themselves. They would better left to tools. [...]



I'm not sure that I agree with that, but that is perhaps a philosophical discussion in which I'm not prepared to engage just now. :-)



I would note that one large schema we maintain, in which a master vocabulary is used by a dozen committees to make multiple local schemas, we actually remove type derivation information from the working draft schemas, and only add it at the end (it is a pain) because it is too much trouble maintaining the base schemas to track the work in progress. [...]



I would only comment that it _sounds_ (if I understand your description correctly) like you're not following the open-closed principle; perhaps the difficulty is due to the design and not the grammar.

Doug Glidden
Software Engineer
The Boeing Company
D&#x6f;&#x75;&#x67;&#108;&#x61;s&#x73;&#46;&#65;&#x2e;&#71;&#108;idd&#101;&#110;&#x40;&#98;&#x6f;ei&#110;g.&#99;&#x6f;m
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70170.html</link><pubDate>Wed, 18 Nov 2009 07:19:57 GMT</pubDate></item><item><title>RE:  Relax NC, was: XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
From: Michael Sokolov [<A  HREF="mailto:&#x73;ok&#111;&#108;&#x6f;v&#x40;&#x69;&#x66;&#x61;&#x63;&#116;or&#x79;&#46;co&#109;">mailto:&#x73;ok&#111;&#108;&#x6f;v&#x40;&#x69;&#x66;&#x61;&#x63;&#116;or&#x79;&#46;co&#109;</A>]
&quot;I guess that's just to say that they seem to occupy different niches.&quot;

I agree with that 100%, and I would agree with you that that's how it should be.  I can certainly see how RNG is easier to learn quickly than XSD, and I think that's great and would not want it to change due to scope creep.  I have no problem with the idea that for _many_ applications, XSD is overkill and RNG would be vastly better.  What I'm struggling to understand is that some people seem to have a mentality that &quot;XSD is fundamentally and universally bad and should never be used by anyone&quot;.  I don't think those people would agree with your statement above, but I'm trying to honestly figure out why those people think the way they do before writing it off as simple prejudice.

The sense I'm starting to get is that, for the most part, these people have become frustrated with being forced to use XSD in situations where it _would_ be far better to use RNG, and in their frustration, they are throwing the baby out with the bathwater.  If that's the case, I can totally understand that (I just wish those people would be a little less dogmatic about it! :-) ).

Doug Glidden
Software Engineer
The Boeing Company
&#x44;&#111;&#x75;&#103;lass.A.Gl&#105;&#100;de&#x6e;&#x40;&#98;o&#x65;ing&#x2e;&#x63;o&#x6d;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60170.html</link><pubDate>Wed, 18 Nov 2009 06:37:12 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Wed, Nov 18, 2009 at 2:21 AM, Glidden, Douglass A
&lt;Do&#x75;&#x67;&#108;as&#115;.&#65;&#46;&#x47;l&#105;&#100;den&#64;&#98;&#x6f;ein&#103;&#46;&#x63;&#x6f;m&gt; wrote:
&gt; - Certain fairly simple data structures can only be achieved in XSD (if at all) with ridiculously verbose patterns;

I agree, that XSD Schemas can be quite verbose sometimes. But I think,
that's some of the cost we probably incuur to achieve needed
functionality.

For example,

You may consider this element definition to be OK, and not verbose:

[1]
&lt;xs:element name=&quot;x&quot; type=&quot;xs:string&quot; /&gt;

But you may consider this one as verbose:

[2]
&lt;xs:element name=&quot;x&quot;&gt;
  &lt;xs:simpleType&gt;
    &lt;xs:restriction base=&quot;xs:string&quot;&gt;
      &lt;xs:enumeration value=&quot;a&quot;/&gt;
      &lt;xs:enumeration value=&quot;b&quot;/&gt;
      &lt;xs:enumeration value=&quot;c&quot;/&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
&lt;/xs:element&gt;

But a definition like this one [2], helps us realize a necessary (for
somebody) use case. Unfortunately, a certain amount of
syntax/verboseness is needed to express something.

If needed, somebody may use an IDE to write XSD Schemas, which can
help with (most of) the verboseness issues.

&gt; - Most business logic cannot be represented, like &quot;the value of the foo element must be less than or equal to the value of the bar element&quot;.

I think, this will be expressible in XSD 1.1, using assertions for e.g:

&lt;xs:assert test=&quot;foo le bar&quot; /&gt;

&gt; - I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which make it difficult to enforce rules such as &quot;if the value of the foo element is xyz, then the bar and baz elements are required, but otherwise they are optional&quot;.

Again this should be possible to express with XSD 1.1 assertions, for
e.g something like:

&lt;xs:assert test=&quot;if (foo eq 'xyz') then (bar and baz)&quot; /&gt;


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90160.html</link><pubDate>Wed, 18 Nov 2009 06:27:45 GMT</pubDate></item><item><title> Relax NC, was: XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
To my way of thinking, the compact notation and relative simplicity is what
makes RNC/G extremely attractive.  I'm actually really glad it doesn't solve
your problem, Douglass!  No offense, but if it did, it would be as complex
as XSD.  I guess that's just to say that they seem to occupy different
niches.

In my first project using Relax, I was able to write schemas for my fairly
complex documents after reading documentation (James Clark's excellent
tutorial http://www.relaxng.org/compact-tutorial-20030326.html) for only
about an hour.  Admittedly my problems were much simpler than the ones you
describe - only simple inheritance schemes using extension (adding
additional elements and attributes in the subtype), but what was great was I
didn't have to become an expert to do it, and all my colleagues: programmers
and customers (content editors), are able to read the schemas with almost no
training at all.

-Mike


&gt; -----Original Message-----
&gt; From: Glidden, Douglass A [<A  HREF="mailto:&#x44;&#111;u&#x67;l&#97;s&#115;.A.Glid&#x64;en&#x40;bo&#101;in&#103;&#x2e;&#99;&#x6f;&#x6d;">mailto:&#x44;&#111;u&#x67;l&#97;s&#115;.A.Glid&#x64;en&#x40;bo&#101;in&#103;&#x2e;&#99;&#x6f;&#x6d;</A>] 
&gt; Sent: Tuesday, November 17, 2009 5:09 PM
....
&gt; Hmmm...I must confess I didn't really explore the shorthand 
&gt; version of RNG--perhaps I should take a look at it.  That is 
&gt; effectively the same as the longhand way I was doing it, and 
&gt; while it doesn't strike me as particularly elegant, it at 
&gt; least takes up less space.
&gt; 
&gt; 
&gt; 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00170.html</link><pubDate>Tue, 17 Nov 2009 22:00:51 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>


- Certain fairly simple data structures can only be achieved in XSD (if
  at all) with ridiculously verbose patterns; for instance, how do you
  represent a structure with five possible elements, at least one of
  which must be present and none of which may be repeated?  The best
  method I have found takes about 25 lines and far too much code
  repetition. 
...

- It [rng]  does not appear to relieve the complexity of representing some
   types of data structures (see the one described above-as far as I can
   tell, it would not be significantly easier to define in Relax NG than
   it is in XSD).


If I understand correctly, in relaxNG, something like:



start = x

x = element x {
   ( a  &amp; b? &amp; c? &amp; d? &amp; e?) |
   ( a? &amp; b  &amp; c? &amp; d? &amp; e?) |
   ( a? &amp; b? &amp; c  &amp; d? &amp; e?) |
   ( a? &amp; b? &amp; c? &amp; d  &amp; e?) |
   ( a? &amp; b? &amp; c? &amp; d? &amp; e ) 
 }

a = element a {empty}
b = element b {empty}
c = element c {empty}
d = element d {empty}
e = element e {empty}


does what you want, it validates

&lt;x&gt;
 &lt;a/&gt;
 &lt;b/&gt;
&lt;/x&gt;

and invalidates

&lt;x&gt;
 &lt;b/&gt;
 &lt;a/&gt;
 &lt;b/&gt;
&lt;/x&gt;


- Relax NG provides no way of specifying cardinalities other than 0, 1,
  and infinity!  This is also a big one for me--if I need at least 2 and
  no more than 20 occurrences of the foo element (fairly common in my
  data definitions), there's NO WAY I'm going to define two required foo
  elements and eighteen optional ones!


usually you can persuade yourself that 1,?,+,* is enough and leave
cardinality checking to higher up the chain, but if you really need
this, then powers of two come in handy:-)


y = element y { z,z,z16,z2}
z16 = z8,z8
z8  = z4,z4
z4  = z2,z2
z2  = z?,z?
z = element z {empty}

validates
&lt;y&gt;&lt;z/&gt;&lt;z/&gt;&lt;/y&gt;

but invalidates instances with less than 1 or more than 20 zs.

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. 
________________________________________________________________________
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70160.html</link><pubDate>Tue, 17 Nov 2009 21:53:23 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; It seems, that most people argue that a conformant XML document has
&gt; ability to refer to user defined entities, and this can be specified
&gt; only in a DTD. I think, the current XML spec, makes DTDs an
&gt; inseparable part of XML spec is, because of the DTDs ability to
&gt; specify user defined entities, which (the entities) are part of say
&gt; the, XML 1.0 (and 1.1) spec.
&gt;   
And because of attribute defaults and non-significant whitespace 
removal.  And perhaps for ID checking and indexing.
&gt; To change the XML spec, to remove the concept of valid/validity and
&gt; being able to remove DTD s from the XML spec, I think will also
&gt; require us to remove the concepts of entities from the XML spec (I
&gt; think, something like a future XML 2.0 spec should only specify the
&gt; built in entities like &amp; amp; etc and not allow users to specify user
&gt; defined entities, unless they use an external thing like DTD or a
&gt; future XSD (a 1.2 version, which may allow users to specify entities,
&gt; via some global declaration perhaps))
Well, entities for special characters and entities for document or 
schema construction  are  perhaps different
animals.   I have long argued that XML should have all the ISO/Math/W3C 
special characters just built in. There was some argument that this 
would make an XML processor much larger which would be a difficulty for 
mobile devices: it seemed silly to me then.  (The fetishism for an 
absolutely minimal XML is, to me, a classic case of a local optimization 
that would cause a global sub-optimality: when you remove a feature from 
a layer that people need, it just goes to a different layer and you 
don't actually get a total simplification--indeed you may get more 
complexity to support the extra layers especially if they are 
uncoordinated. The W3C answer that the way to handle all the 
uncoordinated layers is to make the part of XProc (i.e. a different file 
to be downloaded in order to know the simple functionality of standard 
markup) is insultingly dumb: whatever XProc is good for, it is not going 
to be an adequate packaging mechanism.)

If you built the special characters in, and you built in XInclude, 
XBase,  xml:id, and some method of saying &quot;this is element content so 
ignore the whitespace&quot; then you could indeed move DTDs to a different 
layer.  Note that at ISO there already is a spec (as part of DSDL) for 
namespace-aware DTDs; if that was useful for anything. 

Also of possible interest is that you could have a DOCTYPE declaration 
use some non-DTD system. So, for example, you could restrict the 
internal subset of the prolog to entity declarations (if you wanted it 
all) and have the external subset being XSD or RELAX NG or Schematron etc.

Cheers
Rick Jelliffe

B.t.w. There is absolutely no problem with this and SGML compliance: it 
would just be a minor change to IS8879 to look after the formalities for 
&quot;tag-valid&quot; documents (in fact, IIRC it was Charles Goldfarb who asked a 
decade ago whether it would be useful for giving the W3C/XML/HTML people 
more freedom in this area, but I think the feeling was that we may as 
well wait for a real use case rather than second guess anyone.)  It 
isn't SGML that holds back innovation, though the belief that SGML can 
only be adhered to or dropped completely can hold back innovation.
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40160.html</link><pubDate>Tue, 17 Nov 2009 18:05:56 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
[...]

If I understand correctly, in relaxNG, something like:



start = x

x = element x {
   ( a  &amp; b? &amp; c? &amp; d? &amp; e?) |
   ( a? &amp; b  &amp; c? &amp; d? &amp; e?) |
   ( a? &amp; b? &amp; c  &amp; d? &amp; e?) |
   ( a? &amp; b? &amp; c? &amp; d  &amp; e?) |
   ( a? &amp; b? &amp; c? &amp; d? &amp; e )
 }

a = element a {empty}
b = element b {empty}
c = element c {empty}
d = element d {empty}
e = element e {empty}


does what you want, it validates

&lt;x&gt;
 &lt;a/&gt;
 &lt;b/&gt;
&lt;/x&gt;

and invalidates

&lt;x&gt;
 &lt;b/&gt;
 &lt;a/&gt;
 &lt;b/&gt;
&lt;/x&gt;



Hmmm...I must confess I didn't really explore the shorthand version of RNG--perhaps I should take a look at it.  That is effectively the same as the longhand way I was doing it, and while it doesn't strike me as particularly elegant, it at least takes up less space.



[...]

usually you can persuade yourself that 1,?,+,* is enough and leave cardinality checking to higher up the chain, but if you really need this, then powers of two come in handy:-)


y = element y { z,z,z16,z2}
z16 = z8,z8
z8  = z4,z4
z4  = z2,z2
z2  = z?,z?
z = element z {empty}

validates
&lt;y&gt;&lt;z/&gt;&lt;z/&gt;&lt;/y&gt;

but invalidates instances with less than 1 or more than 20 zs.



LOL, well, it's a bit of a hack, but I suppose that works.  Still, it's nowhere near as clean and readable (and after all, readability is one of the big claims of RNG, from what I've seen) as XSD's minOccurs and maxOccurs.

Thanks for the response, David.  Hoping for more of this kind from others.

Doug Glidden
Software Engineer
The Boeing Company
&#x44;ou&#103;la&#115;s.A&#46;G&#x6c;idde&#x6e;&#64;&#x62;&#111;e&#x69;n&#103;.&#99;om
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80160.html</link><pubDate>Tue, 17 Nov 2009 16:09:03 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
From the perspective of an application developer who uses XML for storing fairly complex hierarchical data (as opposed to documents), I have a very basic question:  Is there any real, practical reason that Relax NG is _universally_ better than XSD?

Here's the background for my question:  I've been using XSDs for generating object-oriented data models for some time, and have been frustrated by various inflexibilities in XSDs.  For instance:
- Derivation by restriction, while conceptually very useful, seems slightly cumbersome in operation; in particular, I wish it could be accomplished with less repetition (I'm a fanatical believer in DRY).  I can live with the repetition, though, because I am assured that, if I make a typographical or some other error, the XSD will (almost) always fail to validate (&quot;Bar is not a valid restriction of Foo&quot;), so the the possiblity of unintended changes being introduced due to the repetition is kept to a minimum.
- Certain fairly simple data structures can only be achieved in XSD (if at all) with ridiculously verbose patterns; for instance, how do you represent a structure with five possible elements, at least one of which must be present and none of which may be repeated?  The best method I have found takes about 25 lines and far too much code repetition.
- Most business logic cannot be represented, like &quot;the value of the foo element must be less than or equal to the value of the bar element&quot;.
- I occasionally was foiled by XSDs strict &quot;no ambiguity&quot; rules, which make it difficult to enforce rules such as &quot;if the value of the foo element is xyz, then the bar and baz elements are required, but otherwise they are optional&quot;.

Nonetheless, I have been more or less pleased with the final results in most cases.  Having heard much praise of Relax NG, I recently decided to try it out, hoping it would be able to resolve these issues.  Here's what I found:
- It does relieve the &quot;no ambiguity&quot; problem and makes enforcing that sort of rules much easier.
- It does not resolve most of the business logic issues, but there are other technologies that can be used in combination with either Relax NG or XSD to resolve these issues, so that can be worked around in either case.
- It does not appear to relieve the complexity of representing some types of data structures (see the one described above-as far as I can tell, it would not be significantly easier to define in Relax NG than it is in XSD).
- There is only a rudimentary concept of type definition and virually none of inheritance.  Designing good, object-oriented data models is practically impossible in Relax NG; for me, this is a HUGE deficiency.  For instance, say Foo is an abstract data type with several fields, including an id field (any mixed data allowed) and a type field (with enumerated values); Bar is one of several concrete subtypes of Foo, which restricts the content of the id field (must contain two elements, a groupId and a subId) and the type field (to a subset of the values enumerated by Foo) and appends several new fields; other subtypes have completely different restrictions on the id and type fields and append various different new fields.  In XSD, implementing this is fairly straightforward (although not necessarily simple and certainly more verbose than I would prefer):  Foo is an abstract complex type, and Bar and the other subtypes must derive from it first via restriction (creating the restrictions on id and type) and then via extension (appending the new fields).  In Relax NG, by contrast, I could find only two ways of doing this, neither of which was at all acceptable:  One is to get rid of Foo completely and reference its fields separately in each subtype-this is unacceptable to me as it completely violates DRY and object-oriented design; the other is to define each subtype of Foo in a separate file, importing Foo and redefining as necessary-this is marginally better from an OOP point-of-view, but still makes it impossible for a schema to use &quot;any valid subtype of Foo&quot; as a content definition without violating the Open-Closed principle.
- Relax NG provides no way of specifying cardinalities other than 0, 1, and infinity!  This is also a big one for me--if I need at least 2 and no more than 20 occurrences of the foo element (fairly common in my data definitions), there's NO WAY I'm going to define two required foo elements and eighteen optional ones!

Now, I'm hoping that some Relax NG expert will come along and prove me wrong about some or all of these things, since I only experimented with it for a couple of days.  If not, for me these deficiencies in Relax NG *far* outweigh its benefits over XSD-there's really no comparison.  As much as I would like to see some aspects of XSD improved, unless someone can propose real alternatives for issues like the ones above, Relax NG is simply not an option for the type of data I work with.

As a postscript, let me say I'm very thankful that the tone of this thread has been gradually transitioning to actual constructive argument (at which this list is normally rather good) rather than the ridiculously juvenile mud-slinging that was predominant early last week-in particular, I've appreciated the level-headed input from Jim Tivy, Liam Quin, Ken Holman, and Michael Kay.  Unfortunately there are still some emotionally charged but pretty much meaningless (or worse, completely false) words being thrown around, but at least those aren't in the majority anymore.  In all good humor, I have to say that XML-dev is by far the most argumentative mailing list to which I've ever been a subscriber. :-)

Doug Glidden
Software Engineer
The Boeing Company
&#x44;&#x6f;u&#103;l&#97;s&#115;&#46;A.Gl&#105;dde&#x6e;&#64;b&#111;&#x65;i&#110;&#103;.&#99;&#x6f;m</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60160.html</link><pubDate>Tue, 17 Nov 2009 14:51:19 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 4:26 AM, Jim Tivy &lt;j&#x69;m&#x74;&#64;bl&#117;&#x65;strea&#109;&#x2e;com&gt; wrote:
&gt; Hearing this is truly music to my ears. The implication being that the XML
&gt; spec would not even have to talk about &quot;valid&quot; or &quot;validity&quot; - thus we would
&gt; not have to deal with this matter if inclusivity with respect to schema
&gt; languages in the XML spec.

I think, removing references like &quot;valid&quot; or &quot;validity&quot; from XML spec
is a good idea. I think, this makes good distinct architectural
layerings like pure XML markup and document validity.

It seems, that most people argue that a conformant XML document has
ability to refer to user defined entities, and this can be specified
only in a DTD. I think, the current XML spec, makes DTDs an
inseparable part of XML spec is, because of the DTDs ability to
specify user defined entities, which (the entities) are part of say
the, XML 1.0 (and 1.1) spec.

To change the XML spec, to remove the concept of valid/validity and
being able to remove DTD s from the XML spec, I think will also
require us to remove the concepts of entities from the XML spec (I
think, something like a future XML 2.0 spec should only specify the
built in entities like &amp; amp; etc and not allow users to specify user
defined entities, unless they use an external thing like DTD or a
future XSD (a 1.2 version, which may allow users to specify entities,
via some global declaration perhaps)).



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30160.html</link><pubDate>Tue, 17 Nov 2009 10:37:09 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Tim,
   I agree, that avoiding a Schema (both not designing at all, and not
using at run time with each XML instance) improves performance of XML
processing. XML Schema processing is certainly a processing overhead
for processing XML documents/messages.

But to my opinion, Schemas add tremendous value to XML processing,
when validation constraints need to be imposed. I think, this is a
basic notion of data integrity and a very  fundamental need for any
kind of data processing.

On Mon, Nov 16, 2009 at 4:02 AM, Tim Bray &lt;&#84;i&#109;.Br&#97;y&#64;s&#117;&#x6e;.&#x63;&#x6f;&#x6d;&gt; wrote:
&gt; The textual flaw isn't that it doesn't mention XSD or RNG, the textual flaw is that it mentions *any* schema language. Â  A very high proportion of real-world XML processing is entirely free of anything schema-related. Â The vast majority of the XML value proposition is delivered by schema-free well-formed XML. Â Even in those apps that use a schema in their specification, the vast majority of run-time processing is schema-free. Â One of the costliest common mistakes of XML app/language designers is putting too much importance on schemas. Â The XML specification shouldn't be encouraging that mistake.
&gt;
&gt; My own vision of what XML.next ought to look like may be found at http://www.textuality.com/xml/xmlSW.html



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20160.html</link><pubDate>Tue, 17 Nov 2009 09:12:28 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 1:00 AM, Michael Kay &lt;&#x6d;&#x69;&#107;e&#x40;&#x73;axo&#110;ica.c&#x6f;&#x6d;&gt; wrote:
&gt; Yes, it's ugly

I personally, won't say XSD is ugly. Just saw the meaning of ugly :)
&quot;Inclined to anger or bad feelings with overtones of menace&quot;
&quot;Provoking horror&quot;

I would not go to such an extent, while talking about XSD. But I
agree, that it is over engineered and over specified. But I guess,
over engineering/over specification is good for users.

&gt; and very hard to use

Yes definitely, I agree that XSD has steep learning curve.

&gt; and doesn't do a lot of things that people might like it to do.

Perhaps, this would get better with the 1.1 version.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10160.html</link><pubDate>Tue, 17 Nov 2009 09:03:12 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 10:33 PM, Mukul Gandhi &lt;&#x67;a&#x6e;d&#104;&#x69;&#x2e;&#109;u&#107;u&#x6c;&#x40;&#103;&#x6d;ai&#x6c;&#46;c&#x6f;m&gt; wrote:
&gt; On Mon, Nov 16, 2009 at 1:00 AM, Michael Kay &lt;&#x6d;&#105;ke&#x40;&#115;&#x61;xon&#x69;&#99;a.c&#x6f;m&gt; wrote:
&gt;&gt; Yes, it's ugly
&gt;
&gt; I personally, won't say XSD is ugly. Just saw the meaning of ugly :)
&gt; &quot;Inclined to anger or bad feelings with overtones of menace&quot;
&gt; &quot;Provoking horror&quot;


Sounds about right to me. :-)


-- 
Elliotte Rusty Harold
el&#104;&#x61;ro&#64;ib&#105;b&#x6c;&#x69;&#x6f;.o&#x72;&#103;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50160.html</link><pubDate>Tue, 17 Nov 2009 06:04:16 GMT</pubDate></item><item><title>Consulting Content Engineer opening at LexisNexis</title><description><![CDATA[<!--X-Body-of-Message-->
<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'>Consulting
Content Engineer<o:p></o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'>This
position exists to analyze data requirements and create logical and<br>
physical models and specifications of data. The Senior Content Engineer will<br>
work directly with the editors, project managers, system architects and
software<br>
developers to develop editorial tools and delivery products that utilize data<br>
markup.&nbsp; 1. Analyze complex data and product requirements. 2. Lead the<br>
development of data models and specifications in a variety of markup language<br>
syntaxes: W3C schema, RelaxNG Schema, XML DTDs, RDF. 3. Perform the change<br>
control and update process for maintaining modular data markup specifications.<br>
4. Lead the development and maintenance of data transformation scripts. 5. Lead<br>
the development and maintenance of data conformance validation. 6. Develop<br>
ontology/vocabulary to be shared across disparate content types. 7. Work with<br>
editors, project managers, system architects and software developers to define<br>
and develop editorial tools and products that utilize data markup. 8. Deliver<br>
presentations and/or train users on use of data markup, as required. 9.
Organize<br>
and lead data modeling workshops to develop markup specifications 10. Write<br>
documentation for markup specifications and design principles. 11. Research<br>
industry standards to contribute to recommendations for architectural
direction.<o:p></o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'>1.
2+ years experience with W3C or RelaxNG schemas, 5+ years expertise with<br>
modular XML DTDs, experience with related standards such as RDF, Dublin Core.
2.<br>
Bachelors degree in computer science, computer engineering, or liberal arts
with<br>
equivalent technical experience 3. Expertise in data analysis and defining<br>
structured data. 4. Experience with one or more of the following: XSLT, XPath,<br>
XQuery, Schematron, Perl, Omnimark. 5. Experience with legal data is desirable<br>
6. Ability to work in and lead teams of data modelers. 7. Strong analytical and<br>
problem solving skills. 8. Excellent oral and written communication skills 9.<br>
Ability to learn large, complex systems 10. Ability to explain technical issues<br>
to customers and explain data/editorial issues to technical developers.<o:p></o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-size:11.0pt;font-family:"Arial","sans-serif"'>Preferred
LexisNexis locations: Charlottesville, VA; Dayton, OH; Albany, NY; New
Providence, NJ; Cary, NC; Colorado Springs, CO; NYC, NY; San Francisco, CA. Candidates
from other locations are encouraged to apply without consideration to relocation.
<o:p></o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'>Occasional
travel may be required.<o:p></o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='background:white'><b><span style='font-family:"Arial","sans-serif";
background:#DDFF76'>LexisNexis</span></b><span style='font-family:"Arial","sans-serif"'>
is a leading global provider of business information solutions to<br>
professionals in a variety of areas, including: legal, corporate, government,<br>
law enforcement, tax, accounting, academic, and risk and compliance assessment.<br>
<b><span style='background:#DDFF76'>LexisNexis</span></b> helps customers
achieve their goals in more than 100 countries,<br>
across six continents, with over 18,000 employees. Regardless of your location,<br>
you'll work together with your colleagues as one team - a unified network of<br>
professionals who share a passion for solving problems, realizing results, and<br>
pushing the boundaries of what knowledge can do.<o:p></o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='background:white'><span style='font-family:"Arial","sans-serif"'>Apply
here:<br>
https://reedelsevier.taleo.net/careersection/50/moresearch.ftl?lang=en<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>




</td></tr></table>
]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00160.html</link><pubDate>Mon, 16 Nov 2009 20:44:03 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Len Bullard wrote:
&gt; That's nuts and the opinion of a designer who writes code wonderfully but
&gt; very few technical documents of any real complexity.
&gt;   
As a subsystem gets more complex, we need addition levels of  'meta' to 
make the complexity tractable.

So we progress from plain documents to documents with namespaces to 
documents with content models and facets to documents with the content 
models and facets organized into types or patterns, and so on.  (The 
current stack of 'meta' currently ends just short of handling versions 
and variants well IMHO.)

So I think there is a requirement for agility: can a developer make an 
XML subsystem with just the right amount of 'meta' for their project?  
To oversimplify their positions:  Tim is keen that the developer who 
needs the least amount of 'meta' can have it (with DTD-less XML); 
Michael is keen on the person who needs quite a lot of meta (with typed 
information); Len is keen on the developer who needs a bit of 'meta' but 
not too much (the industrial document developer).  I guess I am 
concerned with developers who need kinds of 'meta' which cannot be 
productized or packaged well: bespoke 'meta'...

But the agility requirement is that it should be relatively easy to go 
from one level of 'meta' to the next, either up or down, with much less 
than commensurate effort.  I think moving from no-DTD XML to DTD-valid 
XML is that kind of low effort that allows agility. And moving from DTD 
to RELAX NG again is agile. But XSD works against agility: first because 
of its multiplication of concepts, but also because buying into the PSVI 
can represent a fundamental change in how you process and treat the 
data:  in practice, I think it is the choice between having a flow of 
documents (XML infoset), or having a DBMS (typed infoset or PSVI.)  The 
PSVI allows and promotes one system architecture (non-XML infoset) and 
works against others (XML infoset-based flows): so it is not just a 
neutral way of organizing XML data in any architecture, as you would 
want if you prized agility.

Cheers
Rick Jelliffe
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10150.html</link><pubDate>Mon, 16 Nov 2009 18:42:49 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; I don't think, there is anything wrong with the basic core/philosophy
&gt; of XSD. I guess, some of users who don't like XSD generally, it's
&gt; probably because of it's huge size, and steep learning curve.
&gt;
&gt;   
I do.

First, it does not encourage a schema-writer to make a user model, to 
know how to explain invalidity or versions/variants to humans. That 
information being missing from the chain, it entrenches the position of 
developers as gurus to whom the supplicant users must go to.   In other 
words, XSD actively *discourages* validation and human inspection. The 
PSVI certainly may have enough information for automated data exchange 
in fully debugged, in blind accept/reject gateways, or data-mapped 
systems; but I don't know that was actually a use case which was not 
already served adequately (by ODBC, CVS, CORBA, IDL, now JSON.)  In a 
decade where we supposedly appreciate Test-Driven Development more than 
ever before, we have a schema language that fights against this kind of 
use, in syntax, features, complexity and inexpressive autism. 

Second, it does not have enough hooks in it to allow traceability 
between the schema and business requirements.
Look at the question of why one element is supposed to be followed by 
another. There are several possible
reasons:

  1) it might be the instrinsic or typical order for renderings,
  2) by fixing an order, a schema-aware compressed form might save a bit 
(or is it half a bit?) - an entirely marginal reason to my way of 
thinking but I have heard it used,
  3) because derivation by extension is being used in XSD 1.0 and so 
suffixation was the only possibility,
  4) to mirror the order of some data which is transformed into this,
  5) err no reason, it just seems neater

XSD is not neutral about traceability: it is antagonistic to it.   Now I 
agree that XSD 1.1 has lots of additional things which help mechanical 
power (at the expense of a multiplication of concepts): the open schemas 
idea and so on are things I (and, in particular, Roger Costello) have 
long raised, so I am sure many people will benefit from the XSD 1.1 
changes (just as people benefit from lipstick on a pig?)  But still some 
of them are hacks, bits tacked on (like the cart in the Imaginarium of 
Dr Parnassus) without addressing what I think are the more fundamental 
issues such as disconnection from humans and disconnection from 
requirements. You would expect that kind of disconnect in a technology 
invented in the 1970s or 1980s, but not one for leading us into the 2010s.

So it is exactly in XSD's imagined core philosophy, detectable by how 
XSD has been used or implemented and where it thrived or failed, that I 
think the problem lies.  XSD is not a technology that encourages 
technocrats to empower the just-folks or non-technical management, in 
the way that HTML, XML and, I really hope, Schematron do. That puts it 
in the class of being things that are part of the problem rather than 
part of the solution.

Cheers
Rick Jelliffe


P.S. I don't know that this analogy will add to the clarity, so I have 
put it down here. Years ago there was a cartoon strip in the newspapers 
called Li'l Abner. It is rarely spoken of now, because of its depictions 
of US minorities, I gather. But there was a little animal called the 
Schmoo: in 1949 it was more popular than Mickey Mouse (see 
http://en.wikipedia.org/wiki/Shmoo For a pic see 
http://deniskitchen.com/Merchant2/merchant.mvc?Screen=PROD&amp;Product_Code=BP_shmoopin 
).  It loves to be eaten (unlike the Magic Pudding, it gets used up.)  

The XSD standard is not a standard made by Schmoos. It centralizes the 
power of developers, rather than allowing developers to localize their 
role.

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00150.html</link><pubDate>Mon, 16 Nov 2009 17:36:37 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Elliotte Rusty Harold wrote:
&gt; On Sat, Nov 14, 2009 at 12:49 PM, Simon St.Laurent
&gt; &lt;&#115;&#x69;&#109;on&#115;&#116;l&#x40;&#115;i&#x6d;o&#x6e;s&#x74;l.&#99;&#x6f;m&gt; wrote
&gt;   
&gt;&gt; A this point, personally, I'd drop coverage of XLink and XPointer.  A
&gt;&gt; paragraph seems reasonable.
&gt;&gt;
&gt;&gt; XInclude does get use in back-end processing, so I'd leave it in, most
&gt;&gt; likely - at least as a sidebar in the entity processing section.  It doesn't
&gt;&gt; require a huge amount of space to explain in any case.
&gt;&gt;     
&gt;
&gt; Sounds about right, though XInclude references XPointer so it's hard
&gt; to really say.
 
I think this is a bit arse-ended: even apart from the dubious idea that 
we should consider a standard successful only if it sells books or 
achieves ubiquity in platforms (rather than, say, a standard being 
successful if it can be used to solve some problems well.)

Let me put it like this: one of the original goals of XML was &quot;The 
number of optional features in XML is to be kept to the absolute 
minimum, ideally zero.&quot; This was because the highly parameterized 
approach that SGML took was not appropriate, for various reasons: one of 
which was that if there were optional features, you could not be 
guaranteed that the recipient could handle your document.

And so what happened after that?  A stream of piddly little standards 
for optional things: XBase, XInclude, xml:id.  And what is the result? 
It is impractical to rely on them: or, at least, they don't relieve the 
developer of any decision making or programming, since the developer has 
to enable them or program for them on a case-by-case basis.

Cheers
Rick Jelliffe
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90140.html</link><pubDate>Mon, 16 Nov 2009 16:48:32 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
2009/11/16 Elliotte Rusty Harold &lt;&#101;&#108;h&#x61;r&#111;&#64;i&#98;ibl&#105;o&#x2e;&#x6f;r&#x67;&gt;:
&gt; On Mon, Nov 16, 2009 at 10:49 AM, Peter Hunsberger
&gt; &lt;&#112;e&#116;er&#x2e;&#104;un&#115;b&#x65;r&#x67;&#x65;r&#x40;gmail&#46;&#99;om&gt; wrote:
&gt;
&gt;&gt; So what's the alternative?  There are lots of things that people
&gt;&gt; sometimes want to do, but not always.  Having optional standards that
&gt;&gt; cover these areas is probably a good thing;
&gt;
&gt; No, the alternative is to build them into the specs and require
&gt; parsers to support them, but not require documents to use them. For
&gt; example, consider attributes. You don't have to use them in XML, but
&gt; if you do use them you know they're supported. xml:id, xml:base, and a
&gt; few other things (though probably not XInclude) should be baked in,
&gt; not bolted on. Watch this space. :-)

I thought we were headed towards a slimmer, lightweight, dtd-less
XML... not adding more?





-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60150.html</link><pubDate>Mon, 16 Nov 2009 16:38:43 GMT</pubDate></item><item><title>Re:  Formatting XML as ascii Text</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi,

Have a look at this book:
http://oreilly.com/catalog/9780596009748

I have read a long time ago the first edition that was covering that 
topic very well; I don't know about the second edition, but the chapter 
7 since to cover almost what you need; you might find snippet codes 
somewhere at oreilly.com

David A. Lee wrote:
&gt; I have a project where I need to take XML and format it as ascii text.
&gt; Sounds simple right ? But alas the requirements are subtle.  It seems 
&gt; people dont do text formatting much anymore.
&gt; I fondly remember the days of nroff where I could do good text 
&gt; formatting and achieve things like word splitting (hyphenating),
&gt; justification etc on text content.  In particular a challenge is to 
&gt; support multi column tables.  Thats right, text spanning 5 columns,
&gt; that needs to wrap in each column.   Oh and do that with 40 column line 
&gt; widths. Piece of cake.
&gt; Oh and its a Variable width text font ... ha !
&gt; 
&gt; What I tried so far which almost works sorta, just enough to not work 
&gt; well enough :)
&gt; Translate the XML to HTML with XSLT then I downloaded one of the free 
&gt; &quot;HTML to Text&quot; tools which are prevalent on the net.
&gt; It sorta did work, except for the tables.   But I need something that 
&gt; can work in a production environment.   Open Source is prefered,
&gt; but if it does an excellent job then a commercial product could be 
&gt; justified (pun intended).
&gt; 
&gt; My next attempt will to try Apache FOP.    I looked at RenderX but they 
&gt; dont claim text output.
&gt; Apache FOP claims a text output but with caveots, the claim is its not 
&gt; robust code with poor results.
&gt; Maybe they are being kind and it really works great.   I will try.
&gt; 
&gt; Any other suggestions ?   I can always 'roll my own' but this project is 
&gt; not on the budget yet and were trying to see if we can do something with 
&gt; minimal work.
&gt; Appreciated,
&gt; 
&gt; thanks,
&gt; 
&gt; 
&gt; 
&gt; 


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30150.html</link><pubDate>Mon, 16 Nov 2009 16:31:45 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 11:59 AM, Peter Hunsberger
&lt;&#112;&#x65;&#116;&#x65;r.&#x68;&#117;nsb&#x65;&#x72;&#x67;&#101;&#114;&#x40;gm&#97;il.&#x63;om&gt; wrote:

&gt; However, optional but part of the base spec, vs. optional and part of
&gt; a different spec really makes no difference as far as I can tell,
&gt; other than to make the base spec larger and harder to get agreement
&gt; on?

That's why you don't want anything in the base spec to be optional.
The problem is not so much base spec or supplementary spec, but
optional vs. required. No additions to XML post-namespaces (xml:base,
xml:id, schemas, infoset, XML 1.1, XInclude, etc.) have achieved
ubiquity and reliable support. People have built solid apps on top of
XML (XPath, XSLT, XQuery, XHTML, Atom, etc.) but the core of XML has
been extremely resistant to evolution.

-- 
Elliotte Rusty Harold
&#x65;&#x6c;&#x68;ar&#x6f;&#x40;i&#x62;&#105;b&#x6c;i&#111;.org
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90150.html</link><pubDate>Mon, 16 Nov 2009 14:31:17 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 11:38 AM, Andrew Welch &lt;&#x61;&#x6e;d&#x72;&#101;&#x77;.j&#x2e;&#119;elc&#x68;&#x40;&#x67;&#109;&#97;&#x69;l.&#99;om&gt; wrote:

&gt; I thought we were headed towards a slimmer, lightweight, dtd-less
&gt; XML... not adding more?

yes to the first, no to the second. :-)

-- 
Elliotte Rusty Harold
&#x65;lha&#x72;&#x6f;&#x40;ib&#x69;bl&#x69;&#111;.&#x6f;r&#103;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80150.html</link><pubDate>Mon, 16 Nov 2009 14:26:06 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 10:49 AM, Peter Hunsberger
&lt;pet&#x65;&#114;&#46;&#x68;&#x75;n&#x73;be&#114;g&#x65;&#x72;&#x40;g&#109;&#97;il&#46;&#99;&#111;m&gt; wrote:

&gt; So what's the alternative? Â There are lots of things that people
&gt; sometimes want to do, but not always. Â Having optional standards that
&gt; cover these areas is probably a good thing;

No, the alternative is to build them into the specs and require
parsers to support them, but not require documents to use them. For
example, consider attributes. You don't have to use them in XML, but
if you do use them you know they're supported. xml:id, xml:base, and a
few other things (though probably not XInclude) should be baked in,
not bolted on. Watch this space. :-)

-- 
Elliotte Rusty Harold
elh&#97;ro&#x40;ib&#x69;bli&#x6f;&#46;&#111;r&#103;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50150.html</link><pubDate>Mon, 16 Nov 2009 11:17:50 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 10:17 AM, Elliotte Rusty Harold
&lt;&#101;&#108;h&#x61;r&#111;&#64;i&#98;ibl&#105;o&#x2e;&#x6f;r&#x67;&gt; wrote:
&gt; On Mon, Nov 16, 2009 at 10:49 AM, Peter Hunsberger
&gt; &lt;&#112;e&#116;er&#x2e;&#104;un&#115;b&#x65;r&#x67;&#x65;r&#x40;gmail&#46;&#99;om&gt; wrote:
&gt;
&gt;&gt; So what's the alternative?  There are lots of things that people
&gt;&gt; sometimes want to do, but not always.  Having optional standards that
&gt;&gt; cover these areas is probably a good thing;
&gt;
&gt; No, the alternative is to build them into the specs and require
&gt; parsers to support them, but not require documents to use them. For
&gt; example, consider attributes. You don't have to use them in XML, but
&gt; if you do use them you know they're supported. xml:id, xml:base, and a
&gt; few other things (though probably not XInclude) should be baked in,
&gt; not bolted on. Watch this space. :-)
&gt;

Well that sure doesn't jive with your original starting position:

&gt; Let me put it like this: one of the original goals of XML was &quot;The number of
&gt; optional features in XML is to be kept to the absolute minimum, ideally
&gt; zero.&quot;

However, optional but part of the base spec, vs. optional and part of
a different spec really makes no difference as far as I can tell,
other than to make the base spec larger and harder to get agreement
on?

-- 
Peter Hunsberger
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70150.html</link><pubDate>Mon, 16 Nov 2009 10:59:41 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 15, 2009 at 11:48 PM, Rick Jelliffe
&lt;&#x72;&#106;e&#108;l&#x69;&#x66;f&#x65;&#64;alle&#116;&#x74;&#x65;.c&#x6f;m.au&gt; wrote:
&gt; Elliotte Rusty Harold wrote:
&gt;&gt;
&gt;
&gt; Let me put it like this: one of the original goals of XML was &quot;The number of
&gt; optional features in XML is to be kept to the absolute minimum, ideally
&gt; zero.&quot; This was because the highly parameterized approach that SGML took was
&gt; not appropriate, for various reasons: one of which was that if there were
&gt; optional features, you could not be guaranteed that the recipient could
&gt; handle your document.
&gt;
&gt; And so what happened after that?  A stream of piddly little standards for
&gt; optional things: XBase, XInclude, xml:id.  And what is the result? It is
&gt; impractical to rely on them: or, at least, they don't relieve the developer
&gt; of any decision making or programming, since the developer has to enable
&gt; them or program for them on a case-by-case basis.
&gt;
So what's the alternative?  There are lots of things that people
sometimes want to do, but not always.  Having optional standards that
cover these areas is probably a good thing; at least developers can
pick up the standard and run with it (if they so choose) instead of
reinventing things from scratch.  The only thing I would ask is that
they be done in such a way that anyone that doesn't know about them
have things break when they encounter them.  For the most part things
like XInclude can be ignored if you don't care about them?

-- 
Peter Hunsberger
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40150.html</link><pubDate>Mon, 16 Nov 2009 09:49:46 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Mon, Nov 16, 2009 at 4:06 AM, Michael Ludwig &lt;m&#105;l&#117;71&#64;&#x67;m&#120;.de&gt; wrote:
&gt; So yes, it is XML, but no, it is not easily readable, or immediately
&gt; useful. And that's why I fail to see the reason why XML syntax was
&gt; desired in the first place.

Personally speaking, I think having an XML syntax for XSD was a good
choice. Trying to add features like simple and complex types, type
derivation etc may get quite clumsy, if they were tried to be defined
in a flat DTD like syntax.

Having a XML syntax for XSD, makes easy comprehension for people to
understand a particular schema, as it's hierarchical. I personally
find hierarchical specification for most of the things, easy to
understand.

On the other hand, I also find flat (line oriented formats)
specifications like EBNF to be quite successful. Of course, DTDs were
also successful as a starter to XML Schema technology :)



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80140.html</link><pubDate>Mon, 16 Nov 2009 09:19:48 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 15, 2009 at 5:52 PM, Liam Quin &lt;l&#x69;a&#109;&#64;&#119;&#51;&#46;&#111;r&#x67;&gt; wrote:

&gt; But the fairy dust has scattered, the hype has moved on, and few
&gt; organizations today would want to pay money to participate in
&gt; XML 2.0 work, I fear, even if we could get consensus on what such
&gt; a beast should look like.

[expletive deleted] consensus. [expletive deleted] organizations that pay to play.

The only way XML 2.0 could ever work is is if a few smart, like-minded
individuals get together and build something useful. If it's a
noticeable improvement on existing technology that offers significant
practical benefits to real customers (as opposed to  the completely
theoretical benefits of XML 1.1) the big companies can play catch up
later, just like they did with JSON; just like they did with XML 1.0.
Just like they're doing now with HTML 5.

&quot;Never doubt that a small group of thoughtful, committed people can
change the world. Indeed, it is the only thing that ever has.&quot; --
Margaret Mead

That said, I'm not sure we could make XML 2.0 better enough to justify
the cost of switching. XML 1.0 is still pretty damn good. 5% better
wouldn't do it. It really needs to be infinitely better: i.e. move
some projects that are  practically impossible today into the realm of
the plausible. After 12 years, and listening to a lot of good ideas
from multiple folks, I think I know how to make XML 50% better, maybe
even 100% better; but I'm not sure I know how to make it infinitely
better. But one of these days someone will figure out how to. I
suspect it won't be the W3C that does though.

-- 
Elliotte Rusty Harold
e&#108;&#x68;&#x61;r&#x6f;&#x40;i&#98;&#105;b&#108;&#105;&#111;.&#111;&#x72;&#x67;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20150.html</link><pubDate>Mon, 16 Nov 2009 06:40:05 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Tim Bray schrieb am 14.11.2009 um 12:49:06 (-0800):

&gt; The fact that  DTDs were baked into XML 1.0
&gt; is a historical accident.

Given the role SGML seems to have played when XML was drafted, the
inclusion of DTDs rather appears to be a historical inevitability.
Wasn't DTD too useful to be left out?

To continue your oven analogy, wouldn't XML without DTD have been
like raisin cake without raisins?

Or maybe you mean it would have been wise to leave out only those parts
that constrain the structure of the document in terms of elements and
attributes, but not other parts, such as entity declarations?

Also, agreeing to enhance DTD instead of inventing XSD, allowing the
user to define and assign types, might have been an alternative.

I've often heard or read that people wanted an XML notation for the
schema language and were dissatisfied with DTD for this very reason.
However, if you try to process XSD at the XML level, let's say in order
to produce an HTML page to document the notoriously unreadable XSD
syntax, you eventually realize that the language is pretty complicated
and you need a normalized representation of its syntax first. (Which
Saxon provides in the SA and Enterprise versions.)

So yes, it is XML, but no, it is not easily readable, or immediately
useful. And that's why I fail to see the reason why XML syntax was
desired in the first place.

-- 
Michael Ludwig
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10140.html</link><pubDate>Sun, 15 Nov 2009 23:36:04 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 15, 2009 at 09:44:56PM +0530, Mukul Gandhi wrote:
&gt; Thanks for sharing the historical perspective. Was this an important
&gt; architectural decision, while writing the original XML spec (i.e,
&gt; every DTD-valid document must also be a valid SGML document) - or to
&gt; say, was this a requirement/prerequisite for the original XML spec?
Yes. XML was originally called Web-SGML.  The entire purpose of XML,
originally, was to facilitate the use of (a subset of) SGML on the Web,
and, specifically (at first) in Web-browser plugins.

&gt; Perhaps, an XML 2.0 activity can rearchitect the XML specs, along the
&gt; lines you outlined earlier.

Possibly, but I don't see strong enough market benefits to
justify the lostt in compatibility and interoperability.

The XML promise -- any XML processor can read any XML document --
is an oversimplification, but, even if you tone it down to
take &quot;can read&quot; to mean &quot;is entitled to read&quot;, the extremely
high interoperability story of XML is a large part of its success.

Another important success story is of course XHTML -- which
relies on a DTD to define the HTML chracter entities.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70140.html</link><pubDate>Sun, 15 Nov 2009 22:44:19 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Liam,

On Sun, Nov 15, 2009 at 5:47 PM, Liam Quin &lt;lia&#x6d;&#x40;&#119;3&#x2e;&#x6f;&#114;&#x67;&gt; wrote:
&gt; Just to be clear, XML was designed so that every DTD-valid document
&gt; was also a valid SGML document; we had some 10 years experience
&gt; with SGML deployment, and that's where DTDs came from.

Thanks for sharing the historical perspective. Was this an important
architectural decision, while writing the original XML spec (i.e,
every DTD-valid document must also be a valid SGML document) - or to
say, was this a requirement/prerequisite for the original XML spec? If
yes, is it important to preserve it now as well (i.e, the SGML and XML
DTD connection)? Are there enough market drivers for this now?

Perhaps, an XML 2.0 activity can rearchitect the XML specs, along the
lines you outlined earlier.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70130.html</link><pubDate>Sun, 15 Nov 2009 21:44:56 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Ken,
   I think, the subject of this thread was different, than what this
debate is turning out to be.

My point was not to say, which Schema technology is better. I was only
trying to point to this one point in XML spec:
&quot;An XML document is valid if it's valid according to a DTD&quot;, and my
proposed changes to XML specs clearing up this confusion.

Tim Bray wrote earlier in this thread:
Mention of DTD into XML 1.0 spec, was historic accident. I think, Tim
was quite modest to support my view point. But I think, he recognizes
some truth with this textual flaw in the spec, in the current
scenario.

Liam Quin wrote:
An architectural breakup of XML specs can also be a viable option.

I think, Jim Tivy also supported my view points. Even I saw some
support from Mike Kay, but not entirely.

I think, rest of people in this thread spoke against this idea.

I've just tabled my ideas in this thread, and I am sure if it makes
sense something could be done about this issue, else this idea is
bound to be discarded :)

On Sun, Nov 15, 2009 at 7:01 PM, G. Ken Holman
&lt;&#x67;kholm&#97;&#110;&#64;&#99;&#x72;an&#x65;&#115;&#x6f;&#102;twr&#105;&#103;&#x68;ts&#46;com&gt; wrote:
&gt; I cited it only as an example. Â Forgive me if my comments came across as
&gt; otherwise.
&gt;
&gt;&gt; I think, even a correct implementation of
&gt;&gt; say, xs:redefine on one or two processors is good enough.
&gt;
&gt; But are there two implementations that are the same, and if they are the
&gt; same, are they the &quot;correct implementation&quot; you cite? Â I believe this is the
&gt; root of the issue: Â it isn't that vendors have implemented the specification
&gt; incorrectly, it is that the specification is unclear enough that each vendor
&gt; believes they have implemented it correctly yet end up with different
&gt; results. Â There are no &quot;bugs&quot; that can be identified and repaired in each
&gt; vendor's incompatible work because there is no agreement on the
&gt; interpretation of the specification as written.
&gt;
&gt; The validation semantics for W3C schema are written in prose.
&gt;
&gt; The validation semantics for RELAX-NG are written in formal unambiguous
&gt; notation, guiding all implementers to a formally correct implementation if
&gt; they properly implement the documented semantics. Â Of course they can
&gt; implement bugs, but because of the formalisms, the bugs can be identified as
&gt; such without debate.
&gt;
&gt;&gt; Sometimes,
&gt;&gt; vendors create differences in implementations to differentiate (I am
&gt;&gt; not really sure though, if that's true. At least the base standard
&gt;&gt; should be implementable).
&gt;
&gt; And that is my very point: Â yes, it should be written so as to be
&gt; implementable by all without ambiguity. Â Practice has revealed this is not
&gt; the case for W3C Schema.
&gt;
&gt;&gt; I am not trying to be getting into a mud sludge game between computer
&gt;&gt; languages, or to express sarcasm to any XML validation language. I
&gt;&gt; appreciate, efforts of anybody taking pains to design anything like
&gt;&gt; these languages, and implement them.
&gt;
&gt; Indeed. Â And please forgive me if my comments come across as sarcasm of W3C
&gt; schema, as I have been trying very hard to be objective so as to illustrate
&gt; the concerns with concrete examples. Â It is not my intention to obfuscate
&gt; the issues with mud, but to clarify the issues by citing identifiable
&gt; sources of concerns with the technology. Â Those in this debate who have not
&gt; supported W3C schema have been speaking up in the interests of all XML users
&gt; who may have, themselves, been misguided regarding the technology
&gt; (intentionally or unintentionally).
&gt;
&gt; . . . . . . . . . . . . . Ken



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60130.html</link><pubDate>Sun, 15 Nov 2009 21:31:40 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Do whatever floats your boat, fella, but the reason we had them was to make
complex production of complex documents easy to do and easy to configure by
people who generally did not program for a living.

Pretty much everything else talked about in this thread was tacked on after
that.  It isn't a matter of spec goodness but historical fact.

Be seeing you.

len

-----Original Message-----
From: Jim Tivy [<A  HREF="mailto:ji&#109;t&#x40;&#x62;&#108;uestre&#x61;m&#x2e;c&#x6f;m">mailto:ji&#109;t&#x40;&#x62;&#108;uestre&#x61;m&#x2e;c&#x6f;m</A>] 
Sent: Sunday, November 15, 2009 6:31 PM
To: 'Len Bullard'; &#x54;&#105;m.&#66;r&#97;y&#x40;&#83;un.&#67;&#x4f;M; 'Mukul Gandhi'
Cc: 'G. Ken Holman'; &#x78;m&#x6c;&#x2d;&#100;&#x65;v&#x40;li&#115;&#116;s.&#120;ml&#x2e;org
Subject: RE:  XML spec and XSD

Len

I think schemaless processing of XML is **ONE** reason to get rid of the DTD
(element,attr decls) from the XML spec.  There are likely a set of other
reasons - another reason being a concern of being inclusive of all schema
languages with respect to XML validation - eg: factor out the notion of
validity from core XML spec.

I am not sure how to deal with your modelling of designers/programmers or
&quot;Facts are&quot; statements - makes my brains fall out - however I am not sure
you want those addressed.

However, I think it **valid** that you pointed out the importance of
validation.

Jim

-----Original Message-----
From: Len Bullard [<A  HREF="mailto:c&#98;u&#108;l&#97;rd&#x40;&#104;i&#x77;&#x61;&#97;y.n&#101;&#116;">mailto:c&#98;u&#108;l&#97;rd&#x40;&#104;i&#x77;&#x61;&#97;y.n&#101;&#116;</A>] 
Sent: Sunday, November 15, 2009 3:49 PM
To: &#84;&#105;m&#x2e;&#x42;r&#97;&#x79;&#64;Su&#110;.&#67;&#x4f;&#77;; 'Mukul Gandhi'
Cc: 'G. Ken Holman'; &#120;&#109;&#108;&#45;d&#101;v&#64;&#108;&#105;s&#x74;&#x73;.&#x78;m&#108;&#46;o&#x72;g
Subject: RE:  XML spec and XSD

That's nuts and the opinion of a designer who writes code wonderfully but
very few technical documents of any real complexity.

A DTD in a production system with many writers attempting to remain within
the constraints of a common document design found DTDs to be quite useful.
Otherwise markup was crap layered into already complex content.   The
programmer viewpoint of markup is but one viewpoint and can't be used to
post facto justify well-formedness as the basis of XML goodness.  

Facts are that now the usefulness of XML itself is questioned in many
quarters but at the time when SGML was used as the basis of complex
documentation systems that emphasized the accuracy of technical writing over
database design or streaming the DTD was crucial.

len


From: Tim&#x2e;&#66;r&#x61;y&#64;Su&#x6e;&#x2e;&#67;&#x4f;M [<A  HREF="mailto:Tim&#x2e;&#66;r&#x61;y&#64;Su&#x6e;&#x2e;&#67;&#x4f;M">mailto:Tim&#x2e;&#66;r&#x61;y&#64;Su&#x6e;&#x2e;&#67;&#x4f;M</A>] 

The textual flaw isn't that it doesn't mention XSD or RNG, the textual flaw
is that it mentions *any* schema language.   A very high proportion of
real-world XML processing is entirely free of anything schema-related.  The
vast majority of the XML value proposition is delivered by schema-free
well-formed XML.  Even in those apps that use a schema in their
specification, the vast majority of run-time processing is schema-free.  One
of the costliest common mistakes of XML app/language designers is putting
too much importance on schemas.  The XML specification shouldn't be
encouraging that mistake.

My own vision of what XML.next ought to look like may be found at
http://www.textuality.com/xml/xmlSW.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: x&#109;&#108;-&#x64;&#x65;&#x76;-&#117;&#x6e;&#115;&#x75;bs&#99;r&#105;b&#101;&#x40;lis&#x74;s&#46;x&#x6d;&#108;.&#111;rg
subscribe: x&#x6d;&#108;&#45;dev-&#x73;ub&#x73;&#99;r&#x69;&#98;&#101;&#x40;&#108;&#105;&#x73;&#x74;s.&#x78;&#x6d;l.&#111;&#x72;&#103;
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: x&#109;l&#x2d;dev-&#117;&#110;&#x73;&#x75;&#98;&#115;&#x63;&#x72;&#x69;b&#x65;&#x40;l&#x69;&#115;ts&#46;&#120;m&#108;&#x2e;or&#103;
subscribe: xml&#45;&#x64;&#101;&#x76;&#45;&#115;u&#98;s&#x63;&#x72;ib&#x65;&#64;l&#105;&#x73;t&#x73;.xml.&#111;&#x72;&#103;
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60140.html</link><pubDate>Sun, 15 Nov 2009 21:09:23 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt;    Saying that something like, xs:redefine isn't implemented 
&gt; consistently across different XSD processors, IMHO doesn't 
&gt; justify condemning XSD completely. I think, even a correct 
&gt; implementation of say, xs:redefine on one or two processors 
&gt; is good enough. 

In the case of xs:redefine the problem is that the spec is underspecified,
so two implementations can do different things and both be consistent with
the spec: it's not the case that some of the implementations are
&quot;incorrect&quot;. This is certainly one of the many technical weaknesses of the
XSD specification. It was of course an attempt to reproduce one of the ways
in which DTDs are used to define variant and customised content models.
Henry Thompson has produced some guidelines for use of xs:redefine which, if
you follow them, will give you interoperable behaviour and will probably
meet the requirement.

I would expect good experienced knowledgeable people like Tim Bray and Rick
Jelliffe to say &quot;There are many weaknesses in XSD and we know today how many
of these things could have been done better&quot; - which is perfectly true. I
would not expect them to say &quot;XSD is a complete failure&quot;. I simply don't
think one can say that of a technology which is so widely and successfully
deployed, and which has some technical characteristics (notable the
attribution of types to elements and attributes) which are currently unique
to that technology.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90130.html</link><pubDate>Sun, 15 Nov 2009 19:49:34 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>

&gt; XSD is a failure by any sane technical measure.

Yes, it's ugly, and very hard to use, and doesn't do a lot of things that
people might like it to do.

But you could say all that of Windows, and Windows is not exactly a failure,
though you could argue that in a saner world it would be.

There are other measures of success that are not entirely insane:

(a) it meets all the requirements that were specified at the start of the
project.

(b) it has half a dozen decent implementations, with a level of
interoperability that's not unreasonable by computer industry standards
(much better than SQL, for example).

(c) it's used by large numbers of people, many of whom have a choice.

(d) it does most of the things that most of those people need it to do.

(e) it underpins a large number of industry standards that enable effective
interchange of data around the world, creating enormous value by oiling the
wheels of commerce.

If it were really such a total failure, wouldn't the spec be gathering dust,
rather than being actively discussed on this list?

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80130.html</link><pubDate>Sun, 15 Nov 2009 19:30:50 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 15, 2009 at 02:32:37PM -0800, Tim Bray wrote:
&gt; The textual flaw isn't that [the XML Specification] doesn't mention XSD or
&gt; RNG, the textual flaw is that it mentions *any* schema language.

Agreed.

But the fairy dust has scattered, the hype has moved on, and few
organizations today would want to pay money to participate in
XML 2.0 work, I fear, even if we could get consensus on what such
a beast should look like.

Liam


-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20140.html</link><pubDate>Sun, 15 Nov 2009 17:52:50 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
That's nuts and the opinion of a designer who writes code wonderfully but
very few technical documents of any real complexity.

A DTD in a production system with many writers attempting to remain within
the constraints of a common document design found DTDs to be quite useful.
Otherwise markup was crap layered into already complex content.   The
programmer viewpoint of markup is but one viewpoint and can't be used to
post facto justify well-formedness as the basis of XML goodness.  

Facts are that now the usefulness of XML itself is questioned in many
quarters but at the time when SGML was used as the basis of complex
documentation systems that emphasized the accuracy of technical writing over
database design or streaming the DTD was crucial.

len


From: Ti&#109;.Bray&#x40;&#83;u&#x6e;.&#67;&#x4f;&#77; [<A  HREF="mailto:Ti&#109;.Bray&#x40;&#83;u&#x6e;.&#67;&#x4f;&#77;">mailto:Ti&#109;.Bray&#x40;&#83;u&#x6e;.&#67;&#x4f;&#77;</A>] 

The textual flaw isn't that it doesn't mention XSD or RNG, the textual flaw
is that it mentions *any* schema language.   A very high proportion of
real-world XML processing is entirely free of anything schema-related.  The
vast majority of the XML value proposition is delivered by schema-free
well-formed XML.  Even in those apps that use a schema in their
specification, the vast majority of run-time processing is schema-free.  One
of the costliest common mistakes of XML app/language designers is putting
too much importance on schemas.  The XML specification shouldn't be
encouraging that mistake.

My own vision of what XML.next ought to look like may be found at
http://www.textuality.com/xml/xmlSW.html


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40140.html</link><pubDate>Sun, 15 Nov 2009 17:49:22 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Ken,
   Saying that something like, xs:redefine isn't implemented
consistently across different XSD processors, IMHO doesn't justify
condemning XSD completely. I think, even a correct implementation of
say, xs:redefine on one or two processors is good enough. Sometimes,
vendors create differences in implementations to differentiate (I am
not really sure though, if that's true. At least the base standard
should be implementable).

For example, we use different web browsers (IE, Mozilla, Chrome or
whatever) without even caring how well all of these products implement
HTML or JavaScript. We just ignore, minor implementation faults. But
it's also true, that certain vendors take great care to meet the
specifications.

My experience has been, to see that most of the reputable products are
consitent in meeting standards. Some minor differences may happen, due
to the differences in how we interpret the spec, and also the desire
of vendors to differentiate.

As an analogy to this issue, for example I think we all love XSLT 2. I
think, we only have very few XSLT 2 implementations presently. Does
anybody bother to see, if say anything like the XSLT 2 instruction
xsl:for-each-group or any of other XSLT 2 instructions work
consistently across multiple XSLT 2 engines? Dispite for the ignorance
with these issues, people want to program with XSLT 2.

I am not trying to be getting into a mud sludge game between computer
languages, or to express sarcasm to any XML validation language. I
appreciate, efforts of anybody taking pains to design anything like
these languages, and implement them.

On Sun, Nov 15, 2009 at 8:25 AM, G. Ken Holman
&lt;&#x67;k&#x68;olma&#110;&#x40;&#99;r&#97;ne&#x73;o&#x66;t&#119;righ&#116;&#x73;.&#x63;om&gt; wrote:
&gt; I wouldn't agree with that. Â I also side with Tim and Rick and others who
&gt; grudgingly find they have to work with XSD (usually to meet customer
&gt; requests; personally I migrated from DTD to RELAX-NG and never embraced
&gt; XSD), and for the same reason that Tim cites above: technical issues. Â Size
&gt; and complexity are not, necessarily, technical faults.
&gt;
&gt;&gt; From functional point of view, I don't think XSD doesn't work.
&gt;
&gt; There are a number of areas that are problematic. Â One example is no two
&gt; vendors have implemented &quot;redefine&quot; the same way. Â I had researched this to
&gt; meet specific requirements identified for the UBL project and was burned by
&gt; assuming the way one processor implemented redefine was the way others
&gt; implemented it.
&gt;
&gt;&gt; So many numerous XML applications currently used XSD.
&gt;
&gt; Popularity is no measure of functionality. Â Vendors who are pushing XSD
&gt; products would likely tell their clients there are no other choices for
&gt; schema languages. Â It is my assessment that vendors and users ignore or are
&gt; unaware of other sources of XML-based technologies, such as ISO/IEC JTC 1/SC
&gt; 34 which created the ISO/IEC 19757 Document Schema Definition Languages
&gt; (DSDL) that includes RELAX-NG, Schematron and NVDL among other XML
&gt; specifications.
&gt;
&gt;&gt; I don't think, there is anything wrong with the basic core/philosophy
&gt;&gt; of XSD.
&gt;
&gt; An example of a core fault is that W3C Schema is not closed under union. Â I
&gt; cannot programmatically express the union of two XSD schemas to create a
&gt; third XSD schema that validates instances of the other two. Â I might be able
&gt; to by hand, but not programmatically.
&gt;
&gt; This is not academic: Â consider an XML document where in two different
&gt; contexts there is an element &lt;x&gt; with different content models. Â I then
&gt; write a query that assembles all of the documents &lt;x&gt; elements under a
&gt; single parent result element. Â I have to hand-craft the schema that
&gt; validates the result of the query (if it is possible and not an ambiguous
&gt; content model), as I cannot express in XSD-speak two sibling elements with
&gt; different content models. Â If I could simply express the union of the two
&gt; original &lt;x&gt; content models as the content model for the query result &lt;x&gt;,
&gt; then I wouldn't have to resort to hand-crafting.
&gt;
&gt; There may be other &quot;core&quot; faults, but that is one that has been a problem
&gt; for me.
&gt;
&gt; In RELAX-NG compact syntax, if I have a grammar &quot;a&quot; and a grammar &quot;b&quot; (be it
&gt; document level, element level or any level of a grammar; at the element
&gt; level both grammars might express different content models for the element
&gt; &lt;x&gt;), the union of these two grammars is expressed as &quot;a | b&quot;. Â No other
&gt; work is necessary. Â An instance of &lt;x&gt; will validate true if it passes the
&gt; constraints expressed by either grammar.
&gt;
&gt;&gt; I guess, some of users who don't like XSD generally, it's
&gt;&gt; probably because of it's huge size, and steep learning curve.
&gt;
&gt; But cognoscenti such as Rick Jelliffe, Tim Bray and many others would not
&gt; find a specification's huge size and steep learning curve a fault if,
&gt; technically, the end result was something that worked well.
&gt;
&gt; It might indeed be a barrier for new people to W3C Schema, but my
&gt; recollection is that negative opinions in this debate have not come from
&gt; representatives of that user group.
&gt;
&gt;&gt; I believe, XSD also get's functionally better with the upcoming 1.1
&gt;&gt; release.
&gt;
&gt; Probably the functionality will be better, yes, but will it address
&gt; everything? Â We won't know until it is released, and I suspect some legacy
&gt; 1.0 issues will dog all dot-releases of XSD.
&gt;
&gt; I hope this is considered helpful to the discussion.
&gt;
&gt; . . . . . . . . . . . Ken



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30130.html</link><pubDate>Sun, 15 Nov 2009 17:15:25 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Len

I think schemaless processing of XML is **ONE** reason to get rid of the DTD
(element,attr decls) from the XML spec.  There are likely a set of other
reasons - another reason being a concern of being inclusive of all schema
languages with respect to XML validation - eg: factor out the notion of
validity from core XML spec.

I am not sure how to deal with your modelling of designers/programmers or
&quot;Facts are&quot; statements - makes my brains fall out - however I am not sure
you want those addressed.

However, I think it **valid** that you pointed out the importance of
validation.

Jim

-----Original Message-----
From: Len Bullard [<A  HREF="mailto:&#99;bu&#108;l&#97;&#114;&#100;&#64;&#104;i&#119;&#97;&#x61;y&#46;ne&#116;">mailto:&#99;bu&#108;l&#97;&#114;&#100;&#64;&#104;i&#119;&#97;&#x61;y&#46;ne&#116;</A>] 
Sent: Sunday, November 15, 2009 3:49 PM
To: &#x54;&#105;&#109;.B&#114;&#x61;&#x79;&#x40;S&#x75;&#x6e;.COM; 'Mukul Gandhi'
Cc: 'G. Ken Holman'; &#120;m&#108;&#45;d&#101;v&#x40;&#108;&#x69;&#x73;&#x74;s&#x2e;x&#x6d;l.or&#x67;
Subject: RE:  XML spec and XSD

That's nuts and the opinion of a designer who writes code wonderfully but
very few technical documents of any real complexity.

A DTD in a production system with many writers attempting to remain within
the constraints of a common document design found DTDs to be quite useful.
Otherwise markup was crap layered into already complex content.   The
programmer viewpoint of markup is but one viewpoint and can't be used to
post facto justify well-formedness as the basis of XML goodness.  

Facts are that now the usefulness of XML itself is questioned in many
quarters but at the time when SGML was used as the basis of complex
documentation systems that emphasized the accuracy of technical writing over
database design or streaming the DTD was crucial.

len


From: &#84;im&#x2e;&#x42;ra&#x79;&#x40;Sun&#x2e;C&#79;&#77; [<A  HREF="mailto:&#84;im&#x2e;&#x42;ra&#x79;&#x40;Sun&#x2e;C&#79;&#77;">mailto:&#84;im&#x2e;&#x42;ra&#x79;&#x40;Sun&#x2e;C&#79;&#77;</A>] 

The textual flaw isn't that it doesn't mention XSD or RNG, the textual flaw
is that it mentions *any* schema language.   A very high proportion of
real-world XML processing is entirely free of anything schema-related.  The
vast majority of the XML value proposition is delivered by schema-free
well-formed XML.  Even in those apps that use a schema in their
specification, the vast majority of run-time processing is schema-free.  One
of the costliest common mistakes of XML app/language designers is putting
too much importance on schemas.  The XML specification shouldn't be
encouraging that mistake.

My own vision of what XML.next ought to look like may be found at
http://www.textuality.com/xml/xmlSW.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: x&#109;&#x6c;&#x2d;de&#x76;&#x2d;u&#x6e;su&#x62;&#115;&#x63;r&#105;&#98;e&#x40;&#108;&#x69;sts.x&#109;&#108;.o&#x72;g
subscribe: xml&#45;d&#x65;&#118;&#45;s&#117;&#x62;&#115;&#x63;ri&#98;e&#x40;li&#115;&#116;s.x&#109;l&#46;&#111;r&#x67;
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50140.html</link><pubDate>Sun, 15 Nov 2009 16:30:39 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hearing this is truly music to my ears. The implication being that the XML
spec would not even have to talk about &quot;valid&quot; or &quot;validity&quot; - thus we would
not have to deal with this matter if inclusivity with respect to schema
languages in the XML spec.

-----Original Message-----
From: Tim.Br&#x61;&#x79;&#64;S&#x75;n.CO&#x4d; [<A  HREF="mailto:Tim.Br&#x61;&#x79;&#64;S&#x75;n.CO&#x4d;">mailto:Tim.Br&#x61;&#x79;&#64;S&#x75;n.CO&#x4d;</A>] 
Sent: Sunday, November 15, 2009 2:33 PM
To: Mukul Gandhi
Cc: G. Ken Holman; x&#109;&#x6c;-&#100;e&#x76;&#x40;l&#x69;sts.xml.or&#103;
Subject: Re:  XML spec and XSD

On 2009-11-15, at 8:01 AM, Mukul Gandhi wrote:

&gt; Tim Bray wrote earlier in this thread:
&gt; Mention of DTD into XML 1.0 spec, was historic accident. I think, Tim
&gt; was quite modest to support my view point. But I think, he recognizes
&gt; some truth with this textual flaw in the spec, in the current
&gt; scenario.

The textual flaw isn't that it doesn't mention XSD or RNG, the textual flaw
is that it mentions *any* schema language.   A very high proportion of
real-world XML processing is entirely free of anything schema-related.  The
vast majority of the XML value proposition is delivered by schema-free
well-formed XML.  Even in those apps that use a schema in their
specification, the vast majority of run-time processing is schema-free.  One
of the costliest common mistakes of XML app/language designers is putting
too much importance on schemas.  The XML specification shouldn't be
encouraging that mistake.

My own vision of what XML.next ought to look like may be found at
http://www.textuality.com/xml/xmlSW.html

 -Tim

_______________________________________________________________________

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: x&#x6d;l&#45;dev-un&#x73;u&#x62;&#115;&#99;r&#105;be&#64;l&#105;st&#x73;.x&#109;&#108;.o&#x72;g
subscribe: &#120;ml&#45;&#x64;&#x65;&#118;&#45;s&#117;&#98;sc&#x72;i&#x62;e&#x40;l&#105;s&#x74;&#x73;&#46;&#x78;&#109;l.o&#114;g
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30140.html</link><pubDate>Sun, 15 Nov 2009 14:56:33 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On 2009-11-15, at 8:01 AM, Mukul Gandhi wrote:

&gt; Tim Bray wrote earlier in this thread:
&gt; Mention of DTD into XML 1.0 spec, was historic accident. I think, Tim
&gt; was quite modest to support my view point. But I think, he recognizes
&gt; some truth with this textual flaw in the spec, in the current
&gt; scenario.

The textual flaw isn't that it doesn't mention XSD or RNG, the textual flaw is that it mentions *any* schema language.   A very high proportion of real-world XML processing is entirely free of anything schema-related.  The vast majority of the XML value proposition is delivered by schema-free well-formed XML.  Even in those apps that use a schema in their specification, the vast majority of run-time processing is schema-free.  One of the costliest common mistakes of XML app/language designers is putting too much importance on schemas.  The XML specification shouldn't be encouraging that mistake.

My own vision of what XML.next ought to look like may be found at http://www.textuality.com/xml/xmlSW.html

 -Tim
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00140.html</link><pubDate>Sun, 15 Nov 2009 14:32:37 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Liam,

On Sun, Nov 15, 2009 at 6:19 AM, Liam Quin &lt;&#108;i&#97;&#x6d;&#64;&#119;3&#x2e;&#111;r&#x67;&gt; wrote:
&gt; Speaking as W3C XML Activity Lead :-) I don't see a reason to
&gt; give XSD special status in that way.

No problems :) That's fair enough for me.

&gt; W3C XSD has a lot of uses, and works well if you are also
&gt; using XSLT 2, XQuery, Web Services or other specifications
&gt; where the XSD support is well-integrated. Â This doesn't in
&gt; any way preclude using RelaxNG, DTDs, Schematron, or any
&gt; other sort of validation, and it's not really the place of
&gt; the XML specification to give a list of other technologies
&gt; that are used with it or build on it.

I agree with this. I was actually not forcing a point of view, to
really specify something like XSD, RelaxNG or other XML validation
technology into the XML spec. I just find specification of a statement
like, &quot;an XML document is valid, if it's valid according to a DTD&quot; in
the XML spec, confusing given the existence now, of other XML
validation technologies like XSD et al.

As you have suggested below, refactoring the XML spec and separating
DTD into a separate document looks a reasonable solution to this
problem, and would dispel the confusion which user's seemingly have
when they read the terms &quot;validation&quot; and DTD in the most recent XML
specs.

&gt; As Tim and others said, DTDs are in the XML specification for
&gt; historical reasons.

I appreciate this. It's good that, something like this existed in the
early days of XML (that was a nice innovation, in the absence of
anything else, as we speak of XSD and other validation technologies,
as of today). But now, the XML validation technologies, are in a
different paradigm and I guess, the XML and related specs should
explain the relationship between XML markup and it's validation,
reflecting the current world we are living in :) IMHO, it's fine if we
rearchitect the XML specs, as you suggested to achieve this clarity
for users.

&gt; If we had the resources, I can certainly
&gt; imagine refactoring XML 1.0 to put DTDs into a separate document,
&gt; and to bring into that document namespaces and xml:base and
&gt; maybe others. But the work of doing that is much greater than
&gt; it sounds -- making sure the text retains the same meaning,
&gt; and even that documents referring to specific productoins in the
&gt; EBNF grammar are not broken as a result.

I hope this can happen. Perhaps, a work to create drafts for such a
architectural breakup of XML specs, can begin :)

&gt; So I don't expect much enthusiasm for making a new edition of
&gt; XML to make the Informative References include XSD, but
&gt; please don't take that as a negative statement about XSD :-)

I appreciate your speaking about this topic, and supporting few of my points :)



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20130.html</link><pubDate>Sun, 15 Nov 2009 13:19:54 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 15, 2009 at 2:19 AM, Tim Bray &lt;T&#105;m&#x2e;Bra&#x79;&#64;&#115;un.&#x63;&#x6f;&#x6d;&gt; wrote:
&gt; The fact that DTDs were
&gt; baked into XML 1.0 is a historical accident.

I think, this statement affirms my point to some extent :)


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10130.html</link><pubDate>Sun, 15 Nov 2009 12:56:56 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
At 2009-11-15 17:15 +0530, Mukul Gandhi wrote:
&gt;    Saying that something like, xs:redefine isn't implemented
&gt;consistently across different XSD processors, IMHO doesn't justify
&gt;condemning XSD completely.

I cited it only as an example.  Forgive me if my comments came across 
as otherwise.

&gt;I think, even a correct implementation of
&gt;say, xs:redefine on one or two processors is good enough.

But are there two implementations that are the same, and if they are 
the same, are they the &quot;correct implementation&quot; you cite?  I believe 
this is the root of the issue:  it isn't that vendors have 
implemented the specification incorrectly, it is that the 
specification is unclear enough that each vendor believes they have 
implemented it correctly yet end up with different results.  There 
are no &quot;bugs&quot; that can be identified and repaired in each vendor's 
incompatible work because there is no agreement on the interpretation 
of the specification as written.

The validation semantics for W3C schema are written in prose.

The validation semantics for RELAX-NG are written in formal 
unambiguous notation, guiding all implementers to a formally correct 
implementation if they properly implement the documented 
semantics.  Of course they can implement bugs, but because of the 
formalisms, the bugs can be identified as such without debate.

&gt;Sometimes,
&gt;vendors create differences in implementations to differentiate (I am
&gt;not really sure though, if that's true. At least the base standard
&gt;should be implementable).

And that is my very point:  yes, it should be written so as to be 
implementable by all without ambiguity.  Practice has revealed this 
is not the case for W3C Schema.

&gt;I am not trying to be getting into a mud sludge game between computer
&gt;languages, or to express sarcasm to any XML validation language. I
&gt;appreciate, efforts of anybody taking pains to design anything like
&gt;these languages, and implement them.

Indeed.  And please forgive me if my comments come across as sarcasm 
of W3C schema, as I have been trying very hard to be objective so as 
to illustrate the concerns with concrete examples.  It is not my 
intention to obfuscate the issues with mud, but to clarify the issues 
by citing identifiable sources of concerns with the 
technology.  Those in this debate who have not supported W3C schema 
have been speaking up in the interests of all XML users who may have, 
themselves, been misguided regarding the technology (intentionally or 
unintentionally).

. . . . . . . . . . . . . Ken

--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:&#103;&#107;&#104;ol&#x6d;a&#110;&#64;Cr&#97;&#110;e&#x53;oftwrig&#104;t&#x73;&#x2e;co&#x6d;">mailto:&#103;&#107;&#104;ol&#x6d;a&#110;&#64;Cr&#97;&#110;e&#x53;oftwrig&#104;t&#x73;&#x2e;co&#x6d;</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50130.html</link><pubDate>Sun, 15 Nov 2009 08:31:48 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Tim,

On Sun, Nov 15, 2009 at 2:15 AM, Tim Bray &lt;&#x54;&#x69;&#x6d;.Bray&#x40;s&#117;n&#x2e;&#99;&#111;m&gt; wrote:
&gt; I thought Rick was being fair. Â XSD is a failure by any sane technical
&gt; measure.

I agree, that XSD spec has been quite mammoth and functionally
complex. That's the only aspect, I see XSD being different from most
of other W3C specs.

From functional point of view, I don't think XSD doesn't work. So many
numerous XML applications currently used XSD.

I don't think, there is anything wrong with the basic core/philosophy
of XSD. I guess, some of users who don't like XSD generally, it's
probably because of it's huge size, and steep learning curve.
I believe, XSD also get's functionally better with the upcoming 1.1 release.

&gt; There's no reason not to acknowledge this and hopefully learn from
&gt; it in future standardization efforts.

Pls see my previous remarks :)

&gt; If we don't learn from our failures
&gt; we're condemned to repeat them.

I agree. That's true for any endeavors we get engaged in :)


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80120.html</link><pubDate>Sun, 15 Nov 2009 07:34:35 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 15, 2009 at 01:19:54PM +0530, Mukul Gandhi wrote:
&gt; &gt; As Tim and others said, DTDs are in the XML specification for
&gt; &gt; historical reasons.
&gt; 
&gt; I appreciate this. It's good that, something like this existed in the
&gt; early days of XML (that was a nice innovation, in the absence of
&gt; anything else, as we speak of XSD and other validation technologies,
&gt; as of today).

Just to be clear, XML was designed so that every DTD-valid document
was also a valid SGML document; we had some 10 years experience
with SGML deployment, and that's where DTDs came from.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40130.html</link><pubDate>Sun, 15 Nov 2009 07:17:11 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
At 2009-11-14 21:55 -0500, I wrote:
&gt;There may be other &quot;core&quot; faults, but that is one that has been a 
&gt;problem for me.

Of course I thought of another one right after I posted the above, a 
fault that is a deficiency rather than something broken (though you 
could consider the specification broken without the functionality):

W3C Schema validation semantics cannot express the constraints of 
XHTML's &quot;head&quot; element which in DTD-speak is:

&lt;!ENTITY % head.misc &quot;SCRIPT|STYLE|META|LINK|OBJECT&quot; -- repeatable 
head elements --&gt;
&lt;!ENTITY % head.content &quot;TITLE &amp; BASE?&quot;&gt;
&lt;!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head --&gt;

The problem is with the limited cardinality of &quot;title&quot; and &quot;base&quot; and 
the arbitrary order of elements preventing the use of alternation 
because of the ambiguous content models.

In RELAX-NG the interleave concept addresses this.

And yet another fault of 1.0 that will be addressed with 1.1 is 
mutually-exclusive attributes, which is needed if one wanted to 
express W3C XSL-FO using a schema (for &lt;basic-link&gt; one has either 
internal-destination= or external-destination= but not both and not 
neither).  And I believe 1.1 doesn't address this with a semantic 
expressing the exclusivity as an operator with operands, but with an 
assertion after the fact that the presence of both is unacceptable.

In RELAX-NG attributes and elements can both be operands in the 
constraint semantics.

So these are but two examples of W3C specifications of XML 
vocabularies that existed before the W3C Schema specification was 
finalized, where each one has document constraints that cannot be 
expressed by W3C Schema semantics.

Other posters in this debate have cited new W3C specifications that 
are using RELAX-NG instead of W3C Schema, and I doubt the reason they 
used it was because of the size and complexity of W3C Schema.  If 
they are XML experts, they can make their way through specifications 
of any size to look for what they need.  I suspect the decisions were 
based on deficiencies in the validation semantics required for their needs.

Again, I hope this is considered helpful to the debate.

. . . . . . . . . Ken

--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:gk&#104;ol&#109;&#x61;n&#x40;C&#x72;a&#110;e&#x53;oft&#x77;&#114;&#105;g&#x68;&#x74;&#115;&#46;&#99;&#111;m">mailto:gk&#104;ol&#109;&#x61;n&#x40;C&#x72;a&#110;e&#x53;oft&#x77;&#114;&#105;g&#x68;&#x74;&#115;&#46;&#99;&#111;m</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00130.html</link><pubDate>Sat, 14 Nov 2009 22:29:06 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
At 2009-11-15 07:34 +0530, Mukul Gandhi wrote:
&gt;On Sun, Nov 15, 2009 at 2:15 AM, Tim Bray &lt;&#84;&#105;m&#46;&#66;&#114;a&#x79;&#x40;su&#x6e;.co&#x6d;&gt; wrote:
&gt; &gt; I thought Rick was being fair. Â XSD is a failure by any sane technical
&gt; &gt; measure.
&gt;
&gt;I agree, that XSD spec has been quite mammoth and functionally
&gt;complex. That's the only aspect, I see XSD being different from most
&gt;of other W3C specs.

I wouldn't agree with that.  I also side with Tim 
and Rick and others who grudgingly find they have 
to work with XSD (usually to meet customer 
requests; personally I migrated from DTD to 
RELAX-NG and never embraced XSD), and for the 
same reason that Tim cites above: technical 
issues.  Size and complexity are not, necessarily, technical faults.

&gt; From functional point of view, I don't think XSD doesn't work.

There are a number of areas that are 
problematic.  One example is no two vendors have 
implemented &quot;redefine&quot; the same way.  I had 
researched this to meet specific requirements 
identified for the UBL project and was burned by 
assuming the way one processor implemented 
redefine was the way others implemented it.

&gt;So many numerous XML applications currently used XSD.

Popularity is no measure of 
functionality.  Vendors who are pushing XSD 
products would likely tell their clients there 
are no other choices for schema languages.  It is 
my assessment that vendors and users ignore or 
are unaware of other sources of XML-based 
technologies, such as ISO/IEC JTC 1/SC 34 which 
created the ISO/IEC 19757 Document Schema 
Definition Languages (DSDL) that includes 
RELAX-NG, Schematron and NVDL among other XML specifications.

&gt;I don't think, there is anything wrong with the basic core/philosophy
&gt;of XSD.

An example of a core fault is that W3C Schema is 
not closed under union.  I cannot 
programmatically express the union of two XSD 
schemas to create a third XSD schema that 
validates instances of the other two.  I might be 
able to by hand, but not programmatically.

This is not academic:  consider an XML document 
where in two different contexts there is an 
element &lt;x&gt; with different content models.  I 
then write a query that assembles all of the 
documents &lt;x&gt; elements under a single parent 
result element.  I have to hand-craft the schema 
that validates the result of the query (if it is 
possible and not an ambiguous content model), as 
I cannot express in XSD-speak two sibling 
elements with different content models.  If I 
could simply express the union of the two 
original &lt;x&gt; content models as the content model 
for the query result &lt;x&gt;, then I wouldn't have to resort to hand-crafting.

There may be other &quot;core&quot; faults, but that is one 
that has been a problem for me.

In RELAX-NG compact syntax, if I have a grammar 
&quot;a&quot; and a grammar &quot;b&quot; (be it document level, 
element level or any level of a grammar; at the 
element level both grammars might express 
different content models for the element &lt;x&gt;), 
the union of these two grammars is expressed as 
&quot;a | b&quot;.  No other work is necessary.  An 
instance of &lt;x&gt; will validate true if it passes 
the constraints expressed by either grammar.

&gt;I guess, some of users who don't like XSD generally, it's
&gt;probably because of it's huge size, and steep learning curve.

But cognoscenti such as Rick Jelliffe, Tim Bray 
and many others would not find a specification's 
huge size and steep learning curve a fault if, 
technically, the end result was something that worked well.

It might indeed be a barrier for new people to 
W3C Schema, but my recollection is that negative 
opinions in this debate have not come from representatives of that user group.

&gt;I believe, XSD also get's functionally better with the upcoming 1.1 release.

Probably the functionality will be better, yes, 
but will it address everything?  We won't know 
until it is released, and I suspect some legacy 
1.0 issues will dog all dot-releases of XSD.

I hope this is considered helpful to the discussion.

. . . . . . . . . . . Ken


--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:&#x67;k&#x68;&#111;lm&#x61;&#x6e;&#x40;&#x43;&#x72;a&#110;eS&#111;&#102;&#116;&#x77;&#114;&#x69;&#103;hts&#46;&#x63;&#x6f;m">mailto:&#x67;k&#x68;&#111;lm&#x61;&#x6e;&#x40;&#x43;&#x72;a&#110;eS&#111;&#102;&#116;&#x77;&#114;&#x69;&#103;hts&#46;&#x63;&#x6f;m</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90120.html</link><pubDate>Sat, 14 Nov 2009 21:55:02 GMT</pubDate></item><item><title>Re:  xsl processing problem with multiple templates</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
At 2009-11-14 20:40 -0500, Ian S. Worthington wrote:
&gt;I decided to go with the pull model
&gt;as, rightly or wrongly, I felt slightly more in control.

No criticism there ... a matter of style and future flexibility.  But 
I think you need the flexibility now that you are adding the 
hyperlink to your report.  You didn't have that in your earlier 
rendering of a fix.

&gt;I ditched the inline
&gt;data so I could generate a link to the full data contents for each fix. But I
&gt;couldn't find a way of doing that *under* the for-each whilst still retaining
&gt;access to the @href.

Using a variable would do that.

&gt;So I ended up with the following which, whilst it works,
&gt;is presumably reading the linked document twice just to extract the fix number
&gt;and fix abstract:

In syntax, yes, in runtime, no ... a processor will keep the tree 
cached in memory so there is in fact no repeated load of the source tree.

&gt;         &lt;ul&gt;
&gt;           &lt;xsl:for-each select=&quot;fix&quot;&gt;
&gt;             &lt;!-- &lt;xsl:for-each select=&quot;document( fix/@href )/fix&quot;&gt; --&gt;
&gt;             &lt;li&gt;
&gt;               &lt;a&gt;
&gt;                 &lt;xsl:attribute name=&quot;href&quot;&gt;
&gt;                   &lt;xsl:value-of select=&quot;@href&quot;/&gt;
&gt;                 &lt;/xsl:attribute&gt;
&gt;                 &lt;xsl:value-of select=&quot;document( @href )/fix/number&quot;/&gt;
&gt;               &lt;/a&gt;
&gt;               &lt;br/&gt;&lt;xsl:value-of select=&quot;document( @href )/fix/abstract&quot;/&gt;
&gt;             &lt;/li&gt;
&gt;           &lt;/xsl:for-each&gt;
&gt;         &lt;/ul&gt;
&gt;
&gt;I'm sure there's a more efficient way, yes?

First let me show you how the above would take advantage of a 
variable, but the above and this won't handle the embedded fixes, 
only the referred fixes:

         &lt;ul&gt;
           &lt;xsl:for-each select=&quot;fix&quot;&gt;
             &lt;xsl:variable name=&quot;link&quot; select=&quot;@href&quot;/&gt;
             &lt;xsl:for-each select=&quot;document( $link )/fix&quot;&gt; --&gt;
               &lt;li&gt;
                 &lt;a href=&quot;{$link}&quot;&gt;
                   &lt;xsl:value-of select=&quot;number&quot;/&gt;
                 &lt;/a&gt;
                 &lt;br/&gt;&lt;xsl:value-of select=&quot;abstract&quot;/&gt;
               &lt;/li&gt;
             &lt;/xsl:for-each&gt;
           &lt;/xsl:for-each&gt;
         &lt;/ul&gt;

But from your earlier post you wanted to handle both embedded and 
referred fixes ... so you want two behaviours based on a fix and you 
want the handling in the order of the fixes, which is arbitrary.  The 
two behaviours are to hyperlink fixes that are referred, and to not 
hyperlink fixes that are embedded.

I'm going to suggest again the push method as follows, because it 
fits well with the processing of the mixture of types of fixes:

         &lt;ul&gt;
           &lt;xsl:apply-templates select=&quot;fix&quot;/&gt;
         &lt;/ul&gt;
       &lt;/body&gt;
     &lt;/html&gt;
   &lt;/xsl:template&gt;

   &lt;!--embedded--&gt;
   &lt;xsl:template match=&quot;fix&quot;&gt;
      &lt;li&gt;
         &lt;xsl:value-of select=&quot;number&quot;/&gt;
         &lt;br/&gt;&lt;xsl:value-of select=&quot;abstract&quot;/&gt;
      &lt;/li&gt;
   &lt;/xsl:template&gt;

   &lt;!--referred--&gt;
   &lt;xsl:template match=&quot;fix[@href]&quot;&gt;
     &lt;xsl:variable name=&quot;link&quot; select=&quot;@href&quot;/&gt;
     &lt;xsl:for-each select=&quot;document( $link )/fix&quot;&gt; --&gt;
       &lt;li&gt;
         &lt;a href=&quot;{$link}&quot;&gt;
           &lt;xsl:value-of select=&quot;number&quot;/&gt;
         &lt;/a&gt;
         &lt;br/&gt;&lt;xsl:value-of select=&quot;abstract&quot;/&gt;
       &lt;/li&gt;
     &lt;/xsl:for-each&gt;
   &lt;/xsl:template&gt;

With the above you can now have any arbitrary order of embedded and 
linked fixes and they will be processed accordingly each to their 
needs.  This is a primary benefit of the push model:  handling 
arbitrary orders of nodes.  Mixed content is another example of where 
the push model shines, but for the same reason:  handling arbitrary 
orders of nodes.

I hope this helps.

. . . . . . . . . . . . Ken

--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:&#103;&#107;h&#111;lman&#x40;&#x43;&#114;a&#x6e;e&#83;&#x6f;ftwri&#103;&#x68;ts&#x2e;&#99;&#111;m">mailto:&#103;&#107;h&#111;lman&#x40;&#x43;&#114;a&#x6e;e&#83;&#x6f;ftwri&#103;&#x68;ts&#x2e;&#99;&#111;m</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70120.html</link><pubDate>Sat, 14 Nov 2009 21:01:13 GMT</pubDate></item><item><title>Re:  xsl processing problem with multiple templates</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Ken --

Many thanks for the link to your book.  I decided to go with the pull model
as, rightly or wrongly, I felt slightly more in control.  I ditched the inline
data so I could generate a link to the full data contents for each fix. But I
couldn't find a way of doing that *under* the for-each whilst still retaining
access to the @href.  So I ended up with the following which, whilst it works,
is presumably reading the linked document twice just to extract the fix number
and fix abstract:


        &lt;ul&gt;
          &lt;xsl:for-each select=&quot;fix&quot;&gt;
            &lt;!-- &lt;xsl:for-each select=&quot;document( fix/@href )/fix&quot;&gt; --&gt;
            &lt;li&gt;
              &lt;a&gt;
                &lt;xsl:attribute name=&quot;href&quot;&gt;
                  &lt;xsl:value-of select=&quot;@href&quot;/&gt;
                &lt;/xsl:attribute&gt;          
                &lt;xsl:value-of select=&quot;document( @href )/fix/number&quot;/&gt;
              &lt;/a&gt;
              &lt;br/&gt;&lt;xsl:value-of select=&quot;document( @href )/fix/abstract&quot;/&gt;
            &lt;/li&gt;  
          &lt;/xsl:for-each&gt;
        &lt;/ul&gt;

I'm sure there's a more efficient way, yes?

i


------ Original Message ------
Received: 05:50 PM COT, 11/14/2009
From: &quot;G. Ken Holman&quot; &lt;&#103;&#x6b;&#104;ol&#109;a&#110;&#64;&#x43;&#114;&#x61;neS&#111;&#x66;&#116;w&#x72;&#x69;ghts.&#99;om&gt;
To: &lt;xml-de&#x76;&#x40;li&#x73;&#x74;&#115;&#46;xml.&#x6f;&#114;g&gt;
Subject: Re:  xsl processing problem with multiple templates

&gt; At 2009-11-14 16:55 -0500, Ian S. Worthington wrote:
&gt; &gt;The idea of pushing is new to me I'm afraid.
&gt; 
&gt; In fact you are already using it because you catch a node pushed at 
&gt; your stylesheet when using a template match.
&gt; 
&gt; &gt;Where should that &quot;apply-templates&quot; line go?
&gt; 
&gt; In place of the &lt;xsl:for-each/&gt;
&gt; 
&gt; &gt;Obviously not here:
&gt; &gt;
&gt; &gt;&lt;xsl:stylesheet version=&quot;1.0&quot;
&gt; &gt;xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
&gt; &gt;   &lt;xsl:template match=&quot;fixlist&quot;&gt;
&gt; &gt;     &lt;xsl:message&gt;Matched data root&lt;/xsl:message&gt;
&gt; &gt;     &lt;html&gt;
&gt; &gt;     &lt;body&gt;
&gt; &gt;       &lt;xsl:for-each select=&quot;fix&quot;&gt;
&gt; &gt;         &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
&gt; &gt;document( fix/@href )/fix&quot;/&gt;
&gt; &gt;         &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
&gt; &gt;       &lt;/xsl:for-each&gt;
&gt; &gt;     &lt;/body&gt;
&gt; &gt;     &lt;/html&gt;
&gt; &gt;   &lt;/xsl:template&gt;
&gt; &gt;&lt;/xsl:stylesheet&gt;
&gt; 
&gt; Your choice .... either using pull:
&gt; 
&gt;        &lt;xsl:for-each select=&quot;fix[not(@href)] |
&gt;                              document( fix/@href )/fix&quot;&gt;
&gt;          &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
&gt;        &lt;/xsl:for-each&gt;
&gt; 
&gt; .. or using push:
&gt; 
&gt; &lt;xsl:stylesheet version=&quot;1.0&quot;
&gt; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
&gt;    &lt;xsl:template match=&quot;fixlist&quot;&gt;
&gt;      &lt;xsl:message&gt;Matched data root&lt;/xsl:message&gt;
&gt;      &lt;html&gt;
&gt;      &lt;body&gt;
&gt;       &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
&gt;                                    document( fix/@href )/fix&quot;/&gt;
&gt;      &lt;/body&gt;
&gt;      &lt;/html&gt;
&gt;    &lt;/xsl:template&gt;
&gt; 
&gt;    &lt;xsl:template match=&quot;fix&quot;&gt;
&gt;     &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
&gt;    &lt;/xsl:template&gt;
&gt; 
&gt; &lt;/xsl:stylesheet&gt;
&gt; 
&gt; 
&gt; I hope this helps.  On my web site I have a free download of an 
&gt; excerpt of my XSLT book where I've introduced the concepts of pull and
push.
&gt; 
&gt; I hope this helps.
&gt; 
&gt; . . . . . . . . Ken
&gt; 
&gt; --
&gt; Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
&gt; Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
&gt; Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
&gt; Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
&gt; Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
&gt; G. Ken Holman                 <A  HREF="mailto:g&#107;&#x68;&#x6f;&#108;m&#97;n&#x40;C&#114;&#97;ne&#x53;of&#116;&#119;&#x72;&#x69;&#x67;h&#x74;&#115;&#x2e;c&#111;m">mailto:g&#107;&#x68;&#x6f;&#108;m&#97;n&#x40;C&#114;&#97;ne&#x53;of&#116;&#119;&#x72;&#x69;&#x67;h&#x74;&#115;&#x2e;c&#111;m</A>
&gt; Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
&gt; Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
&gt; 
&gt; 
&gt; _______________________________________________________________________
&gt; 
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt; 
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#120;m&#108;-&#100;ev-un&#x73;&#x75;b&#115;&#x63;r&#105;&#98;e&#64;lists.&#120;&#x6d;l&#x2e;o&#114;&#x67;
&gt; subscribe: &#120;&#109;&#108;&#45;d&#101;v&#45;&#x73;&#117;&#x62;s&#99;ri&#x62;&#x65;&#64;l&#x69;&#x73;&#116;&#x73;&#x2e;xm&#x6c;.o&#114;&#103;
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt; 
&gt; 



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60120.html</link><pubDate>Sat, 14 Nov 2009 20:40:08 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 08, 2009 at 09:52:36AM +0530, Mukul Gandhi wrote:
[...]
&gt; My averment was to give XSD the same status as DTD, as a XML
&gt; validation technology in W3C XML spec.

Speaking as W3C XML Activity Lead :-) I don't see a reason to
give XSD special status in that way.

W3C XSD has a lot of uses, and works well if you are also
using XSLT 2, XQuery, Web Services or other specifications
where the XSD support is well-integrated.  This doesn't in
any way preclude using RelaxNG, DTDs, Schematron, or any
other sort of validation, and it's not really the place of
the XML specification to give a list of other technologies
that are used with it or build on it.

As Tim and others said, DTDs are in the XML specification for
historical reasons.  If we had the resources, I can certainly
imagine refactoring XML 1.0 to put DTDs into a separate document,
and to bring into that document namespaces and xml:base and
maybe others. But the work of doing that is much greater than
it sounds -- making sure the text retains the same meaning,
and even that documents referring to specific productoins in the
EBNF grammar are not broken as a result.

So I don't expect much enthusiasm for making a new edition of
XML to make the Informative References include XSD, but
please don't take that as a negative statement about XSD :-)

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50120.html</link><pubDate>Sat, 14 Nov 2009 19:49:18 GMT</pubDate></item><item><title>RE:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; 
&gt; Would you say that a new basic text book about XML should 
&gt; hardly mention XInclude, XLink, and XPointer at all, at least 
&gt; not in whole chapters, but maybe in some paragraph in a 
&gt; chapter about failed standards?

In the case of XLink and XPointer, yes: I'd say these are historical
curiosities, and the only interest in them is in understanding why they
failed.

XInclude I think has some merit: even if it's not widely used, it's viable
to use it, and there are situations where I would recommend using it in
preference to external entity references. But plain URIs held in
user-defined attributes are probably just as effective for many
applications.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60110.html</link><pubDate>Sat, 14 Nov 2009 18:40:23 GMT</pubDate></item><item><title>Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
As we all know on this list, the XML article in Wikipedia contains the
following:

&quot;Some other specifications conceived as part of the &quot;XML Core&quot; have
failed to find wide adoption, including XInclude, XLink, and
XPointer.&quot;

But what does it mean?

Probably all text books about XML have a chapter dedicated to each of
those standards.

Would you say that a new basic text book about XML should hardly
mention XInclude, XLink, and XPointer at all, at least not in whole
chapters, but maybe in some paragraph in a chapter about failed
standards?

Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10110.html</link><pubDate>Sat, 14 Nov 2009 18:38:06 GMT</pubDate></item><item><title>RE:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; 
&gt; I have nothing to contest in this statement, but my point was 
&gt; not about how far XML has gotten, but about the trend going 
&gt; forward.  This feels like a wonderful toast to past success, 
&gt; but says very little about new adoptions.
&gt; 

Is there any evidence that *anyone* is building standards on top of of 
JSON (or any other non-XML data syntax), in the way that thousands of 
industry standards are built on top of XML?

Michael Kay
Saxonica 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50110.html</link><pubDate>Sat, 14 Nov 2009 18:30:44 GMT</pubDate></item><item><title>Re:  xsl processing problem with multiple templates</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
At 2009-11-14 16:55 -0500, Ian S. Worthington wrote:
&gt;The idea of pushing is new to me I'm afraid.

In fact you are already using it because you catch a node pushed at 
your stylesheet when using a template match.

&gt;Where should that &quot;apply-templates&quot; line go?

In place of the &lt;xsl:for-each/&gt;

&gt;Obviously not here:
&gt;
&gt;&lt;xsl:stylesheet version=&quot;1.0&quot;
&gt;xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
&gt;   &lt;xsl:template match=&quot;fixlist&quot;&gt;
&gt;     &lt;xsl:message&gt;Matched data root&lt;/xsl:message&gt;
&gt;     &lt;html&gt;
&gt;     &lt;body&gt;
&gt;       &lt;xsl:for-each select=&quot;fix&quot;&gt;
&gt;         &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
&gt;document( fix/@href )/fix&quot;/&gt;
&gt;         &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
&gt;       &lt;/xsl:for-each&gt;
&gt;     &lt;/body&gt;
&gt;     &lt;/html&gt;
&gt;   &lt;/xsl:template&gt;
&gt;&lt;/xsl:stylesheet&gt;

Your choice .... either using pull:

       &lt;xsl:for-each select=&quot;fix[not(@href)] |
                             document( fix/@href )/fix&quot;&gt;
         &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
       &lt;/xsl:for-each&gt;

... or using push:

&lt;xsl:stylesheet version=&quot;1.0&quot;
xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
   &lt;xsl:template match=&quot;fixlist&quot;&gt;
     &lt;xsl:message&gt;Matched data root&lt;/xsl:message&gt;
     &lt;html&gt;
     &lt;body&gt;
      &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
                                   document( fix/@href )/fix&quot;/&gt;
     &lt;/body&gt;
     &lt;/html&gt;
   &lt;/xsl:template&gt;

   &lt;xsl:template match=&quot;fix&quot;&gt;
    &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
   &lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;


I hope this helps.  On my web site I have a free download of an 
excerpt of my XSLT book where I've introduced the concepts of pull and push.

I hope this helps.

. . . . . . . . Ken

--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:&#x67;&#x6b;&#x68;ol&#109;&#97;n&#64;Cran&#x65;&#x53;&#x6f;&#x66;t&#119;&#x72;&#x69;g&#104;ts&#46;&#99;&#111;m">mailto:&#x67;&#x6b;&#x68;ol&#109;&#97;n&#64;Cran&#x65;&#x53;&#x6f;&#x66;t&#119;&#x72;&#x69;g&#104;ts&#46;&#99;&#111;m</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40120.html</link><pubDate>Sat, 14 Nov 2009 17:48:32 GMT</pubDate></item><item><title>Re:  xsl processing problem with multiple templates</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Ken --

The idea of pushing is new to me I'm afraid.  Where should that
&quot;apply-templates&quot; line go?
Obviously not here:

&lt;xsl:stylesheet version=&quot;1.0&quot; 
xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
  &lt;xsl:template match=&quot;fixlist&quot;&gt;
    &lt;xsl:message&gt;Matched data root&lt;/xsl:message&gt;
    &lt;html&gt;
    &lt;body&gt;
      &lt;xsl:for-each select=&quot;fix&quot;&gt;
        &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
document( fix/@href )/fix&quot;/&gt;
        &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
      &lt;/xsl:for-each&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt; 
&lt;/xsl:stylesheet&gt;

where the inlines get processed fine but not the referrals.

i
------ Original Message ------
Received: 04:22 PM COT, 11/14/2009
From: &quot;G. Ken Holman&quot; &lt;gkh&#111;&#x6c;m&#97;&#x6e;&#64;C&#x72;an&#101;&#x53;of&#x74;&#x77;ri&#103;&#x68;&#116;s&#46;c&#111;m&gt;
To: &lt;&#x78;&#109;&#x6c;&#45;&#100;ev&#64;&#108;&#105;&#115;t&#115;&#46;&#x78;&#x6d;&#108;&#x2e;&#x6f;&#114;g&gt;
Subject: Re:  xsl processing problem with multiple templates

&gt; XSLT and XPath questions would be better posted to the following list:
&gt; 
&gt;    http://www.mulberrytech.com/xsl/xsl-list
&gt; 
&gt; There are a number of subscribers who would enthusiastically respond 
&gt; to such questions.
&gt; 
&gt; There is also an *excellent* XSLT FAQ at:
&gt; 
&gt;    http://www.dpawson.co.uk
&gt; 
&gt; At 2009-11-14 15:56 -0500, Ian S. Worthington wrote:
&gt; &gt;I have a bunch of fixn.xml files which contain something like:
&gt; &gt;
&gt; &gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&gt; &gt;&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;fix.xsl&quot;?&gt;
&gt; &gt;&lt;fix&gt;
&gt; &gt;&lt;number&gt;BED012&lt;/number&gt;
&gt; &gt;...
&gt; &gt;&lt;/fix&gt;
&gt; &gt;
&gt; &gt;Apart from being able to display them alone (via the embedded xsl) I'd like
to
&gt; &gt;turn them into a list of fixes.  It looks like xinclude is what I need for
&gt; &gt;this,
&gt; 
&gt; It doesn't look like that to me ... it looks like you need the 
&gt; document() function.
&gt; 
&gt; &gt;My master list of fixes looks like:
&gt; &gt;
&gt; &gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&gt; &gt;&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;xinclude.xsl&quot;?&gt;
&gt; &gt;&lt;fixlist xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot;&gt;
&gt; &gt;         &lt;fix&gt;&lt;number&gt;BED000&lt;/number&gt;&lt;/fix&gt;
&gt; &gt;         &lt;fix&gt;&lt;number&gt;BED111&lt;/number&gt;&lt;/fix&gt;
&gt; &gt;         &lt;xi:include href=&quot;fix1.xml&quot;/&gt;
&gt; &gt;         &lt;xi:include href=&quot;fix2.xml&quot;/&gt;
&gt; &gt;&lt;/fixlist&gt;
&gt; 
&gt; How about something like:
&gt; 
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&gt; &lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;allfixes.xsl&quot;?&gt;
&gt; &lt;fixlist&gt;
&gt;          &lt;fix&gt;&lt;number&gt;BED000&lt;/number&gt;&lt;/fix&gt;
&gt;          &lt;fix&gt;&lt;number&gt;BED111&lt;/number&gt;&lt;/fix&gt;
&gt;          &lt;fix href=&quot;fix1.xml&quot;/&gt;
&gt;          &lt;fix href=&quot;fix2.xml&quot;/&gt;
&gt; &lt;/fixlist&gt;
&gt; 
&gt; Then in allfixes.xsl have one instruction that pushes all fix elements:
&gt; 
&gt;    &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
&gt;                                 document( fix/@href )/fix&quot;/&gt;
&gt; 
&gt; .. and then handle each fix element that arrives either from the 
&gt; local file or the referred file.
&gt; 
&gt; &gt;Is there anyway of getting them both to work in harmony?
&gt; 
&gt; The above is one push instruction for all fixes, embedded or referred.
&gt; 
&gt; I hope this helps.
&gt; 
&gt; . . . . . . . . . . Ken
&gt; 
&gt; --
&gt; Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
&gt; Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
&gt; Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
&gt; Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
&gt; Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
&gt; G. Ken Holman                 <A  HREF="mailto:g&#107;&#104;&#111;&#108;ma&#110;&#x40;&#x43;r&#x61;n&#x65;&#83;of&#116;wr&#x69;g&#104;&#116;&#x73;&#x2e;com">mailto:g&#107;&#104;&#111;&#108;ma&#110;&#x40;&#x43;r&#x61;n&#x65;&#83;of&#116;wr&#x69;g&#104;&#116;&#x73;&#x2e;com</A>
&gt; Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
&gt; Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
&gt; 
&gt; 
&gt; _______________________________________________________________________
&gt; 
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt; 
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#120;&#109;l&#x2d;&#x64;ev&#45;u&#110;s&#x75;&#x62;&#x73;&#99;rib&#101;&#x40;&#108;ists&#46;x&#109;l.o&#x72;&#x67;
&gt; subscribe: &#x78;ml&#45;dev-su&#x62;sc&#114;i&#98;e&#64;&#x6c;i&#x73;ts&#x2e;xm&#x6c;&#x2e;o&#114;&#x67;
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt; 
&gt; 



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30120.html</link><pubDate>Sat, 14 Nov 2009 16:55:39 GMT</pubDate></item><item><title>Re:  xsl processing problem with multiple templates</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
XSLT and XPath questions would be better posted to the following list:

   http://www.mulberrytech.com/xsl/xsl-list

There are a number of subscribers who would enthusiastically respond 
to such questions.

There is also an *excellent* XSLT FAQ at:

   http://www.dpawson.co.uk

At 2009-11-14 15:56 -0500, Ian S. Worthington wrote:
&gt;I have a bunch of fixn.xml files which contain something like:
&gt;
&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&gt;&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;fix.xsl&quot;?&gt;
&gt;&lt;fix&gt;
&gt;&lt;number&gt;BED012&lt;/number&gt;
&gt;...
&gt;&lt;/fix&gt;
&gt;
&gt;Apart from being able to display them alone (via the embedded xsl) I'd like to
&gt;turn them into a list of fixes.  It looks like xinclude is what I need for
&gt;this,

It doesn't look like that to me ... it looks like you need the 
document() function.

&gt;My master list of fixes looks like:
&gt;
&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&gt;&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;xinclude.xsl&quot;?&gt;
&gt;&lt;fixlist xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot;&gt;
&gt;         &lt;fix&gt;&lt;number&gt;BED000&lt;/number&gt;&lt;/fix&gt;
&gt;         &lt;fix&gt;&lt;number&gt;BED111&lt;/number&gt;&lt;/fix&gt;
&gt;         &lt;xi:include href=&quot;fix1.xml&quot;/&gt;
&gt;         &lt;xi:include href=&quot;fix2.xml&quot;/&gt;
&gt;&lt;/fixlist&gt;

How about something like:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;allfixes.xsl&quot;?&gt;
&lt;fixlist&gt;
         &lt;fix&gt;&lt;number&gt;BED000&lt;/number&gt;&lt;/fix&gt;
         &lt;fix&gt;&lt;number&gt;BED111&lt;/number&gt;&lt;/fix&gt;
         &lt;fix href=&quot;fix1.xml&quot;/&gt;
         &lt;fix href=&quot;fix2.xml&quot;/&gt;
&lt;/fixlist&gt;

Then in allfixes.xsl have one instruction that pushes all fix elements:

   &lt;xsl:apply-templates select=&quot;fix[not(@href)] |
                                document( fix/@href )/fix&quot;/&gt;

... and then handle each fix element that arrives either from the 
local file or the referred file.

&gt;Is there anyway of getting them both to work in harmony?

The above is one push instruction for all fixes, embedded or referred.

I hope this helps.

. . . . . . . . . . Ken

--
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&amp;fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&amp;fmt=18
G. Ken Holman                 <A  HREF="mailto:&#x67;kh&#x6f;lma&#x6e;&#64;Cra&#x6e;&#x65;S&#111;&#x66;&#116;&#x77;right&#x73;&#46;com">mailto:&#x67;kh&#x6f;lma&#x6e;&#64;Cra&#x6e;&#x65;S&#111;&#x66;&#116;&#x77;right&#x73;&#46;com</A>
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20120.html</link><pubDate>Sat, 14 Nov 2009 16:19:36 GMT</pubDate></item><item><title>xsl processing problem with multiple templates</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi.

I have a bunch of fixn.xml files which contain something like:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;fix.xsl&quot;?&gt;
&lt;fix&gt;
&lt;number&gt;BED012&lt;/number&gt;
...
&lt;/fix&gt;

Apart from being able to display them alone (via the embedded xsl) I'd like to
turn them into a list of fixes.  It looks like xinclude is what I need for
this, but it isn't actually implemented in any standard browser yet.  However
there's a partial workaround at http://forums.devx.com/showthread.php?t=160331
which I'm trying to get going. 

But I appear to be able to drive the including *or* the transformation, but
not both.  Is this just a namespace issue or is there something insurmountable
here?

My master list of fixes looks like:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;xinclude.xsl&quot;?&gt;
&lt;fixlist xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot;&gt;
	&lt;fix&gt;&lt;number&gt;BED000&lt;/number&gt;&lt;/fix&gt;
	&lt;fix&gt;&lt;number&gt;BED111&lt;/number&gt;&lt;/fix&gt;
	&lt;xi:include href=&quot;fix1.xml&quot;/&gt;
	&lt;xi:include href=&quot;fix2.xml&quot;/&gt;
&lt;/fixlist&gt;

and the xinclude.xsl, based off the referenced article:

&lt;xsl:stylesheet version=&quot;1.0&quot; 
xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
xmlns:f=&quot;f&quot; 
xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot; exclude-result-prefixes=&quot;xi&quot;&gt;

	&lt;xsl:include href=&quot;no-ns-identity.xsl&quot;/&gt;
	
	&lt;xsl:template match=&quot;xi:include&quot;&gt;
	  &lt;xsl:message&gt;Matched include root&lt;/xsl:message&gt;
		&lt;xsl:apply-templates select=&quot;document(@href)&quot;/&gt;
	&lt;/xsl:template&gt;		
 
  &lt;xsl:template match=&quot;fixlist&quot;&gt;
    &lt;xsl:message&gt;Matched data root&lt;/xsl:message&gt;
    &lt;html&gt;
    &lt;body&gt;
      &lt;xsl:for-each select=&quot;fix&quot;&gt;
        &lt;p&gt;Change number: &lt;xsl:value-of select=&quot;number&quot;/&gt;&lt;/p&gt;
      &lt;/xsl:for-each&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt; 
 &lt;/xsl:stylesheet&gt;


Like this, the fixlist match fires and generates the desired html, but without
the includes.

Or if I prevent the fixlist from matching then the xi:include match will fire
and the correct xml is generated, but (of course) is not transformed into
html.

I've tried putting the fixlist into a different namespace, but with no
difference.

Is there anyway of getting them both to work in harmony?

ian 
.. 

Ian S. Worthington, MBCS.

me:     http://isw.me.uk/ 
photos: http://gallery.isw.me.uk/ 


Free 2GB online backups:
  https://mozy.com/?code=HJW4C8 (code gets you 256MB extra)

Web hosting and support from $2.99/month:
  www.cirtexhosting.com/affiliates/idevaffiliate.php?id=463


Dulce et decorum est pro patria mori, sed dulcius pro patria vivere, et
dulcissimus pro patria biber. Ergo, bibiamo pro salute patriae.





</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10120.html</link><pubDate>Sat, 14 Nov 2009 15:56:05 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sat, Nov 14, 2009 at 12:49 PM, Simon St.Laurent
&lt;sim&#x6f;&#110;&#115;&#116;&#108;&#64;s&#105;mon&#115;&#116;&#108;&#x2e;co&#109;&gt; wrote:

&gt; At this point, personally, I'd drop coverage of XLink and XPointer. Â A
&gt; paragraph seems reasonable.
&gt;
&gt; XInclude does get use in back-end processing, so I'd leave it in, most
&gt; likely - at least as a sidebar in the entity processing section. Â It doesn't
&gt; require a huge amount of space to explain in any case.

Sounds about right, though XInclude references XPointer so it's hard
to really say.

Maybe the next edition of XML in a Nutshell, if it's even worth
writing at this point, should drop the XLink and XPointer chapters and
use the space for XQuery.

The problem I keep running up against whenever I think about a
potential 4th edition (besides complete lack of time) is that XPath
2/XSLT 2/XQuery are really a book in their own right. In fact, they're
probably two books. Possibly XQuery in a Nutshell is the book I should
be writing, which would of course cover XPath 2 as well. This book
would ignore XPath 1/XSLT 1, which would stay in XML in a Nutshell
since they're very widely used and will continue to be so. I'm not
sure what to do about XSLT 2. Maybe I should just leave that to
Michael Kay's book. And then again the whole nutshell format is
increasingly weak given wide access to Web references, so maybe that's
not the XQuery book the world needs right now. In fact, I'm pretty
sure it isn't.

Curious what folks think about this. Which book would you buy? What
book would your companies and clients buy multiple copies of if it
existed? Or should we just give up on the whole notion of new XML
books?

-- 
Elliotte Rusty Harold
&#101;&#108;&#x68;&#x61;ro&#x40;&#x69;bibli&#x6f;&#x2e;&#x6f;&#x72;g
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80110.html</link><pubDate>Sat, 14 Nov 2009 15:06:50 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Michael Kay wrote:
&gt;&gt; I have nothing to contest in this statement, but my point was 
&gt;&gt; not about how far XML has gotten, but about the trend going 
&gt;&gt; forward.  This feels like a wonderful toast to past success, 
&gt;&gt; but says very little about new adoptions.
&gt;&gt;
&gt; 
&gt; Is there any evidence that *anyone* is building standards on top of of 
&gt; JSON (or any other non-XML data syntax), in the way that thousands of 
&gt; industry standards are built on top of XML?

Does it matter?

You can build standards on JSON, but this seems like an effort to tweak 
the definition of success such that it points toward XML.

If anything, JSON's cultural drift toward anarchy seems to have helped 
rather than hindered its adoption.

(And I think we're seeing similar trends in the weirdly-named NoSQL 
movement too.)

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70110.html</link><pubDate>Sat, 14 Nov 2009 14:49:03 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jesper Tverskov wrote:
&gt; As we all know on this list, the XML article in Wikipedia contains the
&gt; following:
&gt; 
&gt; &quot;Some other specifications conceived as part of the &quot;XML Core&quot; have
&gt; failed to find wide adoption, including XInclude, XLink, and
&gt; XPointer.&quot;
&gt; 
&gt; But what does it mean?
&gt; 
&gt; Probably all text books about XML have a chapter dedicated to each of
&gt; those standards.
&gt; 
&gt; Would you say that a new basic text book about XML should hardly
&gt; mention XInclude, XLink, and XPointer at all, at least not in whole
&gt; chapters, but maybe in some paragraph in a chapter about failed
&gt; standards?

At this point, personally, I'd drop coverage of XLink and XPointer.  A 
paragraph seems reasonable.

XInclude does get use in back-end processing, so I'd leave it in, most 
likely - at least as a sidebar in the entity processing section.  It 
doesn't require a huge amount of space to explain in any case.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20110.html</link><pubDate>Sat, 14 Nov 2009 12:49:14 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On 2009-11-11, at 12:50 AM, Mukul Gandhi wrote:

&gt; As suggested by Jim Tivy earlier, a generic phrase like &quot;XML Schema&quot;
&gt; in the XML spec, while referring to XML validation would be helpful to
&gt; readers, in the present context.

Absolutely not.  The various XML schema languages need well-formed  
XML. Well-formed XML exists independent of any schemas.  The fact that  
DTDs were baked into XML 1.0 is a historical accident.  -Tim
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00120.html</link><pubDate>Sat, 14 Nov 2009 12:49:06 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>

On 2009-11-08, at 5:27 AM, Mukul Gandhi wrote:

&gt; On Sun, Nov 8, 2009 at 2:10 PM, Rick Jelliffe &lt;rjel&#108;&#x69;f&#102;&#x65;&#64;&#x61;l&#108;ette&#x2e;&#x63;o&#109;.&#97;u 
&gt; &gt; wrote:
&gt;&gt; Because XSD is complete crap that utterly betrayed the premises and  
&gt;&gt; goals of
&gt;&gt; XML perhaps?
&gt;
&gt; Rick, I do not know why you condemn XSD so much :) I feel, XSD doesn't
&gt; deserve so much condemnation.

I thought Rick was being fair.  XSD is a failure by any sane technical  
measure.  There's no reason not to acknowledge this and hopefully  
learn from it in future standardization efforts.  If we don't learn  
from our failures we're condemned to repeat them.  -Tim

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90110.html</link><pubDate>Sat, 14 Nov 2009 12:45:43 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<div style="margin-left: 40px;">Would you say that a new basic text book about XML should hardly<br>
mention XInclude, XLink, and XPointer at all, at least not in whole<br>
chapters, but maybe in some paragraph in a chapter about failed<br>
standards?<br></div>
<br>Cautionary tales perhaps. All thee of these are link manifestations, and as such added not only expectations of semantics but also expected functionality that didn&#39;t effectively exist in a comprehensive factor in the distributed environment of the web c. 2000. XPointer was an early (and unsuccessful) stab at a query language for the web - it would take another seven years for XQuery to effectively replace it. XInclude works effectively in the closed environment of an XML database, but the possibility of recursive XIncludes made this a much more difficult domain problem in a distributed environment. Simple links already existed for most languages with implied semantics, and more complex links ultimately were made redundant with RDF and later OWL.<br>
<br>In other words, they failed either because they placed too many demands upon existing infrastructures, because they were shortly superceded by better technologies, or because solutions based upon them often proved to add more complexity than they solved (think Link Bases in XBRL).<br>
<br><br clear="all">Kurt Cagle<br>Managing Editor<br>http://xmlToday.org<br>
<br><br><div class="gmail_quote">On Sat, Nov 14, 2009 at 9:38 AM, Jesper Tverskov <span dir="ltr">&lt;<a href="mailto:&#106;esp&#101;&#114;&#46;tv&#101;rsk&#x6f;&#118;&#64;&#103;mail.&#99;om">&#106;esp&#101;&#114;&#46;tv&#101;rsk&#x6f;&#118;&#64;&#103;mail.&#99;om</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As we all know on this list, the XML article in Wikipedia contains the<br>
following:<br>
<br>
&quot;Some other specifications conceived as part of the &quot;XML Core&quot; have<br>
failed to find wide adoption, including XInclude, XLink, and<br>
XPointer.&quot;<br>
<br>
But what does it mean?<br>
<br>
Probably all text books about XML have a chapter dedicated to each of<br>
those standards.<br>
<br>
Would you say that a new basic text book about XML should hardly<br>
mention XInclude, XLink, and XPointer at all, at least not in whole<br>
chapters, but maybe in some paragraph in a chapter about failed<br>
standards?<br>
<br>
Cheers,<br>
Jesper Tverskov<br>
<br>
http://www.xmlkurser.dk<br>
http://www.xmlplease.com<br>
<br>
_______________________________________________________________________<br>
<br>
XML-DEV is a publicly archived, unmoderated list hosted by OASIS<br>
to support XML implementation and development. To minimize<br>
spam in the archives, you must subscribe before posting.<br>
<br>
[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/<br>
Or unsubscribe: <a href="mailto:x&#x6d;&#108;&#x2d;d&#101;v-&#x75;&#x6e;&#115;u&#98;&#115;c&#114;ibe&#64;l&#105;s&#x74;s&#x2e;&#120;&#109;&#108;&#46;org">x&#x6d;&#108;&#x2d;d&#101;v-&#x75;&#x6e;&#115;u&#98;&#115;c&#114;ibe&#64;l&#105;s&#x74;s&#x2e;&#120;&#109;&#108;&#46;org</a><br>
subscribe: <a href="mailto:xm&#x6c;&#45;&#100;e&#x76;-s&#117;b&#115;&#x63;&#x72;&#105;be&#64;l&#x69;s&#116;&#115;&#x2e;x&#x6d;&#108;.&#111;r&#x67;">xm&#x6c;&#45;&#100;e&#x76;-s&#117;b&#115;&#x63;&#x72;&#105;be&#64;l&#x69;s&#116;&#115;&#x2e;x&#x6d;&#108;.&#111;r&#x67;</a><br>
List archive: http://lists.xml.org/archives/xml-dev/<br>
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php<br>
<br>
</blockquote></div><br>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40110.html</link><pubDate>Sat, 14 Nov 2009 09:57:31 GMT</pubDate></item><item><title>Re:  Failed XML standards</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Simon St.Laurent wrote:
&gt; At this point, personally, I'd drop coverage of XLink and XPointer.  A 
&gt; paragraph seems reasonable.
&gt;
&gt; XInclude does get use in back-end processing, so I'd leave it in, most 
&gt; likely - at least as a sidebar in the entity processing section.  It 
&gt; doesn't require a huge amount of space to explain in any case.
&gt;
I'd have to concur, unless the book is about XBRL, which is unique in 
making very heavy (if misguided) use of XLink.

XInclude is such a simple specification that it's handy to have the 
standard around when you need such a mechanism. Also, it's trivial to 
implement in XSLT 2.0.[1]

Evan Lenz
http://lenzconsulting.com

[1] http://lenzconsulting.com/namespaces-in-xslt/#inherit-namespaces
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30110.html</link><pubDate>Sat, 14 Nov 2009 09:55:54 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
On Thu, Nov 12, 2009 at 8:59 AM, Michael Kay <span dir="ltr">&lt;<a href="mailto:&#x6d;&#105;&#x6b;&#101;&#x40;s&#x61;xon&#105;ca&#46;&#x63;&#x6f;m">&#x6d;&#105;&#x6b;&#101;&#x40;s&#x61;xon&#105;ca&#46;&#x63;&#x6f;m</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">&gt;<br>
&gt; Ah - &quot;the chattering classes&quot;.  That&#39;s almost as useful a<br>
&gt; phrase as &quot;politically incorrect&quot; for avoiding engagement.<br>
&gt; And in data-poor fields, like this one, it pretty much lets<br>
&gt; you believe whatever you&#39;d prefer to believe.<br>
<br>
</div>In the absence of evidence, I think it&#39;s better to believe nothing than to<br>
make wild guesses. And I do think there is a very big difference between<br>
what it is fashionable to talk about, and what people are actually using.<br>
<div class="im">&gt;<br>
&gt; I could offer book sales data, in which XML book sales have<br>
&gt; plunged well below the fall of the rest of the market, but I<br>
&gt; suspect that&#39;s not very interesting as it effectively<br>
&gt; measures the volume of chatter people are willing to pay for...<br>
&gt;<br>
<br>
</div>I have a theory that the people who buy books about a technology tend to be<br>
early adopters. (Late adopters go on training courses, or learn from their<br>
colleagues, or learn by trial and error.) There aren&#39;t any early adopters of<br>
XML any more. People are doing their third or fourth project, and you don&#39;t<br>
need new books for that.<br></blockquote><div><br>I can&#39;t help but observe that your second paragraph runs afoul of your first :P<br><br></div></div><br>-- <br>Uche Ogbuji                       http://uche.ogbuji.net<br>
Founding Partner, Zepheira        http://zepheira.com<br>Linked-in profile: http://www.linkedin.com/in/ucheogbuji<br>Articles: http://uche.ogbuji.net/tech/publications/<br>
Friendfeed: http://friendfeed.com/uche<br>Twitter: http://twitter.com/uogbuji<br>http://www.google.com/profiles/uche.ogbuji<br>


]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00110.html</link><pubDate>Sat, 14 Nov 2009 09:38:51 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I have nothing to contest in this statement, but my point was not about 
how far XML has gotten, but about the trend going forward.  This feels 
like a wonderful toast to past success, but says very little about new 
adoptions.

COBOL was an amazing advance in its time as well...

Thanks,
Simon St.Laurent
http://simonstl.com/

Jim Tivy wrote:
&gt; Well, I apologize for no hard data here but feel free to contest what I 
&gt; say then I will try to find some data:
&gt; 
&gt; XML is a leading open content format and is a leading open data format.  
&gt; The key term is &quot;open&quot; - which herein means there are lots of tools, it 
&gt; has an exchange format (text) and it is backed by a number of open 
&gt; standards that flesh it out in many dimensions. 
&gt; 
&gt; As an open format XML has gone further than any other such format in the 
&gt; history of computing.
&gt; 
&gt; There are other important open data standards - CSV in the past and now 
&gt; JSON as well as SGML.  None of these have seen the breadth of 
&gt; application and number of adoptions as XML (measured in kilograms).


-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90100.html</link><pubDate>Sat, 14 Nov 2009 09:00:57 GMT</pubDate></item><item><title>[ann] Jing and Trang version 20091111</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi,

A new version of Jing and Trang, 20091111 is available from
http://code.google.com/p/jing-trang/

There are tree issues fixes since the last version (20090818) affecting 
the NVDL validation, the conversion to DTD and packaging. For details 
please see:

http://code.google.com/p/jing-trang/issues/detail?id=85
http://code.google.com/p/jing-trang/issues/detail?id=86
http://code.google.com/p/jing-trang/issues/detail?id=89

Best Regards,
George
-- 
George Cristian Bina
&lt;oXygen/&gt; XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70100.html</link><pubDate>Fri, 13 Nov 2009 20:55:42 GMT</pubDate></item><item><title>RE:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<table width="100%"><tr><td bgcolor="white" style="background-color: white; a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Folks<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Well, I apologize for no hard data here
but feel free to contest what I say then I will try to find some data:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>XML is a leading open content format and
is a leading open data format.&nbsp; The key term is &quot;open&quot; - which herein
means there are lots of tools, it has an exchange format (text) and it is
backed by a number of open standards that flesh it out in many dimensions.&nbsp;
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>As an open format XML has gone further
than any other such format in the history of computing.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>There are other important open data
standards - CSV in the past and now JSON as well as SGML.&nbsp; None of these
have seen the breadth of application and number of adoptions as XML (measured
in kilograms).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jim<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
color:windowtext'>

<hr size=3 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;
font-weight:bold'>From:</span></font></b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext'> Mike Sokolov
[mailto:&#115;o&#x6b;&#111;lov&#x40;i&#x66;&#97;ct&#111;&#114;y.&#99;&#x6f;m] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, November 12, 2009
12:04 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Michael Kay<br>
<b><span style='font-weight:bold'>Cc:</span></b> 'Simon St.Laurent';
&#x78;ml&#x2d;&#100;&#x65;&#118;&#x40;l&#x69;&#x73;&#x74;s&#x2e;&#120;ml&#46;&#111;rg<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re:  XML's place
in the world</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<o:p></o:p></span></font></p>

<pre style='margin-left:.5in' wrap=""><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>what it is fashionable to talk about, and what people are actually using. <o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp;&nbsp;<o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre
style='margin-left:.5in' wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>I could offer book sales data, in which XML book sales have <o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>plunged well below the fall of the rest of the market, but I <o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>suspect that's not very interesting as it effectively <o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>measures the volume of chatter people are willing to pay for...<o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></pre></blockquote>

<pre style='margin-left:.5in' wrap=""><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>I have a theory that the people who buy books about a technology tend to be<o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>early adopters. (Late adopters go on training courses, or learn from their<o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>colleagues, or learn by trial and error.) There aren't any early adopters of<o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>XML any more. People are doing their third or fourth project, and you don't<o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>need new books for that. <o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Michael Kay<o:p></o:p></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp; <o:p></o:p></span></font></pre>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>And I thought y'all were
discussing the sales of books formatted *as* XML! I'd be interested in
comparative sales data there, if you have it.&nbsp; I suspect the volume is
rapidly increasing, especially if you consider EPUB to be fundamentally XML,
even though it is only XHTML.&nbsp; Certainly I don't see anyone proposing to
offer books in JSON format, or as SQL databases or name/value stores or
whatever.<br>
<br>
But this merely supports the point that XML continues to provide value in its
core sweet spot.&nbsp; I don't have any evidence about non-document-oriented
XML usage.<br>
<br>
-Mike<o:p></o:p></span></font></p>

</div>




</td></tr></table>
]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80100.html</link><pubDate>Fri, 13 Nov 2009 19:37:39 GMT</pubDate></item><item><title>[ANN] XMLmind DITA Converter v1.1.0</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
XMLmind is happy to announce a new release of
XMLmind DITA Converter.


XMLmind DITA Converter 1.1.0 (November 9, 2009)
-----------------------------------------------

Allows to convert DITA documents to Eclipse Help. Several other
enhancements.
More info in http://www.xmlmind.com/ditac/changes.html

Download XMLmind DITA Converter 1.1.0 from
http://www.xmlmind.com/ditac/download.shtml

-----------------------------------------------
XMLmind DITA Converter v1.1.0 (ditac for short) allows to convert the
most complex DITA 1.1 documents to production-quality XHTML 1.0, XHTML
1.1, HTML 4.1, Java[tm] Help, HTML Help, Eclipse Help, PDF,
PostScript[reg], RTF (can be opened in Word 2000+), WordprocessingML
(can be opened in Word 2003+), Office Open XML (.docx, can be opened in
Word 2007+), OpenOffice (.odt, can be opened in OpenOffice.org 2+).

XMLmind DITA Converter has been developed in order to be integrated in
XMLmind commercial products. As such, XMLmind DITA Converter is
professionally developed software, well documented and well supported.

XMLmind DITA Converter is free, open source, software licensed under the
very liberal terms of the Mozilla Public License version 1.1.

All this makes XMLmind DITA Converter a very serious alternative to
using the DITA Open Toolkit.

_______________________________________________




</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60100.html</link><pubDate>Fri, 13 Nov 2009 11:03:15 GMT</pubDate></item><item><title>RE:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; 
&gt; Ah - &quot;the chattering classes&quot;.  That's almost as useful a 
&gt; phrase as &quot;politically incorrect&quot; for avoiding engagement.  
&gt; And in data-poor fields, like this one, it pretty much lets 
&gt; you believe whatever you'd prefer to believe.

In the absence of evidence, I think it's better to believe nothing than to
make wild guesses. And I do think there is a very big difference between
what it is fashionable to talk about, and what people are actually using. 
&gt; 
&gt; I could offer book sales data, in which XML book sales have 
&gt; plunged well below the fall of the rest of the market, but I 
&gt; suspect that's not very interesting as it effectively 
&gt; measures the volume of chatter people are willing to pay for...
&gt; 

I have a theory that the people who buy books about a technology tend to be
early adopters. (Late adopters go on training courses, or learn from their
colleagues, or learn by trial and error.) There aren't any early adopters of
XML any more. People are doing their third or fourth project, and you don't
need new books for that. 

Michael Kay

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80090.html</link><pubDate>Thu, 12 Nov 2009 15:59:23 GMT</pubDate></item><item><title>RE:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; My general sense - and this doubtless has a lot of 
&gt; confirmation bias to it - is that XML is retreating to the 
&gt; document-based home territory where it made the most sense 
&gt; anyway.  JSON is easing it off the Web.

I think you're using the term &quot;the Web&quot; to mean &quot;the edges of the web&quot; -
i.e. pretty well the &quot;last hop&quot; to the browser. I think that's an
unfortunate usage, but so long as we know what you mean, I guess we have to
live with it. Anyway, from the rest of your message, you actually seem to be
saying &quot;retreating to document processing and data interchange&quot;, which I
have always thought were the two core areas for application of XML, so I'm
not sure I see that as a retreat.  

But data interchange is pretty fundamental to an awful lot of applications,
and if XML is used for interchange, then it tends to pervade the whole
application.

And as always, I'm very suspicious of statements that claim to be
quantitative assessments of industry trends but are actually based on
nothing more than the volume of noise made by the chattering classes. That
simply isn't a good enough metric.

Michael Kay



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60090.html</link><pubDate>Thu, 12 Nov 2009 15:24:55 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">



<br>
<blockquote cite="mid:<a href="post80090.html">33DD59CB8D6A44138A146F4D19EAE5A6@Sealion</a>"
 type="cite">
  <pre wrap="">
what it is fashionable to talk about, and what people are actually using. 
  </pre>
  <blockquote type="cite">
    <pre wrap="">I could offer book sales data, in which XML book sales have 
plunged well below the fall of the rest of the market, but I 
suspect that's not very interesting as it effectively 
measures the volume of chatter people are willing to pay for...

    </pre>
  </blockquote>
  <pre wrap=""><!---->
I have a theory that the people who buy books about a technology tend to be
early adopters. (Late adopters go on training courses, or learn from their
colleagues, or learn by trial and error.) There aren't any early adopters of
XML any more. People are doing their third or fourth project, and you don't
need new books for that. 

Michael Kay
  </pre>
</blockquote>
And I thought y'all were discussing the sales of books formatted *as*
XML! I'd be interested in comparative sales data there, if you have
it.&nbsp; I suspect the volume is rapidly increasing, especially if you
consider EPUB to be fundamentally XML, even though it is only XHTML.&nbsp;
Certainly I don't see anyone proposing to offer books in JSON format,
or as SQL databases or name/value stores or whatever.<br>
<br>
But this merely supports the point that XML continues to provide value
in its core sweet spot.&nbsp; I don't have any evidence about
non-document-oriented XML usage.<br>
<br>
-Mike<br>


</font></td></tr></table>
]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50100.html</link><pubDate>Thu, 12 Nov 2009 15:03:34 GMT</pubDate></item><item><title>Re:  Formatting XML as ascii Text</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>

http://www.google.co.uk/search?q=xslt+word+wrap

shows up several word wrapping possibilities in xslt.


________________________________________________________________________
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. 
________________________________________________________________________
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10090.html</link><pubDate>Thu, 12 Nov 2009 12:31:23 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Peter Hunsberger wrote:
&gt; The one place I still see a need for such types of XML is when you're
&gt; doing cross domain integration and signatures, encryption,
&gt; authentication, etc. become part of the exchange process.  JSON
&gt; doesn't seem to have all the pieces lined up to push XML (SOAP or
&gt; otherwise) out of this space (yet)?

That's an excellent point, especially on the data interchange front. 
Much of that infrastructure is tightly bound to XML as well, so isn't 
easily replaced.

&gt; There's a lot of capability that has been built around XML that still
&gt; needs to be replicated in the other spaces so I think it would be
&gt; premature to declare any kind of overwhelming trend.  At this point I
&gt; perceive what is going on as more as people reacting to the flaws in
&gt; the current XML world and testing out alternate strategies to see if
&gt; they do any better.  Whether these alternate strategies will, in the
&gt; long run, grow to have as many capabilities (and flaws) as XML remains
&gt; to be seen?

Fair enough.  I think another way of putting it is that XML is slowly 
losing its status as the default format in fields where it once seemed 
(rightly or wrongly) the obvious answer.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10100.html</link><pubDate>Thu, 12 Nov 2009 12:08:56 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
Rob,<br><br>No doubt you&#39;re right there, but I do not necessarily think that the client-side crowd is about the only driver for JSON; it&#39;s pretty much non-existent in server to server communications at the enterprise level. <br>
<br>JSON has a natural advantage in a JavaScript world. XML doesn&#39;t primarily because the interfaces involved in working with XML on browsers are primitive and generally non-compatible between platforms - DOM in particular is an issue, but even trying to a simple XPath on most systems is painful, and no browser supports XSLT2 or XQuery natively.<br>
<br>The irony is that XQuery 1.1 is actually to a point where I think it could significantly challenge JavaScript in the browser in terms of capabilities. Unfortunately, at this stage it&#39;s unlikely to make its way into most browsers any time soon (though there&#39;s some interesting work being down there with XQIB). <br>
<br clear="all">Kurt Cagle<br>Managing Editor<br>http://xmlToday.org<br>
<br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 10:21 AM, Robert Koberg <span dir="ltr">&lt;<a href="mailto:r&#111;b&#64;k&#x6f;&#98;&#x65;rg.&#99;&#x6f;&#109;">r&#111;b&#64;k&#x6f;&#98;&#x65;rg.&#99;&#x6f;&#109;</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On Nov 12, 2009, at 10:03 AM, Kurt Cagle wrote:<br>
&gt;<br>
&gt; Something that I think it worth noting is that for all the volubility of the AJAX crowd, JSON messaging is no longer really gaining traction against XML messaging, and may actually be shrinking. Admittedly, I&#39;m biased in this regard, but I think as AJAX itself matures and toolkits become more &quot;enterprise hardened&quot; (and as RESTful services become more dominant), the mismatch between XML and JSON at the business level is a fairly significant impedance barrier to pervasive adoption.<br>

<br>
<br>
</div>The client-side crowd is vastly more interested in JSON than XML. XML comes up because the client-side dev was forced to use. Rarely would it be the first choice of data exchange between the server(s) and client.<br>

<br>
I see it trending to offering multiple options. I like the Jersey and JAXB for this reason. I used to think jaxb was too brittle, but lately have been appreciating all the time it saves with generating the source code to enabling easy rendering of different content types.<br>

<br>
http://server.com/path/to/resource.xml<br>
http://server.com/path/to/resource.json<br>
<br>
can use the same class and method to handle the request with me providing the code like:<br>
<br>
return Response.ok().entity(someBean).build();<br>
<br>
That being said, I would really love a standards based way of knowing what conversion between XML and JSON structures would provide across all the tools that do that type of thing.<br>
<br>
best,<br>
-Rob</blockquote></div><br>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40100.html</link><pubDate>Thu, 12 Nov 2009 11:24:03 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Michael Kay wrote:
&gt; In the absence of evidence, I think it's better to believe nothing than to
&gt; make wild guesses. And I do think there is a very big difference between
&gt; what it is fashionable to talk about, and what people are actually using. 

That's a much more restrained claim than your previous swipe, but I see 
no evidence thus far that challenges the proposal I put forward.

&gt; I have a theory that the people who buy books about a technology tend to be
&gt; early adopters. (Late adopters go on training courses, or learn from their
&gt; colleagues, or learn by trial and error.) There aren't any early adopters of
&gt; XML any more. People are doing their third or fourth project, and you don't
&gt; need new books for that. 

To some extent, that's true - the big waves of book sales are driven by 
early adopters.  Sales after those waves are typically to late arrivals 
who need to catch up, and they have many other ways to catch up.

However, in this case, that story doesn't help.  XML book sales were 
gigantic when XML first arrived.  The next technology adoption in the 
space was XSLT - almost as large.  Then XML Schema, far smaller.  Then 
XQuery, where the market barely registered a bump.

(Late arrival sales for XML itself and XSLT vastly outweigh sales of 
books on XML Schema and XQuery as well.  Semantic Web books are up and 
outperforming XML books, though still not enough for jubilation.)

I think it's safe to say that all of those subjects seemed of roughly 
equal difficulty when they arrived.  Though tech book sales have 
declined over time, the level of enthusiasm for these subjects relative 
to the book market in general has declined more severely.

The anecdotal evidence I've heard - chatter, perhaps - tells the same story.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90090.html</link><pubDate>Thu, 12 Nov 2009 11:22:10 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Michael Kay wrote:
&gt;&gt; My general sense - and this doubtless has a lot of 
&gt;&gt; confirmation bias to it - is that XML is retreating to the 
&gt;&gt; document-based home territory where it made the most sense 
&gt;&gt; anyway.  JSON is easing it off the Web.
&gt; 
&gt; I think you're using the term &quot;the Web&quot; to mean &quot;the edges of the web&quot; -
&gt; i.e. pretty well the &quot;last hop&quot; to the browser. I think that's an
&gt; unfortunate usage, but so long as we know what you mean, I guess we have to
&gt; live with it. 

It may not be _your_ usage, but that 'last hop' is at least historically 
where XML aimed to go, so I have no qualms in applying it to the XML 
conversation.

&gt; Anyway, from the rest of your message, you actually seem to be
&gt; saying &quot;retreating to document processing and data interchange&quot;, which I
&gt; have always thought were the two core areas for application of XML, so I'm
&gt; not sure I see that as a retreat.  

Fair enough.  I do see it as a retreat from a lot of the XML database 
claims pushed in roughly 2000-2005, because...

&gt; But data interchange is pretty fundamental to an awful lot of applications,
&gt; and if XML is used for interchange, then it tends to pervade the whole
&gt; application.

My point here is that I'm seeing less and less interest in that 
pervasiveness.  There was a time when more people said &quot;I'm exchanging 
lots of this XML stuff, and maybe I should just store the XML stuff and 
work with it that way.&quot;

Lately, the conversation seems to be more &quot;I need to maintain this 
information in a form that lets me scale processing and storage 
efficiently&quot;, and XML fares less well in that conversation.

For information that needs to be stored and processed as 
hierarchically-structured and sort of linear documents, it does well, 
but for other purposes it makes sense only as an interchange format, 
created and consumed at gateways to systems which think in terms other 
than XML.

&gt; And as always, I'm very suspicious of statements that claim to be
&gt; quantitative assessments of industry trends but are actually based on
&gt; nothing more than the volume of noise made by the chattering classes. That
&gt; simply isn't a good enough metric.

Ah - &quot;the chattering classes&quot;.  That's almost as useful a phrase as 
&quot;politically incorrect&quot; for avoiding engagement.  And in data-poor 
fields, like this one, it pretty much lets you believe whatever you'd 
prefer to believe.

I could offer book sales data, in which XML book sales have plunged well 
below the fall of the rest of the market, but I suspect that's not very 
interesting as it effectively measures the volume of chatter people are 
willing to pay for...

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70090.html</link><pubDate>Thu, 12 Nov 2009 10:45:12 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Thu, Nov 12, 2009 at 8:36 AM, Simon St.Laurent &lt;si&#x6d;o&#x6e;s&#x74;l&#x40;&#x73;&#x69;&#109;&#x6f;n&#115;&#116;&#108;.&#99;om&gt; wrote:
&gt; [I wrote this bit as part of a NoSQL conversation at O'Reilly, but think it
&gt; might be interesting, or at least provocative, in a broader XML context. Any
&gt; thoughts?]
&gt;
&gt; My general sense - and this doubtless has a lot of confirmation bias
&gt; to it - is that XML is retreating to the document-based home territory
&gt; where it made the most sense anyway.  JSON is easing it off the Web.
&gt; RDF and just plain APIs make a lot more sense for graph-centric
&gt; data.
&gt;
&gt; XML will continue for interchange and in places where tree
&gt; structures work and the overhead isn't too bad, but the &quot;XML
&gt; Everywhere&quot; vision is retreating.
&gt;

The one place I still see a need for such types of XML is when you're
doing cross domain integration and signatures, encryption,
authentication, etc. become part of the exchange process.  JSON
doesn't seem to have all the pieces lined up to push XML (SOAP or
otherwise) out of this space (yet)?

&gt; In the long run, I think that's better for both the world and XML,
&gt; though maybe not for XQuery.
&gt;

There's a lot of capability that has been built around XML that still
needs to be replicated in the other spaces so I think it would be
premature to declare any kind of overwhelming trend.  At this point I
perceive what is going on as more as people reacting to the flaws in
the current XML world and testing out alternate strategies to see if
they do any better.  Whether these alternate strategies will, in the
long run, grow to have as many capabilities (and flaws) as XML remains
to be seen?

--
Peter Hunsberger



-- 
Peter Hunsberger
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00100.html</link><pubDate>Thu, 12 Nov 2009 10:37:18 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>

On Nov 12, 2009, at 10:03 AM, Kurt Cagle wrote:
&gt; 
&gt; Something that I think it worth noting is that for all the volubility of the AJAX crowd, JSON messaging is no longer really gaining traction against XML messaging, and may actually be shrinking. Admittedly, I'm biased in this regard, but I think as AJAX itself matures and toolkits become more &quot;enterprise hardened&quot; (and as RESTful services become more dominant), the mismatch between XML and JSON at the business level is a fairly significant impedance barrier to pervasive adoption.


The client-side crowd is vastly more interested in JSON than XML. XML comes up because the client-side dev was forced to use. Rarely would it be the first choice of data exchange between the server(s) and client.

I see it trending to offering multiple options. I like the Jersey and JAXB for this reason. I used to think jaxb was too brittle, but lately have been appreciating all the time it saves with generating the source code to enabling easy rendering of different content types. 

http://server.com/path/to/resource.xml
http://server.com/path/to/resource.json

can use the same class and method to handle the request with me providing the code like:

return Response.ok().entity(someBean).build();

That being said, I would really love a standards based way of knowing what conversion between XML and JSON structures would provide across all the tools that do that type of thing.

best,
-Rob</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30100.html</link><pubDate>Thu, 12 Nov 2009 10:21:30 GMT</pubDate></item><item><title>Re:  XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
Simon,<br><br>We&#39;ve talked on this before, so you probably know my own feelings there, but I&#39;m also inclined to see things from a somewhat different perspective.<br><br>Overall, I think that the entire IT sector is undergoing a fairly profound change; we&#39;ve been building out frameworks in everything from web components to data abstractors to enterprise pipelines, and a surprisingly large amount of that ultimately comes back down to better distributed messaging. This means a much reduced need for programmers of any sort, especially advanced programmers, as subject domain experts increasingly take on the roles that dedicated programmers once performed.<br>
<br>XML is the language for enterprise messaging. However, XML has been subsumed in the toolkits to the extent that for many people, unless they happen to be working at the toolkit development level, it simply isn&#39;t visible. I think that there is something of an uptick on the XQuery side in the last year or so, but XQuery is tied to the hip with XML Databases, and while their use is growing, the market is still very, very tiny compared to the RDBMS market - except in the document sector. However, as more people start weaning themselves from the false document/data dichotomy, I see that changing.<br>
 <br>SemWeb is probably resonating more on your radar at this point because it is a technology that seems important, even though overall the SemWeb space is still perhaps maybe one fiftieth the size of XML adoption, and most of that, when you strip the fancy veneer off and just look at the technology, still ultimately comes back down to microtagging. The number of true RDF/OWL applications out there that have gained any real traction could be listed on two hands - and I really do not see that changing much before 2015. <br>
<br>I don&#39;t think that XML technologies will ever reach a level even remotely close to its prominence when it was first introduced as far as book sales, but that&#39;s not really that surprising. As a technology it&#39;s mature, and because it&#39;s pervasive there&#39;s really very little need for adding yet another book out there when you can find what you&#39;re looking for within a few minutes with Google. <br>
<br>Something that I think it worth noting is that for all the volubility of the AJAX crowd, JSON messaging is no longer really gaining traction against XML messaging, and may actually be shrinking. Admittedly, I&#39;m biased in this regard, but I think as AJAX itself matures and toolkits become more &quot;enterprise hardened&quot; (and as RESTful services become more dominant), the mismatch between XML and JSON at the business level is a fairly significant impedance barrier to pervasive adoption.<br>
<br>Few major changes in the core specs translates into little need for new books (the same can be said for Java, which has moved from &quot;evolving&quot; language to &quot;static&quot; language, and I know Java sales are probably down significantly as well).<br>
<br>At least that&#39;s my impression - I&#39;d be curious to hear others.<br><br clear="all">Kurt Cagle<br>Managing Editor<br>http://xmlToday.org<br>
<br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 9:08 AM, Simon St.Laurent <span dir="ltr">&lt;<a href="mailto:&#115;&#x69;m&#111;&#x6e;s&#x74;l&#64;simo&#x6e;&#x73;t&#108;.&#99;om">&#115;&#x69;m&#111;&#x6e;s&#x74;l&#64;simo&#x6e;&#x73;t&#108;.&#99;om</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Peter Hunsberger wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The one place I still see a need for such types of XML is when you&#39;re<br>
doing cross domain integration and signatures, encryption,<br>
authentication, etc. become part of the exchange process.  JSON<br>
doesn&#39;t seem to have all the pieces lined up to push XML (SOAP or<br>
otherwise) out of this space (yet)?<br>
</blockquote>
<br></div>
That&#39;s an excellent point, especially on the data interchange front. Much of that infrastructure is tightly bound to XML as well, so isn&#39;t easily replaced.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There&#39;s a lot of capability that has been built around XML that still<br>
needs to be replicated in the other spaces so I think it would be<br>
premature to declare any kind of overwhelming trend.  At this point I<br>
perceive what is going on as more as people reacting to the flaws in<br>
the current XML world and testing out alternate strategies to see if<br>
they do any better.  Whether these alternate strategies will, in the<br>
long run, grow to have as many capabilities (and flaws) as XML remains<br>
to be seen?<br>
</blockquote>
<br></div>
Fair enough.  I think another way of putting it is that XML is slowly losing its status as the default format in fields where it once seemed (rightly or wrongly) the obvious answer.<div class="im"><br>
<br>
-- <br>
Simon St.Laurent<br>
http://simonstl.com/<br>
<br>
_______________________________________________________________________<br>
<br></div><div><div></div><div class="h5">
XML-DEV is a publicly archived, unmoderated list hosted by OASIS<br>
to support XML implementation and development. To minimize<br>
spam in the archives, you must subscribe before posting.<br>
<br>
[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/<br>
Or unsubscribe: <a href="mailto:x&#109;&#108;&#45;dev&#45;unsu&#x62;sc&#x72;ib&#101;&#64;li&#115;t&#115;&#x2e;xm&#108;.o&#x72;&#103;" target="_blank">x&#109;&#108;&#45;dev&#45;unsu&#x62;sc&#x72;ib&#101;&#64;li&#115;t&#115;&#x2e;xm&#108;.o&#x72;&#103;</a><br>
subscribe: <a href="mailto:&#x78;&#x6d;&#x6c;&#45;dev-&#x73;&#117;&#x62;s&#x63;r&#105;&#98;&#101;&#64;l&#x69;s&#x74;&#115;&#46;&#120;m&#x6c;.o&#x72;&#103;" target="_blank">&#x78;&#x6d;&#x6c;&#45;dev-&#x73;&#117;&#x62;s&#x63;r&#105;&#98;&#101;&#64;l&#x69;s&#x74;&#115;&#46;&#120;m&#x6c;.o&#x72;&#103;</a><br>
List archive: http://lists.xml.org/archives/xml-dev/<br>
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php<br>
<br>
</div></div></blockquote></div><br>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20100.html</link><pubDate>Thu, 12 Nov 2009 10:03:44 GMT</pubDate></item><item><title>XML's place in the world</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
[I wrote this bit as part of a NoSQL conversation at O'Reilly, but think 
it might be interesting, or at least provocative, in a broader XML 
context. Any thoughts?]

My general sense - and this doubtless has a lot of confirmation bias
to it - is that XML is retreating to the document-based home territory
where it made the most sense anyway.  JSON is easing it off the Web.
RDF and just plain APIs make a lot more sense for graph-centric
data.

XML will continue for interchange and in places where tree
structures work and the overhead isn't too bad, but the &quot;XML
Everywhere&quot; vision is retreating.

In the long run, I think that's better for both the world and XML,
though maybe not for XQuery.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50090.html</link><pubDate>Thu, 12 Nov 2009 09:36:54 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Even the way most browsers treat XML showing an indented XML tree, or
a webpage for RSS and ATOM xml news feeds, are not examples of styling
XML with CSS.

The browsers transform the news feeds with JavaScript and actually
transform XML to HTML. What looks like XML+CSS is in reality HTML+CSS.

We end up with the following conclusion: it is hard to find any
examples of importance of XML being styled with CSS to be displayed
directly in browsers.

Except for XML applications made for browsers like XHTML.

And when it comes to PRINCExml it seems that it mostly use CSS for
XHTML and HTML, or even for DocBook. PRINCExml can only style any XML
with CSS, if the XML is structured in a way that makes sense for
converting it to PDF directly. If the XML does not have such &quot;layout&quot;
structure, there must be some programming that can put it into place.

Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90080.html</link><pubDate>Thu, 12 Nov 2009 09:31:53 GMT</pubDate></item><item><title>Re:  Formatting XML as ascii Text</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
thank you, I was unaware that XSLT handled word wrapping in any form.


David A. Lee
&#100;&#x6c;ee&#64;&#x63;a&#x6c;lde&#x69;.c&#111;&#x6d;  
http://www.calldei.com
http://www.xmlsh.org
812-482-5224



David Carlisle wrote:
&gt; http://www.google.co.uk/search?q=xslt+word+wrap
&gt;
&gt; shows up several word wrapping possibilities in xslt.
&gt;
&gt;
&gt; ________________________________________________________________________
&gt; The Numerical Algorithms Group Ltd is a company registered in England
&gt; and Wales with company number 1249803. The registered office is:
&gt; Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
&gt;
&gt; This e-mail has been scanned for all viruses by Star. The service is
&gt; powered by MessageLabs. 
&gt; ________________________________________________________________________
&gt;   
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40090.html</link><pubDate>Thu, 12 Nov 2009 08:43:41 GMT</pubDate></item><item><title>Re:  Formatting XML as ascii Text</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
The &quot;Ideal&quot; solution would be to take advantage of the font 
charactoristics of the device, plug that into the processr and have it used
to word wrap at a pixel width.  (for reference I'm refering to 'legacy' 
Palm, PPC and blackberry devices using the system font).
But if thats too hard, even coming close with a charactor-count width 
would work but wouldnt produce as good results.
In particular I'm not sure how to do the tables at all with 
character-count instead of using the font metrics.
In another part of the product we solve this part by forcing tables into 
a fixed width font.  I'm not sure that the piece of code I need to shove 
this data supports fixed width intermixed with variable width.




David A. Lee
d&#108;&#x65;&#x65;&#x40;c&#x61;&#108;&#x6c;d&#101;i&#x2e;co&#109;  
http://www.calldei.com
http://www.xmlsh.org
812-482-5224



Mike Sokolov wrote:
&gt; That's an interesting problem: I'm confused about the wrapping 
&gt; requirement though.  Do you need to wrap at a given number of 
&gt; characters (sounded like 40?) or a pixel (or inch) width?  Your 
&gt; comment about the variable-width font makes it sound like you are 
&gt; printing or displaying on screen with a particular font.  It's 
&gt; obviously much simpler if you don't have to worry about fonts, 
&gt; variable character widths, vagaries of printer drivers and the like.
&gt;
&gt; -Mike
&gt;
&gt; David A. Lee wrote:
&gt;&gt; I have a project where I need to take XML and format it as ascii text.
&gt;&gt; Sounds simple right ? But alas the requirements are subtle.  It seems 
&gt;&gt; people dont do text formatting much anymore.
&gt;&gt; I fondly remember the days of nroff where I could do good text 
&gt;&gt; formatting and achieve things like word splitting (hyphenating),
&gt;&gt; justification etc on text content.  In particular a challenge is to 
&gt;&gt; support multi column tables.  Thats right, text spanning 5 columns,
&gt;&gt; that needs to wrap in each column.   Oh and do that with 40 column 
&gt;&gt; line widths. Piece of cake.
&gt;&gt; Oh and its a Variable width text font ... ha !
&gt;&gt;
&gt;&gt; What I tried so far which almost works sorta, just enough to not work 
&gt;&gt; well enough :)
&gt;&gt; Translate the XML to HTML with XSLT then I downloaded one of the free 
&gt;&gt; &quot;HTML to Text&quot; tools which are prevalent on the net.
&gt;&gt; It sorta did work, except for the tables.   But I need something that 
&gt;&gt; can work in a production environment.   Open Source is prefered,
&gt;&gt; but if it does an excellent job then a commercial product could be 
&gt;&gt; justified (pun intended).
&gt;&gt;
&gt;&gt; My next attempt will to try Apache FOP.    I looked at RenderX but 
&gt;&gt; they dont claim text output.
&gt;&gt; Apache FOP claims a text output but with caveots, the claim is its 
&gt;&gt; not robust code with poor results.
&gt;&gt; Maybe they are being kind and it really works great.   I will try.
&gt;&gt;
&gt;&gt; Any other suggestions ?   I can always 'roll my own' but this project 
&gt;&gt; is not on the budget yet and were trying to see if we can do 
&gt;&gt; something with minimal work.
&gt;&gt; Appreciated,
&gt;&gt;
&gt;&gt; thanks,
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; _______________________________________________________________________
&gt;
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt;
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#120;ml-de&#x76;&#x2d;u&#110;&#x73;u&#98;&#115;c&#114;ibe&#x40;li&#115;&#x74;s&#x2e;x&#109;&#x6c;&#x2e;o&#114;&#103;
&gt; subscribe: xm&#108;-&#100;&#x65;&#118;&#x2d;s&#117;bs&#x63;&#x72;&#105;b&#x65;&#x40;&#108;&#x69;&#x73;ts&#x2e;xm&#108;&#46;&#111;rg
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30090.html</link><pubDate>Thu, 12 Nov 2009 08:43:15 GMT</pubDate></item><item><title>Re:  Formatting XML as ascii Text</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
That's an interesting problem: I'm confused about the wrapping 
requirement though.  Do you need to wrap at a given number of characters 
(sounded like 40?) or a pixel (or inch) width?  Your comment about the 
variable-width font makes it sound like you are printing or displaying 
on screen with a particular font.  It's obviously much simpler if you 
don't have to worry about fonts, variable character widths, vagaries of 
printer drivers and the like.

-Mike

David A. Lee wrote:
&gt; I have a project where I need to take XML and format it as ascii text.
&gt; Sounds simple right ? But alas the requirements are subtle.  It seems 
&gt; people dont do text formatting much anymore.
&gt; I fondly remember the days of nroff where I could do good text 
&gt; formatting and achieve things like word splitting (hyphenating),
&gt; justification etc on text content.  In particular a challenge is to 
&gt; support multi column tables.  Thats right, text spanning 5 columns,
&gt; that needs to wrap in each column.   Oh and do that with 40 column 
&gt; line widths. Piece of cake.
&gt; Oh and its a Variable width text font ... ha !
&gt;
&gt; What I tried so far which almost works sorta, just enough to not work 
&gt; well enough :)
&gt; Translate the XML to HTML with XSLT then I downloaded one of the free 
&gt; &quot;HTML to Text&quot; tools which are prevalent on the net.
&gt; It sorta did work, except for the tables.   But I need something that 
&gt; can work in a production environment.   Open Source is prefered,
&gt; but if it does an excellent job then a commercial product could be 
&gt; justified (pun intended).
&gt;
&gt; My next attempt will to try Apache FOP.    I looked at RenderX but 
&gt; they dont claim text output.
&gt; Apache FOP claims a text output but with caveots, the claim is its not 
&gt; robust code with poor results.
&gt; Maybe they are being kind and it really works great.   I will try.
&gt;
&gt; Any other suggestions ?   I can always 'roll my own' but this project 
&gt; is not on the budget yet and were trying to see if we can do something 
&gt; with minimal work.
&gt; Appreciated,
&gt;
&gt; thanks,
&gt;
&gt;
&gt;
&gt;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20090.html</link><pubDate>Thu, 12 Nov 2009 08:23:55 GMT</pubDate></item><item><title>Formatting XML as ascii Text</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I have a project where I need to take XML and format it as ascii text.
Sounds simple right ? But alas the requirements are subtle.  It seems 
people dont do text formatting much anymore.
I fondly remember the days of nroff where I could do good text 
formatting and achieve things like word splitting (hyphenating),
justification etc on text content.  In particular a challenge is to 
support multi column tables.  Thats right, text spanning 5 columns,
that needs to wrap in each column.   Oh and do that with 40 column line 
widths. Piece of cake.
Oh and its a Variable width text font ... ha !

What I tried so far which almost works sorta, just enough to not work 
well enough :)
Translate the XML to HTML with XSLT then I downloaded one of the free 
&quot;HTML to Text&quot; tools which are prevalent on the net.
It sorta did work, except for the tables.   But I need something that 
can work in a production environment.   Open Source is prefered,
but if it does an excellent job then a commercial product could be 
justified (pun intended).

My next attempt will to try Apache FOP.    I looked at RenderX but they 
dont claim text output.
Apache FOP claims a text output but with caveots, the claim is its not 
robust code with poor results.
Maybe they are being kind and it really works great.   I will try.

Any other suggestions ?   I can always 'roll my own' but this project is 
not on the budget yet and were trying to see if we can do something with 
minimal work.
Appreciated,

thanks,




-- 
David A. Lee
&#x64;&#108;&#x65;&#x65;&#x40;cal&#108;&#x64;&#x65;&#105;.&#99;o&#109;  
http://www.calldei.com
http://www.xmlsh.org
812-482-5224

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00090.html</link><pubDate>Thu, 12 Nov 2009 07:26:24 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
btw, I am just curious if another revision of XML spec is planned for
future? If yes, then this request of a better explanation of &quot;XML
validation&quot; might be considered into that.

If no further revisions to XML specs are planned, then it's better to
have this request discarded and we can live with our current
understanding.

Inspite of all of these state of affairs with XML standards, XML is
certainly tremendously successful, and we all know what XML validation
mean and how it relates to DTD, XSD etc :)

I think, this thread ought to get closed now, unless somebody wants to
write anything else.

On Wed, Nov 11, 2009 at 9:42 PM, Mukul Gandhi &lt;gan&#x64;&#x68;i&#46;&#x6d;&#117;&#x6b;ul&#x40;gm&#x61;&#105;l.com&gt; wrote:


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30080.html</link><pubDate>Wed, 11 Nov 2009 22:47:42 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I agree that the main reason for <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>+CSS not to succeed is simply the
lack of <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a>-like <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">features</a> in CSS. And when you combine CSS with XSLT
or other transformation languages server-side, you can just as well
transform to XHTML/HTML and get the benefits of markup languages the
browsers and other user agents know.

When we come to think about it, it is also not exactly correct to say
that PRINCExml is a great <a title="XML Developer Blogs" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://blogs.stylusstudio.com/">example of XML</a>+CSS. This system has to have
some mechanism of transformation internally, XSLT or some other
programming language.

I will update my &quot;tutorial&quot;.

Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80080.html</link><pubDate>Wed, 11 Nov 2009 21:46:17 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Mike,
   At first thought, and even thinking a bit deeply I have quite a bit
of agreement to your arguments.

But I am trying to be very careful just now, before saying that &quot;I
completely agree with you&quot;.

I still have a feeling in my mind, that &quot;<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> validation&quot; and &quot;<a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>
validation&quot; both mean validating <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> documents (i.e, conceptually DTD
and XSD validations are the same thing), but with different (XML)
Schema languages. I also think, the word validation in XML spec,
conceptually relates similarly to XSD or to any other XML validation
technology, as it means for DTDs.

You have said, &quot;the word valid in the XML <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> has a
different meaning from its <a title="Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">use in the XSD</a> specification&quot;. As I have
said above, unfortunately I am not entirely convinced by this
argumemnt :( But conceptually I agree with you, agreeing with your
argument that XML core specs, do not include the XSD spec.
Unfortunately it seems to me, that W3C XML activity sepcs are
structure in such a way, that XSD spec is separate from the XML core
specs (but the separation of XSD spec from XML core specs, look ok to
me), and that causes the confusion to readers when they read the word
&quot;valid&quot; in the XML spec, and that is referred to DTD only validation.

According to me, the XML spec (I am looking at the 5th edition spec,
of XML 1.0) clearly seems to convey, that XML validation is *only* a
DTD validation. And that is the main confusion to me. Because, in
present context XML validation can be done by other Schema language as
well like XSD, RelaxNG or Schematron.

I don't intend to have the core essence of XML spec changed. I even
like the description of entire DTD language in XML spec, and also
saying that DTD is a XML validation technology, in XML spec. But I
wish that if, a confusion regarding &quot;XML validation&quot; as mentioned in
the XML spec, which seems to be possible only with DTDs can be better
explained in the XML spec, that would be quite helpful, I believe.

Even if the word XSD cannot be mentioned explicitly in the XML spec, I
think a generic reference like &quot;XML Schema&quot; or perhaps &quot;other XML
Schema languages&quot; would look ok to me.

I feel though, that descriptions of DTDs in XML spec should definitely
be retained and being referred as a XML validation technology.

On Wed, Nov 11, 2009 at 2:41 PM, <a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a> &lt;&#x6d;ike&#64;s&#97;xo&#x6e;&#105;ca.&#99;&#111;&#109;&gt; wrote:
&gt; When the XML specification uses the word &quot;entity&quot;, it means something
&gt; entirely different from what the UML spec means by &quot;entity&quot;. That does not
&gt; make the things it says about entities untrue: it just means that the reader
&gt; has to be careful to remember what the meaning of the word is in the context
&gt; of a particular specification. Similarly, the word &quot;valid&quot; in the XML
&gt; specification has a different meaning from its use in the XSD specification.
&gt; Also similarly, the word &quot;processor&quot; in the XML specification means
&gt; something different from &quot;processor&quot; in the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a> specification. Such
&gt; differences are entirely legitimate. When discussing technology in a wider
&gt; context, it's often wise to qualify your language to avoid misunderstanding,
&gt; by talking of an &quot;XML entity&quot; or an &quot;XML processor&quot; or of documents being
&gt; &quot;DTD-valid&quot;. But it would be tedious to do that within a specification,
&gt; where it's hard enough to avoid 6-tuple compound nouns at the best of times.



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90070.html</link><pubDate>Wed, 11 Nov 2009 21:42:59 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jim Tivy wrote:
&gt; Hi Rick
&gt;
&gt; Just to clarify, I was not confusing a dictionary with a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a>. My
&gt; dictionaries are large and <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_grid_view.html">rectangular</a> and most specs I read online :)
&gt;
&gt; I think where we may agree is, a spec has language control and many specs
&gt; have glossaries for this.  The point is that the term &quot;valid&quot; and
&gt; &quot;validation&quot; are being used differently across the same standards
&gt; organization within the same family of standards.  So, I think if another
&gt; revision were done of <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML 1.0</a> a change as proposed would be appropriate.
&gt; That is not to say it will be done.  Lots of things are not rewritten
&gt; endlessly - they stay as is, written within the context of the time.
&gt;   
Well, I would quibble that <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> no more in the same family of standards 
as XML than you could regard <a title="Working with WSDL files" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/webservices/wsdl_editor.html">WSDL</a> as being in the same family. The lumur 
and the bonobo perhaps. It has an infoset (PSVI) that is not the XML 
infoset.

But if you decided that it was important that no standard should have 
particular meanings of general terms, such as validate, character, 
string, element, object, etc. then you would have to replace them with 
specific terms, such as &quot;<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>-valid&quot; and &quot;XSD-valid&quot;.  So there would be 
no use of either &quot;valid&quot; (because the term is only used in the 
particular sense) or &quot;XSD-valid&quot; (because it belongs to a different 
spec) in the XML specification. If you think that would prevent 
confusion, go for it! 

Cheers
Rick
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20070.html</link><pubDate>Wed, 11 Nov 2009 16:17:59 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
To summarize the thread I have made a tutorial about it.

&quot;Styling <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> with CSS&quot;,
http://www.xmlplease.com/xmlcss

Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70070.html</link><pubDate>Wed, 11 Nov 2009 15:31:05 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Wed, Nov 11, 2009 at 10:47 AM, Rick Jelliffe
&lt;&#114;jell&#x69;&#102;&#x66;e&#x40;&#97;l&#108;e&#116;&#116;e&#x2e;c&#111;m.a&#x75;&gt; wrote:
&gt; So there would be no use of
&gt; either &quot;valid&quot; (because the term is only used in the particular sense) or
&gt; &quot;<a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>-valid&quot; (because it belongs to a different spec) in the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a>.

The XML 1.0 spec, 5th edition mentions (in the section, &quot;5.1
Validating and Non-Validating Processors):
&quot;Validating processors must, at user option, report violations of the
constraints expressed by the declarations in the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>, and failures to
fulfill the validity constraints given in this specification.] To
accomplish this, validating XML processors must read and process the
entire DTD and all external parsed entities referenced in the
document.&quot;

This particular paragraph clearly conveys, that a XML document is
valid *only* in the context of a DTD. This is no longer true given
that XSD, RelaxNG and Schematron are also standard based XML
validation languages, and most of the world recognizes these newer
Schema languages.

As suggested by Jim Tivy earlier, a generic phrase like &quot;XML Schema&quot;
in the XML spec, while referring to XML validation would be helpful to
readers, in the present context.

&gt; If you think that would prevent confusion, go for it!

yes, I believe this change would prevent this confusion to a large extent.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30070.html</link><pubDate>Wed, 11 Nov 2009 14:20:03 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">



<br>
<br>
Peter Hunsberger wrote:
<blockquote
 cite="mid:<a href="post20080.html">c&#99;&#x31;&#x35;9a4&#97;&#x30;91&#49;&#x31;109&#49;1w&#55;&#55;&#x33;&#55;&#54;&#x65;&#49;0y&#57;&#56;&#x37;c&#x35;f&#x31;&#x36;4a&#x66;2&#50;836&#x40;m&#x61;il.&#103;mai&#x6c;.c&#111;&#109;</a>"
 type="cite">
  <pre wrap="">On Wed, Nov 11, 2009 at 10:49 AM, David A. Lee <a class="moz-txt-link-rfc2396E" href="mailto:dle&#x65;&#x40;&#99;all&#100;&#x65;&#x69;.c&#x6f;&#x6d;">&lt;dle&#x65;&#x40;&#99;all&#100;&#x65;&#x69;.c&#x6f;&#x6d;&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I read this with interest, and IMHO the biggest thing "missing" is what I
think is the fundamental issue of CSS for <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>.
That is you cant re-order the elements ! &nbsp; (Please tell me I'm wrong &nbsp;.. but
thats my understanding).

    </pre>
  </blockquote>
  <pre wrap=""><!---->
I have to ask, why do you want to reorder the elements?  That's partly
what <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a> is for, but browser support can be unpredictable.  However,

  </pre>
</blockquote>
Yes this is what XSLT is for, and CSS cant really do it&nbsp; ...<br>
Why do it ? Thats an interesting question ... my answer is "Why would
you NOT ?"<br>
Much of the XML I deal with is Data oriented.&nbsp; Its not simply a
"document" with some tags to mark it up, its structured data.<br>
How you display that is varient, and its really a degenerative (rare)
case that I'd want to display it in the form and order in the <a title="XML file" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_file_explorer.html">XML file</a>,<br>
any more then I'd want to display a raw dump from a relational database
in the order and form given by the data extraction SQL statement.<br>
It would be a coincidence, not a general rule, if the data in an XML
file happened to be in the structure and order you wanted to display it
...<br>
at least thats my take on it from the XML files I deal with daily.<br>
<br>
Even for document oriented XML data, a simple example would be to list
a TOC at the beginning ... extracted from the XML Data.<br>
And yes thats what XSLT is for ... ( why I suggest CSS is in the
general case not a good <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/editor/">tool</a> for displaying XML in a browser).<br>
<br>
<br>
-D<br>
<br>
<pre wrap="">David A. Lee
<span class="moz-txt-citetags">&gt; </span><a
 class="moz-txt-link-abbreviated" href="mailto:d&#x6c;ee&#64;&#x63;&#x61;&#x6c;&#x6c;d&#x65;&#x69;&#46;&#99;om">d&#x6c;ee&#64;&#x63;&#x61;&#x6c;&#x6c;d&#x65;&#x69;&#46;&#99;om</a>  http://www.calldei.com
<span class="moz-txt-citetags">&gt; </span>http://www.xmlsh.org
<span class="moz-txt-citetags">&gt; </span>812-482-5224</pre>
<br>
<br>
<br>
<br>
<br>


</font></td></tr></table>
]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50080.html</link><pubDate>Wed, 11 Nov 2009 12:21:09 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Tue, Nov 10, 2009 at 03:34:08PM +0100, Jesper Tverskov wrote:
&gt; I don't thing that is the full explanation. When looking back, I find
&gt; it incredible to believe, that many of us once thought that &quot;XML
&gt; Browsing&quot;, meaning CSS styled homegrown XML, was a promising road to
&gt; follow for webpages.

Some of us were hoping for adoption of a more sophisticated styling
mechanism, such as (what became) <a title="xslfo" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xsl_fo.html">XSL-FO</a>.  Unfortunately, it's clear
that, even if there were Web browsers <a title="Building XSLT Stylesheet Applications" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html">implementing XSL</a>-FO, it's
too difficult for the target audience in the <a title="Web design" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xhtml.html">Web design</a> world to use.

Generating (X)HTML seems to me to be the primary way forward for the Web.

Some <a title="Visual XML Editor" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/">XML editing</a> environments (XMetal, XXE, etc) use CSS for styles, or
at least something CSS-like, usually without the cascading part. I only
know of one editor (Serna, now with a useable open source version) that
uses XSL-FO for screen display: it was a much harder technical challenge.

I always thought the real goal was to be able to get fairly arbitrary
SGML (or, later, XLM) to display in the Web browser - originally using
a browser plugin such as SoftQuad Panorama or EBT DynaWeb.  I for one
never expected CSS to be widely used for XML, since (1) the cascading
part didn't seem relevent in most cases, and (2) CSS didn't really
seem sophisticated enough for most &quot;serious&quot; publishing <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xquery/use_cases.html">use cases</a>.
I don't think that's a weakness of CSS - arbritary XML documents
are well outside its design, is all.

Jesper, your tutorial is almost like an advert for Prince, you could
at least include a link to e.g. <a title="fop 0.20.5" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/apache/fop.html">FOP</a> :-)

You also ask, Why has XML browsing turned out to be a dead end?
and &quot;answer&quot; it with, It makes more sense to use XHTML, but, XHTML
is based on XML, so in fact XML browsing is far from a dead end.

What is not so widely done is browsing of XML vocabularies that
are not built-in to the most common Web browsers.

For that, as Simon has pointed out, XLink's failure is a problem.
And a large part of its failure is that it never addressed the
&quot;link discovery&quot; or &quot;architectural form&quot; part of its requirements.

Some simple markup such as,
    &lt;?xlink element=&quot;person&quot; link=&quot;@brother&quot; title=&quot; 'My Brother' &quot; ?&gt;
    &lt;?xlink element=&quot;person&quot; link=&quot;concat('?ssn=', @ssn)&quot; title=&quot;name&quot; ?&gt;
would have gone a long way to changing the world.

You have to look at the whole picture -- search engines, text readers,
javascript, links, forms, styles for screen and for printing, navigation...

Liam

-- 
Liam Quin, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10080.html</link><pubDate>Wed, 11 Nov 2009 12:00:36 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I read this with interest, and IMHO the biggest thing &quot;missing&quot; is what 
I think is the fundamental issue of CSS for <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>.
That is you cant re-order the elements !   (Please tell me I'm wrong  .. 
but thats my understanding).

If pure CSS is used to render XML in the browser, then the resulting 
HTML HAS to be in the same basic structure as the XML.
Simple case if I have

&lt;part&gt;
   &lt;name&gt;Name&lt;/name&gt;
   &lt;code&gt;Code&lt;/code&gt;
&lt;/part&gt;


And I want it to render like
       &lt;P&gt; &lt;B&gt;Code&lt;/B&gt; - Name &lt;/P&gt;

I don't believe there is any way to do this in CSS.


This, IMHO, is the fundamental limitation of CSS.  The XML has to be 
structured how you want it displayed, all the CSS can do is add some 
&quot;styling&quot; but it cant restructure the document.  One of the big &quot;goals&quot; 
of XML  (IMHO) is that it can be data centric, not display centric.  
This makes CSS rendering a data oriented XML document severely 
crippled.  It can only do so much - namely add &quot;style&quot; to an element, 
not reformat the document.

(again, please tell me I'm wrong ! - but this is what the CSS gurus at 
work tell me as to why I cant send them XML directly to display in a 
mobile browser).


David A. Lee
&#100;lee&#64;&#x63;&#x61;ll&#x64;&#x65;&#105;&#x2e;co&#109;  
http://www.calldei.com
http://www.xmlsh.org
812-482-5224



Jesper Tverskov wrote:
&gt; To summarize the thread I have made a tutorial about it.
&gt;
&gt; &quot;Styling XML with CSS&quot;,
&gt; http://www.xmlplease.com/xmlcss
&gt;
&gt; Cheers,
&gt; Jesper Tverskov
&gt;
&gt; http://www.xmlkurser.dk
&gt; http://www.xmlplease.com
&gt;
&gt; _______________________________________________________________________
&gt;
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt;
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#x78;&#x6d;&#x6c;&#45;&#x64;&#x65;&#118;&#45;un&#x73;u&#x62;scrib&#x65;&#x40;li&#x73;&#116;s.&#x78;m&#x6c;.&#111;&#x72;&#x67;
&gt; subscribe: &#120;m&#108;-de&#118;-&#115;&#x75;&#x62;scribe&#64;&#108;&#x69;sts.xm&#x6c;&#46;&#111;&#114;&#103;
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;   
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00080.html</link><pubDate>Wed, 11 Nov 2009 11:49:16 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt;&gt; Sorry for wasting anybody's time.
&gt;
&gt; arguments are never a waste of time.
&gt; The list would be fairly pointless without them.
&gt;

Just to confirm: I greatly enjoyed this whole thread, it simply was great.

Thanks to all, and especially to Rick Jelliffe.


Cheers,
Dimitre Novatchev.

On Mon, Nov 9, 2009 at 2:44 AM, David Carlisle &lt;d&#97;&#x76;idc&#64;na&#103;&#46;&#x63;&#111;&#46;&#x75;&#107;&gt; wrote:
&gt;
&gt;
&gt;&gt; Sorry for wasting anybody's time.
&gt;
&gt; arguments are never a waste of time.
&gt; The list would be fairly pointless without them.
&gt;
&gt; David
&gt;
&gt; ________________________________________________________________________
&gt; The Numerical Algorithms Group Ltd is a company registered in England
&gt; and Wales with company number 1249803. The registered office is:
&gt; Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, <a title="DOM XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dom.html">United Kingdom</a>.
&gt;
&gt; This e-mail has been scanned for all viruses by Star. The service is
&gt; powered by MessageLabs.
&gt; ________________________________________________________________________
&gt;
&gt; _______________________________________________________________________
&gt;
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt;
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: x&#109;&#108;&#x2d;d&#x65;v&#x2d;&#x75;ns&#x75;b&#115;cribe&#x40;lis&#116;s.x&#x6d;l.&#111;&#114;&#103;
&gt; subscribe: x&#x6d;l&#45;dev&#45;&#x73;&#x75;bs&#x63;&#x72;&#105;&#x62;e&#64;&#108;&#x69;&#x73;&#x74;&#x73;.&#x78;&#x6d;&#108;&#46;or&#x67;
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;



-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
I enjoy the massacre of ads. This sentence will slaughter ads without
a messy bloodbath.
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70080.html</link><pubDate>Wed, 11 Nov 2009 11:21:26 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Wed, Nov 11, 2009 at 10:49 AM, David A. Lee &lt;d&#108;&#101;e&#64;&#x63;&#x61;&#x6c;ld&#101;&#105;&#x2e;c&#x6f;m&gt; wrote:
&gt; I read this with interest, and IMHO the biggest thing &quot;missing&quot; is what I
&gt; think is the fundamental issue of CSS for <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>.
&gt; That is you cant re-order the elements !   (Please tell me I'm wrong  .. but
&gt; thats my understanding).
&gt;

I have to ask, why do you want to reorder the elements?  That's partly
what <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a> is for, but browser support can be unpredictable.  However,
I think what you really want to do is change the position they are
given on the screen (/page)?  If so, yes CSS can place any element in
any (mostly arbitrary) position.  However, that requires absolute
positioning which can be a real pain, in particular for things like
resizable pages.  The latter problem can somewhat be addressed by
using &quot;em&quot; (characters) as your positioning units instead of the more
ubiquitous &quot;px&quot; (pixels), but getting predictable cross browser
results is tedious at best and often impossible for anything
non-trivial...

-- 
Peter Hunsberger
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20080.html</link><pubDate>Wed, 11 Nov 2009 11:11:25 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
I&#39;d agree with David here.<br><br>I&#39;ve written a couple of those <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>+CSS type chapters for various <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a>, and the reordering issue was almost immediately the first major problem to crop up with just about any XML data set. There are of course ways around that, but they all involve some kind of alternative transformation technology, whether the <a title="XSL Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html">use of an initial XSLT</a> in order to remap the content to something closer to (x)html or something like a <a title="binding" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/jaxb.html">binding</a> layer like xbl or xbl2. I think that the xml+css vogue came about at a time when most browsers didn&#39;t have an xslt processor available to perform processing, and it&#39;s since become somewhat obsolete.<br>
<br clear="all">Kurt Cagle<br>Managing Editor<br>http://xmlToday.org<br>
<br><br><div class="gmail_quote">On Wed, Nov 11, 2009 at 9:21 AM, David A. Lee <span dir="ltr">&lt;<a href="mailto:&#x64;lee&#x40;&#x63;&#x61;l&#x6c;&#100;ei&#46;&#99;om">&#x64;lee&#x40;&#x63;&#x61;l&#x6c;&#100;ei&#46;&#99;om</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000"><div class="im">
<br>
<br>
Peter Hunsberger wrote:
<blockquote type="cite">
  <pre>On Wed, Nov 11, 2009 at 10:49 AM, David A. Lee <a href="mailto:dl&#x65;e&#x40;c&#x61;ll&#100;&#x65;i&#x2e;co&#x6d;" target="_blank">&lt;dl&#x65;e&#x40;c&#x61;ll&#100;&#x65;i&#x2e;co&#x6d;&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre>I read this with interest, and IMHO the biggest thing &quot;missing&quot; is what I
think is the fundamental issue of CSS for XML.
That is you cant re-order the elements !   (Please tell me I&#39;m wrong  .. but
thats my understanding).

    </pre>
  </blockquote>
  <pre>I have to ask, why do you want to reorder the elements?  That&#39;s partly
what XSLT is for, but browser support can be unpredictable.  However,

  </pre>
</blockquote></div>
Yes this is what XSLT is for, and CSS cant really do it  ...<br>
Why do it ? Thats an interesting question ... my answer is &quot;Why would
you NOT ?&quot;<br>
Much of the XML I deal with is Data oriented.  Its not simply a
&quot;document&quot; with some tags to mark it up, its structured data.<br>
How you display that is varient, and its really a degenerative (rare)
case that I&#39;d want to display it in the form and order in the <a title="XML file" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_file_explorer.html">XML file</a>,<br>
any more then I&#39;d want to display a raw dump from a relational database
in the order and form given by the data extraction SQL statement.<br>
It would be a coincidence, not a general rule, if the data in an XML
file happened to be in the structure and order you wanted to display it
...<br>
at least thats my take on it from the XML files I deal with daily.<br>
<br>
Even for document oriented XML data, a simple example would be to list
a TOC at the beginning ... extracted from the XML Data.<br>
And yes thats what XSLT is for ... ( why I suggest CSS is in the
general case not a good <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/editor/">tool</a> for displaying XML in a browser).<br>
<br>
<br>
-D<br>
<br>
<pre>David A. Lee
<div class="im"><span>&gt; </span><a href="mailto:&#x64;l&#101;e&#64;&#99;&#x61;&#108;ld&#x65;&#105;&#46;co&#109;" target="_blank">&#x64;l&#101;e&#64;&#99;&#x61;&#108;ld&#x65;&#105;&#46;co&#109;</a>  http://www.calldei.com
<span>&gt; </span>http://www.xmlsh.org
<span>&gt; </span>812-482-5224</div></pre>
<br>
<br>
<br>
<br>
<br>
</div>

</blockquote></div><br>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60080.html</link><pubDate>Wed, 11 Nov 2009 10:13:32 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jesper Tverskov wrote:
&gt; To summarize the thread I have made a tutorial about it.
&gt; 
&gt; &quot;Styling <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> with CSS&quot;,
&gt; http://www.xmlplease.com/xmlcss

That may be the most biased &quot;don't do that&quot; tutorial I've seen.  I don't 
even think my <a title="XML Schema tutorials" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema_tutorial.html">XML Schema tutorials</a> were that harsh on the material they 
purported to teach...  and there's not much <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/SSDN/default.asp">discussion</a> of the core 
display CSS property that makes it work.

I'd recommend describing it as something other than a tutorial, and 
perhaps change the title.  There's plenty of room for articles that 
illustrate gaps, but readers tend to react more happily to material 
whose title indicates gap-finding.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80070.html</link><pubDate>Wed, 11 Nov 2009 09:55:58 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>

On Nov 11, 2009, at 8:49 AM, David A. Lee wrote:

&gt; I read this with interest, and IMHO the biggest thing &quot;missing&quot; is what I think is the fundamental issue of CSS for <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>.
&gt; That is you cant re-order the elements !   (Please tell me I'm wrong  .. but thats my understanding).
&gt; 
&gt; If pure CSS is used to render XML in the browser, then the resulting HTML HAS to be in the same basic structure as the XML.
&gt; Simple case if I have
&gt; 
&gt; &lt;part&gt;
&gt; &lt;name&gt;Name&lt;/name&gt;
&gt; &lt;code&gt;Code&lt;/code&gt;
&gt; &lt;/part&gt;
&gt; 
&gt; 
&gt; And I want it to render like
&gt;     &lt;P&gt; &lt;B&gt;Code&lt;/B&gt; - Name &lt;/P&gt;
&gt; 
&gt; I don't believe there is any way to do this in CSS.

How about

part {
display: block;
}

name {
display:inline;
float: right;
}

code: {
display:inline;
float: left;
font-weight: bold;
}

untested :)

-Rob



&gt; 
&gt; 
&gt; This, IMHO, is the fundamental limitation of CSS.  The XML has to be structured how you want it displayed, all the CSS can do is add some &quot;styling&quot; but it cant restructure the document.  One of the big &quot;goals&quot; of XML  (IMHO) is that it can be data centric, not display centric.  This makes CSS rendering a data oriented XML document severely crippled.  It can only do so much - namely add &quot;style&quot; to an element, not reformat the document.
&gt; 
&gt; (again, please tell me I'm wrong ! - but this is what the CSS gurus at work tell me as to why I cant send them XML directly to display in a mobile browser).
&gt; 
&gt; 
&gt; David A. Lee
&gt; d&#108;e&#x65;&#x40;&#99;all&#x64;ei.co&#x6d;  http://www.calldei.com
&gt; http://www.xmlsh.org
&gt; 812-482-5224
&gt; 
&gt; 
&gt; 
&gt; Jesper Tverskov wrote:
&gt;&gt; To summarize the thread I have made a tutorial about it.
&gt;&gt; 
&gt;&gt; &quot;Styling XML with CSS&quot;,
&gt;&gt; http://www.xmlplease.com/xmlcss
&gt;&gt; 
&gt;&gt; Cheers,
&gt;&gt; Jesper Tverskov
&gt;&gt; 
&gt;&gt; http://www.xmlkurser.dk
&gt;&gt; http://www.xmlplease.com
&gt;&gt; 
&gt;&gt; _______________________________________________________________________
&gt;&gt; 
&gt;&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt; 
&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt; Or unsubscribe: xml-d&#x65;v-&#x75;n&#115;u&#x62;&#115;&#99;&#x72;&#105;b&#101;&#x40;l&#105;&#115;&#x74;s&#46;x&#109;l.org
&gt;&gt; subscribe: x&#x6d;&#x6c;-de&#118;&#x2d;su&#98;&#x73;cri&#98;e&#x40;&#108;&#105;&#x73;&#116;&#115;&#x2e;&#120;ml&#46;&#111;&#x72;g
&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt; 
&gt; 
&gt; _______________________________________________________________________
&gt; 
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt; 
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#120;&#x6d;&#x6c;-d&#x65;v&#45;unsub&#x73;cri&#98;e&#64;l&#x69;st&#115;&#46;&#120;ml&#x2e;o&#114;g
&gt; subscribe: x&#109;&#x6c;&#x2d;de&#x76;&#x2d;&#115;&#x75;bs&#99;&#x72;&#x69;&#x62;&#x65;&#64;&#x6c;&#x69;&#115;&#116;s.&#x78;m&#x6c;.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt; 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40080.html</link><pubDate>Wed, 11 Nov 2009 09:20:49 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; This particular paragraph clearly conveys, that a XML 
&gt; document is valid *only* in the context of a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>. This is no 
&gt; longer true given that <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>, RelaxNG and Schematron are also 
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">standard</a> based XML validation languages, and most of the 
&gt; world recognizes these newer Schema languages.

When the XML specification uses the word &quot;entity&quot;, it means something
entirely different from what the UML spec means by &quot;entity&quot;. That does not
make the things it says about entities untrue: it just means that the reader
has to be careful to remember what the meaning of the word is in the context
of a particular specification. Similarly, the word &quot;valid&quot; in the XML
specification has a different meaning from its <a title="Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">use in the XSD</a> specification.
Also similarly, the word &quot;processor&quot; in the XML specification means
something different from &quot;processor&quot; in the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a> specification. Such
differences are entirely legitimate. When discussing technology in a wider
context, it's often wise to qualify your language to avoid misunderstanding,
by talking of an &quot;XML entity&quot; or an &quot;XML processor&quot; or of documents being
&quot;DTD-valid&quot;. But it would be tedious to do that within a specification,
where it's hard enough to avoid 6-tuple compound nouns at the best of times.

Regards,

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50070.html</link><pubDate>Wed, 11 Nov 2009 09:11:45 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; &gt;   
&gt; Well, I would quibble that <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> no more in the same family of 
&gt; <a title="standards" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">standards</a> as XML than you could regard <a title="Working with WSDL files" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/webservices/wsdl_editor.html">WSDL</a> as being in the 
&gt; same family. 

If I were asked what the term &quot;family of standards&quot; means, then I would say
that it means a set of standards that come from the same organization and
are planned and coordinated as a unit. XML and XSD are both within the
purview of the XML Activity within W3C, so in that sense they are most
definitely part of the same family in a way that WSDL is not. On the other
hand, XSD is not part of the &quot;XML Core&quot; (which includes XML, Namespaces,
XInclude, Infoset, and XML Base, as well as (somewhat bizarrely) the spec
for &lt;?xml-<a title="Stylesheet Designer" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/publisher1/publisher1.html">stylesheet</a>?&gt;. So perhaps XML Core is the nuclear family, while
XSD, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a>, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xquery.html">XQuery</a>, and XProc are part of the extended family. Then WSDL is a
second cousin once removed, while RelaxNG is a next-door neighbour. 

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>





</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40070.html</link><pubDate>Wed, 11 Nov 2009 09:03:44 GMT</pubDate></item><item><title>[Announce] PsychoPath XPath 2.0 Schema Aware Processor 1.1M3</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
PsychoPath 1.1M3 a <a title="Java" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/configure_jre.html">Java</a> 5 (1.5) or greater <a title="Free XPath Tools" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xpath.html">XPath 2.0</a> <a title="Schema Aware" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/schema_aware.html">Schema Aware</a> 
processor is now available for download.

It is packaged in two forms as standalone jar and as part of an eclipse 
P2 update site.  It does depend on java_cup and <a title="Xerces-j Examples" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/xerces.html">xerces</a> (for xml schema 
support).

https://build.eclipse.org/hudson/view/WTP/job/cbi-wtp-wst.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">xsl</a>.psychopath/82/

PsychoPath is also included in the latest WTP 3.2 Milestone 3 build as well:

http://download.eclipse.org/webtools/downloads/drops/R3.2.0/S-3.2.0M3-20091106000626/

PsychoPath now has a pass rating of 99.6% of the W3C XPath 2.0 portion 
of the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xquery.html">XQuery</a> Test suite. It is fully schema aware including the ability 
to handle user defined data types.   There are about 24 tests left to go 
to bring it into full compliance with the test suite.

PsychoPath provides the only known open source Java XPath 2.0 Schema
Aware processor. User Manual and sample code can be found at:

http://<a title="XML Wiki" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://wiki.stylusstudio.com/">wiki</a>.eclipse.org/PsychoPathXPathProcessor/UserManual

Thanks to Andrea Bittau for the original code donation. Current
development is done by Dave Carver, Mukul Gandhi, and Jesper Moller.

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60070.html</link><pubDate>Wed, 11 Nov 2009 05:44:43 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Rick

Just to clarify, I was not confusing a dictionary with a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a>. My
dictionaries are large and <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_grid_view.html">rectangular</a> and most specs I read online :)

I think where we may agree is, a spec has language control and many specs
have glossaries for this.  The point is that the term &quot;valid&quot; and
&quot;validation&quot; are being used differently across the same standards
organization within the same family of standards.  So, I think if another
revision were done of <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML 1.0</a> a change as proposed would be appropriate.
That is not to say it will be done.  Lots of things are not rewritten
endlessly - they stay as is, written within the context of the time.

Jim

-----Original Message-----
From: Rick Jelliffe [<A  HREF="mailto:&#114;j&#101;&#x6c;&#108;if&#x66;&#101;&#x40;a&#x6c;&#108;e&#116;t&#101;&#x2e;&#99;&#111;m&#x2e;au">mailto:&#114;j&#101;&#x6c;&#108;if&#x66;&#101;&#x40;a&#x6c;&#108;e&#116;t&#101;&#x2e;&#99;&#111;m&#x2e;au</A>] 
Sent: Monday, November 09, 2009 11:09 PM
To: &#x78;ml&#x2d;dev&#64;li&#x73;&#x74;s&#46;xm&#x6c;.o&#x72;g
Subject: Re:  XML spec and <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>

Jim Tivy wrote:
&gt;
&gt; The above definition of the term &quot;valid&quot; is not really common Xml usage
&gt; anymore. I have seen the term &quot;valid&quot; used when a document has no <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> and
&gt; &quot;validates&quot; against an XML schema - for instance Oxygen uses this term -
or
&gt; Xml Schema Primer says:
&gt;   
A standard does not reflect common usage. It defines its own little 
world of tight technical terms.  You are thinking of a dictionary perhaps?

Cheers
Rick Jelliffe

_______________________________________________________________________

<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
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: xm&#x6c;-&#x64;e&#x76;-u&#x6e;&#115;&#117;b&#x73;&#99;&#x72;&#x69;&#x62;e&#64;list&#x73;&#x2e;&#120;m&#108;&#46;o&#114;&#x67;
subscribe: &#x78;m&#x6c;&#45;&#100;e&#118;-s&#x75;&#x62;&#115;c&#114;i&#x62;&#101;&#64;&#108;ists&#46;xm&#108;.&#111;rg
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10070.html</link><pubDate>Tue, 10 Nov 2009 20:45:05 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jim Tivy wrote:
&gt;
&gt; The above definition of the term &quot;valid&quot; is not really common <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">Xml</a> usage
&gt; anymore. I have seen the term &quot;valid&quot; used when a document has no <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> and
&gt; &quot;validates&quot; against an <a title="XML schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML schema</a> - for instance Oxygen uses this term - or
&gt; Xml Schema Primer says:
&gt;   
A <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">standard</a> does not reflect common usage. It defines its own little 
world of tight technical terms.  You are thinking of a dictionary perhaps?

Cheers
Rick Jelliffe
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00060.html</link><pubDate>Tue, 10 Nov 2009 18:09:06 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Simon St.Laurent wrote:

&gt; Screen reader
&gt; developers haven't been especially enthusiastic about interpreting the
&gt; information that CSS provides, but it's possible. Â Perhaps more practical
&gt; would be CSS properties that map to a limited number of screen-reader types,
&gt; though that's a conversation that goes around and around...

Yes, at least in theory, a screen reader ought to be able to interpret
what CSS actually does: When the meaning of markup the CSS is applied
to is known. But if the meaning of the markup is unknown to the screen
reader, as would most often be the case with some homegrown <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>, I
think it would be quite a challenge.

&gt; None of these are impossible barriers. Â XML just never achieved the momentum
&gt; in this space to make them worth climbing.

I don't thing that is the full explanation. When looking back, I find
it incredible to believe, that many of us once thought that &quot;XML
Browsing&quot;, meaning CSS styled homegrown XML, was a promising road to
follow for webpages.

I believe that I'm pretty good at CSS, but I have not the slightest
idea of how I could style some XML to create a table with rows and
columns, collspan, borders and shades, table headers, tbody, etc. Nor
do I have the desire to solve such problems. Next time around with
some other XML, I should reinvent the wheel one more time? Should all
web developers really work like that, when it is easy to transform XML
not made for display into XHTML made to make display easy?

Cheers,

Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60060.html</link><pubDate>Tue, 10 Nov 2009 15:34:08 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>


Simon wrote: 

&gt; I've never found the display properties to be that difficult, but then I 
&gt; rarely work with the kinds of tables that make designers crazy.  (CALS 
&gt; table models anyone?)  If only IE bothered to support them...

You mean as in:

http://msdn.microsoft.com/en-us/library/cc304082%28VS.85%29.aspx


Internet <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_file_explorer.html">Explorer</a> 8 is fully compliant with the Cascading <a title="Visual Style Sheet Design" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/publisher1/publisher1.html">Style Sheets</a>
(CSS), Level 2 Revision 1 (CSS2.1) <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> and supports some
<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">features</a> of CSS, Level 3 (CSS3). 

....

The display attribute now supports the full range of table layout values
from the W3C Cascading Style Sheets Level 2.1 Specification .  

....

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, <a title="DOM XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dom.html">United Kingdom</a>.

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

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80060.html</link><pubDate>Tue, 10 Nov 2009 15:29:16 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Tue, Nov 10, 2009 at 12:39 PM, Rick Jelliffe
&lt;rje&#108;&#x6c;&#x69;ffe&#64;&#x61;ll&#101;&#x74;te.&#99;om&#46;&#97;&#x75;&gt; wrote:
&gt; A <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">standard</a> does not reflect common usage. It defines its own little world of
&gt; tight technical terms. Â You are thinking of a dictionary perhaps?

I agree, that standards are very specific. Standards have their own
notion of correctness :) But if something, that's said in the standard
deviates from the reality, then the standard should modify itself.
Standard revisions and erratas achieve this purpose.

We are not asking to invent something different with the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> spec. We
are I think, only asking the XML spec to express the reality.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10060.html</link><pubDate>Tue, 10 Nov 2009 14:10:11 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Nov 9, 2009, at 15:10, Simon St.Laurent wrote:

&gt; More formally, I've heard many good things about Prince, which  
&gt; <a title="Convert XML to PDF" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_to_pdf.html">generates PDF from XML</a> and CSS:
&gt;
&gt; http://www.princexml.com/<a title="overview" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">overview</a>/

Indeed, CSS makes sense for XML in Prince, since the print <a title="media " class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_coverage.html">media </a>is  
visual anyway. However, on the Web if you use an XML vocabulary whose  
semantics are unknown to the browser and make it look sensible using  
CSS, the user experience with screen readers suffers compared to using  
a vocabulary with semantics that the browser knows about (i.e. HTML).

-- 
Henri Sivonen
&#104;s&#105;von&#x65;&#x6e;&#64;&#105;k&#x69;&#46;&#102;&#x69;
http://hsivonen.iki.fi/


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30060.html</link><pubDate>Tue, 10 Nov 2009 10:59:52 GMT</pubDate></item><item><title>Re:  XPointer is dead. What about XLink?</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Aug 27, 2009, at 16:49, Simon St.Laurent wrote:

&gt; Simple links are supported in a few browsers, but that particular  
&gt; dream faded.

Support is on its way out:
https://bugzilla.mozilla.org/show_bug.cgi?id=516906
https://bugzilla.mozilla.org/show_bug.cgi?id=515494

The non-support on MathML elements is an accident. Most of the SVG  
stuff doesn't really use XLink facilities but uses the same attribute  
names, which pretty much shows how a generic mechanism is a failure in  
practice.

-- 
Henri Sivonen
h&#x73;&#x69;v&#111;&#x6e;e&#110;&#x40;i&#x6b;&#105;&#46;&#102;&#105;
http://hsivonen.iki.fi/


</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20060.html</link><pubDate>Tue, 10 Nov 2009 10:53:04 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
David Carlisle wrote:
&gt;&gt; I've never found the display properties to be that difficult, but then I 
&gt;&gt; rarely work with the kinds of tables that make designers crazy.  (CALS 
&gt;&gt; table models anyone?)  If only IE bothered to support them...
&gt; 
&gt; You mean as in:
&gt; 
&gt; http://msdn.microsoft.com/en-us/library/cc304082%28VS.85%29.aspx
&gt; 
&gt; Internet <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_file_explorer.html">Explorer</a> 8 is fully compliant with the Cascading <a title="Visual Style Sheet Design" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/publisher1/publisher1.html">Style Sheets</a>
&gt; (CSS), Level 2 Revision 1 (CSS2.1) <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> and supports some
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">features</a> of CSS, Level 3 (CSS3). 
&gt; 
&gt; ....
&gt; 
&gt; The display attribute now supports the full range of table layout values
&gt; from the W3C Cascading Style Sheets Level 2.1 Specification .  

That's what I meant, yes.  Some days it's great to be wrong!

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90060.html</link><pubDate>Tue, 10 Nov 2009 10:44:12 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Sun, 8 Nov 2009 09:52:36 +0530 Mukul Gandhi &lt;&#103;a&#110;&#x64;hi&#46;&#x6d;u&#107;&#117;&#108;&#64;&#x67;&#109;a&#105;l&#x2e;&#99;&#111;m&gt; might have said:
&gt; My averment was to give <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> the same status as <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>, as a <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>
&gt; validation technology in <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> XML spec.

I think schema languages are more like <a title="XSL" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSL</a> than a DTD. A document is supposed to have a DTD, whereas it doesn't really &quot;have a schema&quot;. You can apply any number of schemas to an XML document for different purposes. Each schema is not the one and only description of the document. You can apply W3C XML schema to an XML document to produce a PSVI.

In any case, if someone does end up adding a reference to a schema language to the XML spec, I don't think W3C XML Schema should be given preferred status.

Kendall
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00070.html</link><pubDate>Tue, 10 Nov 2009 10:29:52 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jesper Tverskov wrote:
&gt;&gt; None of these are impossible barriers.  <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> just never achieved the momentum
&gt;&gt; in this space to make them worth climbing.
&gt; 
&gt; I don't thing that is the full explanation. When looking back, I find
&gt; it incredible to believe, that many of us once thought that &quot;XML
&gt; Browsing&quot;, meaning CSS styled homegrown XML, was a promising road to
&gt; follow for webpages.

I don't find it that incredible, but then I was fond of CSS and looking 
for a path out of tag soup.

&gt; I believe that I'm pretty good at CSS, but I have not the slightest
&gt; idea of how I could style some XML to create a table with rows and
&gt; columns, collspan, borders and shades, table headers, tbody, etc. Nor
&gt; do I have the desire to solve such problems. Next time around with
&gt; some other XML, I should reinvent the wheel one more time? Should all
&gt; web developers really work like that, when it is easy to transform XML
&gt; not made for display into XHTML made to make display easy?

I've never found the display properties to be that difficult, but then I 
rarely work with the kinds of tables that make designers crazy.  (CALS 
table models anyone?)  If only IE bothered to support them...

Colspan is the only piece I see in your list that actually looks 
difficult, and I suspect that's mostly because I haven't kept up with 
the latest in CSS.  I don't find CSS reuse particularly difficult, even 
with changing vocabularies, either, though again, I rarely tread into 
intensely detailed layouts.

On the other hand, I've never <a title="XSL Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html">called XSLT</a> 'easy', even with excellent 
training.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70060.html</link><pubDate>Tue, 10 Nov 2009 09:59:58 GMT</pubDate></item><item><title>Re:  XPointer is dead. What about XLink?</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Henri Sivonen wrote:
&gt; On Aug 27, 2009, at 16:49, Simon St.Laurent wrote:
&gt;&gt; Simple links are supported in a few browsers, but that particular 
&gt;&gt; dream faded.
&gt; 
&gt; Support is on its way out:
&gt; https://bugzilla.mozilla.org/show_bug.cgi?id=516906
&gt; https://bugzilla.mozilla.org/show_bug.cgi?id=515494
&gt; 
&gt; The non-support on MathML elements is an accident. Most of the SVG stuff 
&gt; doesn't really use XLink facilities but uses the same attribute names, 
&gt; which pretty much shows how a generic mechanism is a failure in practice.

I'd be cautious about using XLink to generalize about the failure of 
generic mechanism, given the large number of other problems it had, both 
technical and cultural.

However, it does seem clear that this dream is not merely faded, but dead.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50060.html</link><pubDate>Tue, 10 Nov 2009 07:53:37 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jesper Tverskov wrote:
&gt; I think PrinceXML is a good example of when <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>+CSS can be useful. But
&gt; except that we have files like <a title="RSS" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/feeds/">RSS</a>, I find it a bad idea to use CSS to
&gt; style XML for the web to make it look like HTML/XHTML.
&gt; 
&gt; The browsers don't have a default <a title="Stylesheet Designer" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/publisher1/publisher1.html">stylesheet</a> to use. When you use
&gt; XHTML you only need to style what you want to be different from the
&gt; default stylesheet in the browser. When styling your own XML you must
&gt; style everything yourself.

Given the popularity of 'reset' stylesheets in HTML, I'm not sure that's 
actually a problem for the kinds of developers who'd be likely to use 
XML this way.  &quot;Styling everything yourself&quot; is a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">feature</a>, not a bug, 
for many people.

&gt; Also search engines benefit from a known markup language like XHTML:
&gt; Headings, paragraphs, lists, tables, making it easier to put special
&gt; importance to content, judged from how it is marked-up. Using your own
&gt; markup, it is much more difficult for a search engine like Google to
&gt; tell headings, tables, lists, etc, apart.

It is indeed more difficult, though of course the irony is that one of 
the early promises of XML was that it would make more sophisticated 
search easier.

(Though in Google's case, I'm not sure how much HTML semantics it's 
really using - originally the answer was &quot;almost none, just text and 
links&quot; because of people gaming search engines, but I understand that's 
changed over time.)

&gt; Also screen readers used by blind people, etc, read the source code.
&gt; Homegrown markup, making sense when displayed with CSS in a browser,
&gt; is meaningless in a screen reader not knowing when to announce
&gt; &quot;title&quot;, &quot;ordered list of 5 items&quot;, heading, table, etc, to make a
&gt; webpage easier to understand when read aloud.

This is true and important but not difficult to solve.  Screen reader 
developers haven't been especially enthusiastic about interpreting the 
information that CSS provides, but it's possible.  Perhaps more 
practical would be CSS properties that map to a limited number of 
screen-reader types, though that's a conversation that goes around and 
around...

None of these are impossible barriers.  XML just never achieved the 
momentum in this space to make them worth climbing.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40060.html</link><pubDate>Tue, 10 Nov 2009 07:50:49 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi Mukul

The line from the XML 1.0 5th edition spec

[Definition: An XML document is valid if it has an associated document type
declaration and if the document complies with the constraints expressed in
it.]

The above definition of the term &quot;valid&quot; is not really common Xml usage
anymore. I have seen the term &quot;valid&quot; used when a document has no <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> and
&quot;validates&quot; against an <a title="XML schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML schema</a> - for instance Oxygen uses this term - or
Xml Schema Primer says:

(1) it checks for conformance to the rules, a process <a title="Using XML Schema to Model XML Data" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">called schema</a>
validation,

So Mukul's suggestion of having a forward reference using &quot;such as&quot; text is
definately an improvement - for example:

An XML document is valid if it has an associated document type declaration
and if the document complies with the constraints expressed in it.  As well,
the validity of an XML instance can be determined with the use of a document
type declaration if using other validation mechanisms such as XML Schema.]

There have been previous <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/SSDN/default.asp">discussions</a> - see XML entry in <a title="Wikipedia" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://wiki.stylusstudio.com/">Wikipedia</a> - where
people have expressed a need to see DTD's special status removed with
respect to XML.

So perhaps we can close the discussion on that note :)

Jim



-----Original Message-----
From: Mukul Gandhi [<A  HREF="mailto:&#103;a&#110;dhi.m&#117;&#x6b;&#x75;l&#64;g&#109;&#x61;il&#46;&#x63;om">mailto:&#103;a&#110;dhi.m&#117;&#x6b;&#x75;l&#64;g&#109;&#x61;il&#46;&#x63;om</A>] 
Sent: Monday, November 09, 2009 2:41 AM
To: David Carlisle
Cc: &#120;ml&#45;&#100;&#x65;&#118;&#64;&#x6c;&#105;st&#115;&#46;&#x78;m&#x6c;.&#x6f;&#x72;g
Subject: Re:  XML spec and XSD

I think, I need to give up with my arguments in this thread. The
concepts now seem to go into my head. Nobody so far seem to agree with
my arguments. It seems, I was wrong.

Sorry for wasting anybody's time.

On Mon, Nov 9, 2009 at 3:34 PM, David Carlisle &lt;&#x64;a&#118;idc&#x40;n&#x61;g.c&#111;.uk&gt; wrote:
&gt;&gt; The spec seems to suggest that XML documents are valid only if a DTD
&gt;&gt; is associated with the XML document.
&gt;
&gt; That is not a &quot;suggestion&quot;. valid is a technical term defined in the XML
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> and that's a necessary condition for validity.
&gt;
&gt;&gt; I don't mind validating XML documents with other technologies like
&gt;&gt; RelaxNG or Schematron, if there is a need for me to do so. But I
&gt;&gt; think, existence of technologies like RelaxNG or Schematron cannot be
&gt;&gt; an excuse for XML spec, not to mention XSD within it as a validating
&gt;&gt; technology.
&gt;
&gt; Whether or not a document validates against an XSD or schematron schema
&gt; has no bearing on whether or not it is a valid as opposed to merely well
&gt; formed XML document. You seem to want &quot;valid&quot; to mean validated against
&gt; any schema language of your choice, that's OK (but confusing) if used in
&gt; conversation, but it is not the way the term &quot;valid&quot; is defined in XML.
&gt;
&gt;
&gt; XSD, RelaxNG, Schematron all depend on XML; not the other way round. They
&gt; require normative references to XML, it would be entirely backwards (or
&gt; worse, circular) for XML to reference them.
&gt;
&gt; David



-- 
Regards,
Mukul Gandhi

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
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: &#120;m&#108;&#45;&#100;ev&#x2d;u&#110;sub&#115;&#x63;&#x72;ib&#x65;&#x40;&#108;&#x69;st&#115;&#x2e;&#x78;&#x6d;&#x6c;.&#x6f;&#x72;&#103;
subscribe: xml&#x2d;d&#x65;v-sub&#x73;&#x63;ri&#x62;&#101;&#64;l&#x69;s&#x74;s&#46;&#x78;&#x6d;l&#46;o&#114;g
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90050.html</link><pubDate>Mon, 09 Nov 2009 21:25:57 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">



I have been teaching <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> and <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/web_services.html">Web Services</a> for a few years at
postgraduate level.&nbsp; The students generally come from a background with
a very limited exposure to the Web technologies (always with a few
exceptions).&nbsp; Taking them through XML + CSS is a waste of their (and
my) time in the way Michael hints at.&nbsp;&nbsp; In fact, I also think that that
approach does disservice to CSS itself.&nbsp; XHTML&nbsp; + CSS is a very
different proposition from XML + CSS.&nbsp; <a title="XHTML and CSS" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xhtml.html">XHTML and CSS</a> are well defined,
XML requires a completely different engagement to do justice to its
potential.<br>
<br>
A bit cryptic perhaps.&nbsp; I'm happy to expand ...<br>
<br>
-- <br>
Yogesh Deshpande<br>
<br>
Senior Lecturer and Head of Programme, MICT<br>
<br>
School of Computing and Mathematics<br>
University of Western Sydney<br>
Locked Bag 1797, Penrith South DC, NSW 1797<br>
<br>
<br>
<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a> wrote:
<blockquote cite="mid:<a href="post10050.html">40FFD6DDC7C643B996D5F0EC64093A50@Sealion</a>"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Apart from the above examples, how common is it to actually 
style XML with CSS? On the web and inside "systems"?

    </pre>
  </blockquote>
  <pre wrap=""><!---->
I haven't seen it done much in anger. It's an attractive option at first
sight, but has the disadvantage that when you hit the limits of what you can
do with CSS, you have to throw everything away and switch to a different
technology.

Regards,

Michael Kay
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 


_______________________________________________________________________

<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
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: <a class="moz-txt-link-abbreviated" href="mailto:&#120;&#x6d;l&#45;&#x64;&#x65;v&#45;&#117;&#110;s&#117;b&#115;&#x63;&#114;&#x69;b&#101;&#64;l&#x69;&#x73;&#116;s&#x2e;&#x78;&#109;&#x6c;&#x2e;or&#x67;">&#120;&#x6d;l&#45;&#x64;&#x65;v&#45;&#117;&#110;s&#117;b&#115;&#x63;&#114;&#x69;b&#101;&#64;l&#x69;&#x73;&#116;s&#x2e;&#x78;&#109;&#x6c;&#x2e;or&#x67;</a>
subscribe: <a class="moz-txt-link-abbreviated" href="mailto:x&#109;&#108;&#45;de&#118;&#45;s&#117;b&#x73;&#99;r&#x69;&#x62;&#101;&#x40;&#x6c;&#105;&#115;t&#x73;.xm&#x6c;&#46;o&#114;g">x&#109;&#108;&#45;de&#118;&#45;s&#117;b&#x73;&#99;r&#x69;&#x62;&#101;&#x40;&#x6c;&#105;&#115;t&#x73;.xm&#x6c;&#46;o&#114;g</a>
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

  </pre>
</blockquote>


</font></td></tr></table>
]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30050.html</link><pubDate>Mon, 09 Nov 2009 21:21:34 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I think, I need to give up with my arguments in this thread. The
concepts now seem to go into my head. Nobody so far seem to agree with
my arguments. It seems, I was wrong.

Sorry for wasting anybody's time.

On Mon, Nov 9, 2009 at 3:34 PM, David Carlisle &lt;dav&#105;&#100;&#x63;&#x40;&#110;a&#103;.co.u&#107;&gt; wrote:
&gt;&gt; The spec seems to suggest that <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> documents are valid only if a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>
&gt;&gt; is associated with the XML document.
&gt;
&gt; That is not a &quot;suggestion&quot;. valid is a technical term defined in the XML
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> and that's a necessary condition for validity.
&gt;
&gt;&gt; I don't mind validating XML documents with other technologies like
&gt;&gt; RelaxNG or Schematron, if there is a need for me to do so. But I
&gt;&gt; think, existence of technologies like RelaxNG or Schematron cannot be
&gt;&gt; an excuse for XML spec, not to mention <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> within it as a validating
&gt;&gt; technology.
&gt;
&gt; Whether or not a document <a title="Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validates against an XSD</a> or schematron schema
&gt; has no bearing on whether or not it is a valid as opposed to merely well
&gt; formed XML document. You seem to want &quot;valid&quot; to mean validated against
&gt; any schema language of your choice, that's OK (but confusing) if used in
&gt; conversation, but it is not the way the term &quot;valid&quot; is defined in XML.
&gt;
&gt;
&gt; XSD, RelaxNG, Schematron all depend on XML; not the other way round. They
&gt; require normative references to XML, it would be entirely backwards (or
&gt; worse, circular) for XML to reference them.
&gt;
&gt; David



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40050.html</link><pubDate>Mon, 09 Nov 2009 16:11:29 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I think PrinceXML is a good example of when <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>+CSS can be useful. But
except that we have files like <a title="RSS" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/feeds/">RSS</a>, I find it a bad idea to use CSS to
style XML for the web to make it look like HTML/XHTML.

The browsers don't have a default <a title="Stylesheet Designer" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/publisher1/publisher1.html">stylesheet</a> to use. When you use
XHTML you only need to style what you want to be different from the
default stylesheet in the browser. When styling your own XML you must
style everything yourself.

Also search engines benefit from a known markup language like XHTML:
Headings, paragraphs, lists, tables, making it easier to put special
importance to content, judged from how it is marked-up. Using your own
markup, it is much more difficult for a search engine like Google to
tell headings, tables, lists, etc, apart.

Also screen readers used by blind people, etc, read the source code.
Homegrown markup, making sense when displayed with CSS in a browser,
is meaningless in a screen reader not knowing when to announce
&quot;title&quot;, &quot;ordered list of 5 items&quot;, heading, table, etc, to make a
webpage easier to understand when read aloud.

Cheers,
Jesper Tverskov
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80050.html</link><pubDate>Mon, 09 Nov 2009 15:56:55 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>


&gt; Sorry for wasting anybody's time.

arguments are never a waste of time.
The list would be fairly pointless without them.

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, <a title="DOM XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dom.html">United Kingdom</a>.

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

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50050.html</link><pubDate>Mon, 09 Nov 2009 10:44:59 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>


&gt; The spec seems to suggest that <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> documents are valid only if a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>
&gt; is associated with the XML document.

That is not a &quot;suggestion&quot;. valid is a technical term defined in the XML
<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> and that's a necessary condition for validity.

&gt; I don't mind validating XML documents with other technologies like
&gt; RelaxNG or Schematron, if there is a need for me to do so. But I
&gt; think, existence of technologies like RelaxNG or Schematron cannot be
&gt; an excuse for XML spec, not to mention <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> within it as a validating
&gt; technology.

Whether or not a document <a title="Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validates against an XSD</a> or schematron schema
has no bearing on whether or not it is a valid as opposed to merely well
formed XML document. You seem to want &quot;valid&quot; to mean validated against
any schema language of your choice, that's OK (but confusing) if used in
conversation, but it is not the way the term &quot;valid&quot; is defined in XML.


XSD, RelaxNG, Schematron all depend on XML; not the other way round. They
require normative references to XML, it would be entirely backwards (or
worse, circular) for XML to reference them.

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, <a title="DOM XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dom.html">United Kingdom</a>.

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

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20050.html</link><pubDate>Mon, 09 Nov 2009 10:04:52 GMT</pubDate></item><item><title>RE:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; 
&gt; Apart from the above examples, how common is it to actually 
&gt; style <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> with CSS? On the web and inside &quot;systems&quot;?
&gt; 

I haven't seen it done much in anger. It's an attractive option at first
sight, but has the disadvantage that when you hit the limits of what you can
do with CSS, you have to throw everything away and switch to a different
technology.

Regards,

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10050.html</link><pubDate>Mon, 09 Nov 2009 09:28:54 GMT</pubDate></item><item><title>XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi list

All text <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a> about <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> have a pretty long chapter about how to style
XML with CSS. Almost all new browsers do that when we click on an <a title="XML
file" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_file_explorer.html">XML
file</a> showing a nicely indented XML tree. Most browsers also have some
JavaScript+CSS presenting <a title="RSS" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/feeds/">RSS</a> XML documents as if they were webpages.

Apart from the above examples, how common is it to actually style XML
with CSS? On the web and inside &quot;systems&quot;?

If we want to display XML in a browser, it seems much more natural and
have many benefits, to transform that XML to a well-known and
well-supported XML Application like XHTML made for the purpose.

Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00050.html</link><pubDate>Mon, 09 Nov 2009 09:18:13 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Thanks, David for the insights.

looking at the following section of XML 1.0 fifth edition
specification, http://www.w3.org/TR/2008/REC-xml-20081126/#proc-types

&quot;Validating and Non-Validating Processors&quot;
The spec seems to suggest that XML documents are valid only if a DTD
is associated with the XML document.
But I think, that's not entirely true given that XSD is also another
XML validation language from W3C XML activity.

I don't mind validating XML documents with other technologies like
RelaxNG or Schematron, if there is a need for me to do so. But I
think, existence of technologies like RelaxNG or Schematron cannot be
an excuse for XML spec, not to mention XSD within it as a validating
technology.

On Sun, Nov 8, 2009 at 9:01 PM, David Carlisle &lt;&#100;avid&#x63;&#64;&#x6e;a&#x67;&#46;c&#111;.&#117;&#107;&gt; wrote:
&gt; essentially for the same reason that XSD should not be referenced from
&gt; the xml spec. XSD (like Relax NG, XSLT etc) all work on the infoset
&gt; produced by parsing an XML document, thus they require an XML parser to
&gt; provide them input, to expand entities etc.
&gt;
&gt; DTD processing on the other hand does not work by taking an infoset as
&gt; input but is instead a modified parser that reports validation outcomes.
&gt;
&gt; XSD can not define entities as it is too late in the chain. If the
&gt; document uses entity references that are not defined to the parser then
&gt; the document is in error (or not well formed if there is no external DTD
&gt; reference at all).



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80040.html</link><pubDate>Mon, 09 Nov 2009 09:03:59 GMT</pubDate></item><item><title>Re:  XML and CSS</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Jesper Tverskov wrote:
&gt; All text <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a> about <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> have a pretty long chapter about how to style
&gt; XML with CSS. Almost all new browsers do that when we click on an XML
&gt; file showing a nicely indented XML tree. Most browsers also have some
&gt; JavaScript+CSS presenting <a title="RSS" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/feeds/">RSS</a> XML documents as if they were webpages.
&gt; 
&gt; Apart from the above examples, how common is it to actually style XML
&gt; with CSS? On the web and inside &quot;systems&quot;?

It's not very common, though it does get use.  I've used CSS many times 
to make it easier to explore an XML document without the pointy brackets 
or hierarchy.

More formally, I've heard many good things about Prince, which <a title="XML to PDF Examples" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_to_pdf.html">generates 
PDF from XML</a> and CSS:

http://www.princexml.com/<a title="overview" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">overview</a>/

The main problem I had early on in displaying XML with CSS on the public 
Web was Internet <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_file_explorer.html">Explorer</a>'s lack of support for the display properties, 
apparently for performance reasons, which has since improved.

I wrote a now out-of-date series of articles on XML and CSS for XML.com 
back in 2000.  The summary table does a nice <a title="job " class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/jobs.html">job </a>of describing the state 
of the art at the last moment web developers actually seemed interested 
in using XML directly:

http://www.xml.com/pub/a/2000/05/03/browserchart/index.html

The failure of XLink is, I think, the other reason XML didn't get 
anywhere on the public web.  My XLink talks were frequently my most 
popular, full of developers looking for better hypertext possibilities. 
They generally left with a big but unfulfilled wishlist.

&gt; If we want to display XML in a browser, it seems much more natural and
&gt; have many benefits, to transform that XML to a well-known and
&gt; well-supported XML Application like XHTML made for the purpose.

If you need transformations to reorder your document, make links work, 
or perform calculations, this is completely true.  Otherwise, it's a 
fairly tremendous waste of time.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70050.html</link><pubDate>Mon, 09 Nov 2009 08:10:31 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
David Carlisle wrote:
&gt;&gt; Sorry for wasting anybody's time.
&gt; 
&gt; arguments are never a waste of time.
&gt; The list would be fairly pointless without them.

Indeed.  And it's often only through conversation that we can figure out 
what we really think!

That was definitely not a waste of time.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60050.html</link><pubDate>Mon, 09 Nov 2009 07:58:50 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; The spec seems to suggest that <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> documents are valid only if a <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>
&gt; is associated with the XML document.

Right.  In the XML spec, valid has a very string meaning and it refers 
only to DTD's.

&gt; But I think, that's not entirely true given that <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> is also another
&gt; XML validation language from <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> XML activity.

No, it is true.  You might notice some people <a title="Using XML Schema to Model XML Data" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">using the term schema</a>-valid 
to describe a document that meets XSD <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/open_xsd_validation.html">schema validation</a>.  This is why they 
(we:) do that.

        /r$

--
STSM, WebSphere Appliance Architect
https://www.ibm.com/developerworks/mydeveloperworks/<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/blogs/">blogs</a>/soma/

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90040.html</link><pubDate>Mon, 09 Nov 2009 00:31:22 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:

&gt; My point was, that <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> and <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> (and also XML) are &quot;<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a>&quot; specs. RelaxNG
&gt; is an <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a> specification. I haven't seen W3C specs, recommendating
&gt; users to use OASIS specs, *and* mentioning these statements in W3C
&gt; specs themselves. Or do we have any instances of W3C specs, where W3C
&gt; recommends users to use certain OASIS specs. This more so doesn't
&gt; happen if W3C and OASIS develop competing languages. But I don't see
&gt; XSD and RelaxNG as competing to each other.

If you will look at newer document formats specified by W3C they use
RELAX NG as a primaty schema language -- simply because in RELAX NG it
is easier to express necessary constraints then in W3C XML Schema (and
sometimes RELAX NG is the only grammar based schema language in which
constraints can be specied). Examples are MathML 3, SVG 1.2, XHTML 2.0
was also using RELAX NG.

If you look at validator.nu and Relaxed -- the two validators who have
much better error coverage then validator.w3.org for web pages, you will
find that they are based on RELAX NG schemas + (Schematron or special
check written in procedural code).

&gt; Looking at the XML spec, the XML spec seems to convey that DTD is an
&gt; inseparable part of XML definition. But if DTD is inseparable from
&gt; XML, why cannot XML spec say that XSD can be used for validation as
&gt; well (since XSD is a better XML validation technology, and is also
&gt; developed by W3C)?

Standard are <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a> of code not textbooks.

&gt; I even think, that a future XML spec other than referring to XSD as an
&gt; alternative XML validation technology with DTDs, should also provide
&gt; means to embed XML Schema's inline the XML documents, as we do with
&gt; DTDs.

There is already spec which provides this capability -- XML Namespaces.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: j&#x69;rk&#x61;&#x40;ko&#x73;&#101;&#x6b;.c&#122;      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a>/<a title="xsl fo example" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xsl_fo.html">XSL-FO document</a> processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

</pre>
<p><a href="pgp00000.pgp" >OpenPGP digital signature</a></p>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70040.html</link><pubDate>Sun, 08 Nov 2009 23:09:18 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; My point was, that <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> and <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> (and also <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>) are &quot;<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a>&quot; specs. RelaxNG
&gt; is an <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a> specification. I haven't seen W3C specs, recommendating
&gt; users to use OASIS specs, *and* mentioning these statements in W3C
&gt; specs themselves. Or do we have any instances of W3C specs, where W3C
&gt; recommends users to use certain OASIS specs. This more so doesn't
&gt; happen if W3C and OASIS develop competing languages. But I don't see
&gt; XSD and RelaxNG as competing to each other.
&gt;
&gt;   
W3C SVG for example <a title="How To Build XML Schemas" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">uses RELAX NG not XSD</a>.
                      http://www.w3.org/TR/SVGTiny12/

&gt; My simple point was, that XML spec mentions DTD as a validation
&gt; technology but it doesn't mention today XSD it's spec. And XSD is
&gt; another validation technology from W3C, which is vastly better than
&gt; DTD and is a pretty stable language now.
&gt;   
Pretty stable? How many full implementations are there of XSD 1.1 today 
(apart from Michael's?)  

Microsoft isn't supporting it AFAIK.   Libxml's front page says it only 
has a partial implementation of XSD 1.0.  And Mukul's <a title="Validating XML with Xerces2" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/xerces.html">Xerces</a> release 
won't be out until December, will it, hence the spruiking I guess?

&gt;&gt; Just like picking a programming language you
&gt;&gt; are free to pick the validation method you want to use.
&gt;&gt;     
&gt;
&gt; I agree. But my point as I have been saying in this thread, was that
&gt; XML mentions DTD, but it doesn't mention XSD. This gives a naive user
&gt; a feeling, that DTD is something which is integral to XML, while XSD
&gt; is not. I believe, this should be corrected in XML spec.
&gt;   
Err...the naive user is correct. The entity mechanism is integrated in 
XML, it is not a severable layer.  Entities are declared with the DTD 
mechanism; XSD provides no alternative to this.
 
Cheers
Rick Jelliffe
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10040.html</link><pubDate>Sun, 08 Nov 2009 20:21:44 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Len Bullard wrote:
&gt; No.  I think it was a way of saying something simple and familiar will work
&gt; until something more precise and powerful can replace it.  It was a
&gt; stabilizer in a time of incredible shifts and unpredictable fortunes.  It's
&gt; clear that validity is not intrinsic to markup functionally.  It is just as
&gt; clear that validation is useful to applications.
&gt;   
<a title="DTDs" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTDs</a> provide a convenient summary and test of a document; they allowed 
and encouraged a basic level of test-driven development in an area with 
a lot of cowboy programmers.

When the summary becomes larger than the document, and the test becomes 
more difficult to debug than to do by hand, then DTDs are not much use. 
Which is why so many small <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> documents don't have them.

But you need a fairly large document for an <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> schema to be useful to 
programmers as a summary, and you need a very complex document before 
the schema is less difficult to install and debug than just inspecting 
the documents or writing your own tests.

The main problem with DTDs is not that they are flawed (they are nice 
simple, modest, inoffensive little things), but that that DTDs limited 
the expectations of the initial XSD Schema WG, many of whom had never 
written a schema or DTD IIRC*, about what a schema was supposed to do.  
Questions that could have been asked early include &quot;Can this support 
HTML?&quot;, &quot;Can this support SVG?&quot;, &quot;Can this support RDF?&quot;, &quot;Can this 
support <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a>?&quot;, &quot;Can this support <a title="RSS" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/feeds/">RSS</a>?&quot;   Instead, what we got was &quot;Can 
this support Postal Addresses?&quot;

Cheers
Rick Jelliffe

* When I was on the XSD Working Group (a decade ago), any reference I 
made to &quot;idiomatic usages of XML&quot; seemed to be met with utter 
incomprehension and dismissal, as if it were an eccentric concern.  
Consequently, at the last minute, when XSD was finally tested against 
real schemas such as HTML, it was found to need revisions: the whole 
complex-type derivation system was found inadequate and the &lt;redefine&gt; 
escape hatch had to be provided, for example. Now, after 10 years, we 
can see some recognition of this, in that XSD 1.1 has some idea that 
attributes might actually be used to make decisions on content. (Of 
course, instead of the neat RELAX NG way, XSD implements it by tacking 
it on outside content models, the chance for more bogus complexity being 
too irresistable, I suppose.) 

 
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00040.html</link><pubDate>Sun, 08 Nov 2009 20:01:32 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; Since <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is already mentioned in the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> spec, why not specify <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> as
&gt; well as a normative reference to a future XML spec?  
Because XSD is complete crap that utterly betrayed the premises and 
goals of XML perhaps?
&gt; I think, mentioning XSD in the XML spec will encourage users to use
&gt; XSD as a better validation technology, than DTD. Mentioning this as a
&gt; reference link in XML spec, looks like a very minor and non disruptive
&gt; addition to me, for the XML spec
The way <a title="An Introduction to XML Schema Development" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">to use XSD</a> as a better validation technology is to learn from 
it, rather than encourage it.

Cheers
Rick
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90030.html</link><pubDate>Sun, 08 Nov 2009 19:40:29 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 8, 2009 at 2:51 PM, Rick Jelliffe &lt;rjel&#x6c;&#x69;ffe&#64;&#97;&#108;lette&#x2e;com.au&gt; wrote:
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> SVG for example <a title="How To Build XML Schemas" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">uses RELAX NG not XSD</a>.
&gt; Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  http://www.w3.org/TR/SVGTiny12/

Thanks for the reference.

&gt; Pretty stable? How many full implementations are there of XSD 1.1 today
&gt; (apart from Michael's?)

It seems, <a title="Validating XML with Xerces2" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/xerces.html">Xerces-J</a>' s XSD 1.1 implementation is also on the way.

I also feel, number of complete implementations of a spec is not the
only measure of usefulness of any language. The language being much
complex and providing lot of <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/buy/compare.html">functionality</a>, in fact I think raises the
bar on quality and skills of implementers.

&gt; And Mukul's Xerces release won't be
&gt; out until December, will it, hence the spruiking I guess?

I am just one of the persons, who has contributed somewhat to Xerces-J
XSD 1.1 implementation. It's not fair to say, that Xerces is mine :(
But I like Xerces very much.

&gt; Err...the naive user is correct. The entity mechanism is integrated in XML,
&gt; it is not a severable layer. Â Entities are declared with the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> mechanism;
&gt; XSD provides no alternative to this.

I am really not sure, why entities are not allowed to be defined in
XSD. I believe, there is some design principle behind that, and also
the XML Schema WG must be aware about this issue I believe.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30040.html</link><pubDate>Sun, 08 Nov 2009 19:14:50 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sun, Nov 8, 2009 at 2:10 PM, Rick Jelliffe &lt;r&#106;&#x65;&#108;l&#105;f&#x66;&#101;&#64;a&#x6c;&#108;&#x65;t&#116;e&#46;&#x63;&#111;&#109;&#x2e;au&gt; wrote:
&gt; Because <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> is complete crap that utterly betrayed the premises and goals of
&gt; <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> perhaps?

Rick, I do not know why you condemn XSD so much :) I feel, XSD doesn't
deserve so much condemnation.
If somebody doesn't like certain technologies for whatever reasons,
they should simply not use it, instead of saying words like &quot;crap&quot;,
&quot;poisonous&quot; and so on.
There are individuals and organizations who have written
<a title="How To Build XML Schemas" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">implementations for XSD</a>, and I believe uncountable numbers of XML
instances get validated each day with XSD. Certainly, innumerable
number of people who are currently using XSD, do not lack good
judgement I believe :)

&gt; The way to use XSD as a better validation technology is to <a title="learn" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/learn_xml.html">learn</a> from it,
&gt; rather than encourage it.

I don't agree that, a technology from <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> (viz XSD) which is heavily
<a title="deployed" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/deployment/">deployed</a> currently, and has a mandate from W3C to improve itself (i.e,
XSD ver 1.1) should be discouraged.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20040.html</link><pubDate>Sun, 08 Nov 2009 18:57:29 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; I haven't seen <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> 
&gt; specs, recommendating users to use <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a> specs, *and* 
&gt; mentioning these statements in W3C specs themselves. Or do we 
&gt; have any instances of W3C specs, where W3C recommends users 
&gt; to use certain OASIS specs. 

I don't think you've looked very hard. The WDs for XHTML 2.0 and for MathML3
are two examples I quickly found of W3C specs that provide RelaxNG schemas.
In MathML we find the statements:

* MathML documents should be <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validated using the RelaxNG Schema</a> for MathML

* MathML fragments can be validated using the XML Schema for MathML

(see http://www.w3.org/TR/2009/WD-MathML3-20090924/appendixa.html)

I'm sure there are many other examples. These conspiracy theories about W3C
are quite unfounded. W3C does try, on the whole, to keep its specs
architecturally aligned with each other, so there is obviously going to be
some encouragement to working groups to follow the party line (that's why
<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xquery.html">XQuery</a> ended up being a superset <a title="Free XPath Tools" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xpath.html">of XPath</a> rather than a completely different
language), but in the end, the technical decisions are made by individual
WGs - which means, in effect, by individuals like you and me, sometimes
influenced to a greater or lesser degree by the companies they work for. 

Regards,

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60040.html</link><pubDate>Sun, 08 Nov 2009 17:32:38 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>


&gt; I am really not sure, why entities are not allowed to be defined in
&gt; <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>. I believe, there is some design principle behind that, and also
&gt; the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> Schema WG must be aware about this issue I believe.

essentially for the same reason that XSD should not be referenced from
the xml spec. XSD (like Relax NG, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xslt.html">XSLT</a> etc) all work on the infoset
produced by parsing an XML document, thus they require an <a title="free xml parser" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/parser.html">XML parser</a> to
provide them input, to expand entities etc.

<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> processing on the other hand does not work by taking an infoset as
input but is instead a modified parser that reports validation outcomes.

XSD can not define entities as it is too late in the chain. If the
document uses entity references that are not defined to the parser then
the document is in error (or <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_well_formed.html">not well formed</a> if there is no external DTD
reference at all).

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, <a title="DOM XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dom.html">United Kingdom</a>.

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

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40040.html</link><pubDate>Sun, 08 Nov 2009 15:31:21 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; On Sun, Nov 8, 2009 at 2:10 PM, Rick Jelliffe &lt;r&#106;el&#x6c;&#105;ff&#x65;&#64;&#97;&#108;&#x6c;e&#116;&#116;&#x65;&#46;c&#x6f;&#x6d;.&#x61;u&gt; wrote:
&gt;&gt; Because <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> is complete crap that utterly betrayed the premises and goals of
&gt;&gt; <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> perhaps?
&gt; 
&gt; Rick, I do not know why you condemn XSD so much :) I feel, XSD doesn't
&gt; deserve so much condemnation.
&gt; If somebody doesn't like certain technologies for whatever reasons,
&gt; they should simply not use it, instead of saying words like &quot;crap&quot;,
&gt; &quot;poisonous&quot; and so on.

Sorry, Mukul - sometimes it's better to be honest and spare others the 
pain of discovering the truth too late.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50040.html</link><pubDate>Sun, 08 Nov 2009 12:29:30 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sat, Nov 7, 2009 at 10:42 PM, Simon St.Laurent &lt;&#x73;&#x69;m&#111;&#110;stl&#x40;s&#105;&#x6d;&#x6f;nstl.&#x63;o&#109;&gt; wrote:
&gt; It's supposed to hurt <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>. Â If you're that attached to XSD that complaints
&gt; about XSD hurt you, I'm afraid you may be too attached to the technology.

I am not too attached to any technology, whatsoever. Any technology
that can solve business and societal issue, is good for me.

&gt; Unfortunately, it's also brittle, barely able to represent some common
&gt; structures, offers extensibility mechanisms that aren't very extensible, and
&gt; has lots of corners that aren't implemented consistently.

As I wrote earlier, I don't intend to judge the merits of XSD language
as such, or compare all or any of <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> Schema language.

Any language (I mean, the XML Schema languages as we are discussing
here) has certain design goals, and all computational languages are
generally nice if they have met their stated design goals. What people
are saying about RelaxNG or Schematron cannot apply to XSD, as <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">design
goals of XSD</a> were different. And this should be true vice versa as
well.
If a community is concerned about <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_feature_overview.html">features</a> of any of the languages,
the language can modify itself probably keeping in mind, various
factors involved like cost, benefits and so on.

&gt; Worst of all, its <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a>-blessed status often ends conversation, which can be
&gt; poisonous for <a title="projects" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_project.html">projects</a> that would have done better with <a title="DTDs" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTDs</a>, RELAX NG,
&gt; Schematron, a combination of those, no schema whatsoever, or something else
&gt; entirely.

I don't think, saying phrases like &quot;poisonous&quot; helps to solve a design
mistake in a spec, from a standard body :(

&gt; Politically, of course it's possible. Â And maybe the W3C, which is normally
&gt; (though not always) fond of its works, will decide to add such a reference.

I am not suggesting to solve this issue politically. I intend to get
this solved, as a sound computational design issue.



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80030.html</link><pubDate>Sun, 08 Nov 2009 10:05:56 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Thanks, Jim for some nice comments.

My intention was not to say, that <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is now not useful. As you
rightly said, DTD is still preferred over <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> for certain class of
problems.

My averment was to give XSD the same status as DTD, as a XML
validation technology in W3C XML spec.

On Sun, Nov 8, 2009 at 1:31 AM, Jim Melton &lt;&#106;&#x69;m.m&#x65;&#108;to&#x6e;&#x40;a&#99;m&#46;o&#x72;g&gt; wrote:
&gt; I'm one of those people who don't fall in love with technologies for their
&gt; own sake, regardless of how <a title="beautiful" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_screenshots.html">beautiful</a> and/or useful they might be. Â I do
&gt; have a fondness for elegance, as well as for practicality, but I believe
&gt; that technology provides tools and nothing more. Â XSD is one such tool, DTD
&gt; is another. Â Each has its uses, and I use them both.
&gt;
&gt; As Simon has pointed out, DTDs do a great job for document-centric
&gt; applications where there is little that needs to be known about the
&gt; semantics of atomic <a title="data types" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/schema_aware.html">data types</a>. Â I use DTDs for my editing work on the SQL
&gt; standard and on W3C documents, as well as for a host of other documents I do
&gt; in other aspects of my day job and my life.
&gt;
&gt; Schemas are often very clumsy for validating &quot;ustructured&quot; textual
&gt; documents, such as fiction <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a>, biographies, and the like. Â But schemas
&gt; (XSD being the W3C-defined instance of this technology) are very useful when
&gt; dealing with structured documents, especially those that contain lots of
&gt; traditional data and/or those that are generated specifically from data (not
&gt; to mention those that *are* data expressed in an XML tree).
&gt;
&gt; I get very, very frustrated when I'm trying to drive a nail into their wall
&gt; using a screwdriver, as well as when I'm trying to get a screw out of the
&gt; wall using a hammer. Â That doesn't make me hate the screwdriver or the
&gt; hammer -- nor, for that matter, to love either one when I figure out that I
&gt; got it backwards and start using the proper tool for each job. Â They're just
&gt; tools. Â Pick the right one for your job.
&gt;
&gt; If your management is forcing you <a title="An Introduction to XML Schema Development" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">to use XSD</a> for unstructured document
&gt; validation (or DTDs for highly structured data validation), don't hate XSD
&gt; (or DTD)...hate the bureaucracy that limits your choice of tool!
&gt;
&gt; Hope this helps,
&gt; Â  Jim
&gt;
&gt; ========================================================================
&gt; Jim Melton --- Editor of ISO/IEC 9075-* (SQL) Â  Â  Phone: +1.801.942.0144
&gt; Â Chair, W3C XML Query WG; XQX (etc.) editor Â  Â  Â  Fax : +1.801.942.3345
&gt; <a title="Using XML and Oracle" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/oracle.html">Oracle</a> Corporation Â  Â  Â  Â Oracle Email: jim dot melton at oracle dot com
&gt; 1930 Viscounti Drive Â  Â  Â Standards email: jim dot melton at acm dot org
&gt; Sandy, UT 84093-1063 USA Â  Â  Â  Â  Â Personal email: jim at melton dot name
&gt; ========================================================================



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70030.html</link><pubDate>Sun, 08 Nov 2009 09:52:36 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sat, Nov 7, 2009 at 10:15 PM, Dan Vint &lt;d&#x76;&#105;n&#116;&#64;&#x64;&#118;&#105;n&#x74;&#46;&#x63;o&#109;&gt; wrote:
&gt; Why and where do you stop? RelaxNG is another standard for providing
&gt; validation and has a different/additional set of capabilities that are
&gt; missing in both <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">schema</a> and <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> validation.

My point was, that XSD and DTD (and also XML) are &quot;W3C&quot; specs. RelaxNG
is an <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a> specification. I haven't seen W3C specs, recommendating
users to use OASIS specs, *and* mentioning these statements in W3C
specs themselves. Or do we have any instances of W3C specs, where W3C
recommends users to use certain OASIS specs. This more so doesn't
happen if W3C and OASIS develop competing languages. But I don't see
XSD and RelaxNG as competing to each other.

My simple point was, that XML spec mentions DTD as a validation
technology but it doesn't mention today XSD it's spec. And XSD is
another validation technology from W3C, which is vastly better than
DTD and is a pretty stable language now.

I think, we are not debating just now about the shortcomings of XSD.
Even DTD has shortcomings (I think, that's why XSD was developed), but
it's mentioned in the XML spec. I think, even RelaxNG has had certain
design goals, and it doesn't provides some of the capabilities with
XSD or DTD provides.

Looking at the XML spec, the XML spec seems to convey that DTD is an
inseparable part of XML definition. But if DTD is inseparable from
XML, why cannot XML spec say that XSD can be used for validation as
well (since XSD is a better XML validation technology, and is also
developed by W3C)?

&gt; The history of XML is SGML and the use of DTDs. DTDs and SGML were initially intended
&gt; for textual manual with little to know <a title="data types" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/schema_aware.html">data types</a>. A DTD is powerful enough
&gt; to handle that requirement very well without overly complicating the
&gt; specification of the document content.

That's history, and was the starting point I guess. But now,
data/messages is another important paradigm other than documents.
Keeping in view the evolution of XML (from documents to &quot;documents &amp;
data types&quot;), XML validation is now an important concern for any kind
of XML data, whether that can be documents or data/messages.

&gt; Just like picking a programming language you
&gt; are free to pick the validation method you want to use.

I agree. But my point as I have been saying in this thread, was that
XML mentions DTD, but it doesn't mention XSD. This gives a naive user
a feeling, that DTD is something which is integral to XML, while XSD
is not. I believe, this should be corrected in XML spec.

&gt; Would you have the standard for C point a
&gt; programmer to <a title="Java" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/configure_jre.html">Java</a>, C#, etc just because they are newer and provide the
&gt; same/similar/better <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/buy/compare.html">functionality</a>?

I agree. That won't be correct. A C spec cannot point users to Java, C# etc.
But I think, this argument doesn't map well to DTD and XSD case.

I even think, that a future XML spec other than referring to XSD as an
alternative XML validation technology with DTDs, should also provide
means to embed XML Schema's inline the XML documents, as we do with
DTDs.

I just could find this reference where Microsoft support inline XSD's
starting from <a title="MSXML4.0" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/microsoft/msxml.html">MSXML 5.0</a> (ref,
http://msdn.microsoft.com/en-us/library/ms759142(VS.85).aspx). I
think, this design principle can be incorporated to the XML spec (or
is this already defined somewhere in W3C specs?).

I could also find this reference related to this,
http://xsd.stylusstudio.com/2005Mar/post03007.htm, which seem to
explain this design aspect from the point of view of XML spec.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60030.html</link><pubDate>Sun, 08 Nov 2009 07:53:58 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sat, Nov 7, 2009 at 7:38 PM, Simon St.Laurent &lt;&#115;&#105;m&#x6f;&#110;&#115;&#x74;&#108;&#64;&#115;im&#111;&#110;&#x73;t&#108;.&#99;om&gt; wrote:
&gt; Â Leaving aside the question of how damaging <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a> has
&gt; been

I am not sure, how to respond to this. I guess this statement
certainly hurts the XSD community, and it certainly does hurt me.

I don't know, how a technology (i.e, XSD..) that is capable of doing
XML validation (and XSD does this well), and is implemented by number
of XML products, which is implemented widely in XML applications (I
can see uncountable XML instances been <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validated by XSD</a> every day),
can be damaging.

&gt; I suspect that counting validation as a fourth component might have eased
&gt; some problems all around, but that wasn't clear at the outset. That kind of
&gt; change seems like a <a title="project" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_project.html">project</a> for XML 2.0, not for an edition change.

I'll be happy with XSD being specified in XML 2.0, if it can be.

&gt; (And, of course, I'd argue hard against any effort to incorporate W3C XML
&gt; Schema explicitly into XML 2.0....)

I am asking only for a simple reference in the XML spec, pointing to
the XSD spec and ideally saying somewhere in the XML spec (2.0
perhaps), that XSD is another validation technology from W3C similar
to <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>.
I still cannot think, why anybody can disagree to this. XSD and DTD
both belong to W3C, and both are W3C recommendations, so I don't think
why this simple modification to XML spec cannot take place.



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post70020.html</link><pubDate>Sat, 07 Nov 2009 21:42:44 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
On Sat, Nov 7, 2009 at 7:04 PM, Michael Sokolov &lt;sok&#111;lo&#x76;&#x40;&#105;f&#x61;&#99;&#x74;&#x6f;r&#x79;&#x2e;com&gt; wrote:
&gt; There seems to have
&gt; been an insistence on making validity a property of the document, rather
&gt; than a separate concern.

I think, presence of <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> in the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> spec exactly says this (i.e,
validity is a concept inseparably tied to XML markup). But of course,
XML document validity is optional for applications to perform.

Since DTD is already mentioned in the XML spec, why not specify <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> as
well as a normative reference to a future XML spec? I think, even an
errata to a current XML spec can fix this. I am not sure, if another
edition of XML is underway [1]. If that's [1] happening at <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> at the
moment, it may even contain this normative reference I am suggesting.

Even W3C says, that XSD replaces DTD as a better XML validation
technology. And XSD 1.0 version has been in existence since many years
now, and implemented by quite a few XML products, and also <a title="deployed" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/deployment/">deployed</a>
widely in end user applications.
Therefore, why XML standard cannot say that XSD is a validation
technology like what DTD is?

I think, mentioning XSD in the XML spec will encourage <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">users to use
XSD</a> as a better validation technology, than DTD. Mentioning this as a
reference link in XML spec, looks like a very minor and non disruptive
addition to me, for the XML spec.



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40020.html</link><pubDate>Sat, 07 Nov 2009 20:54:47 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; Complex data structures seem to lead to loathing...

I think we have a terrible tendency in this industry to confuse aesthetic
and utilitarian judgements. A thing of great ugliness can sometimes also be
of great utility; conversely, there are languages that are <a title="beautiful" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_screenshots.html">beautiful</a> but
useless.

Almost everyone finds <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a> ugly. But a lot of people also find it
useful.

Regards,

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20030.html</link><pubDate>Sat, 07 Nov 2009 19:43:49 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; 
&gt; I don't know, how a technology (i.e, <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>..) that is capable 
&gt; of doing XML validation (and XSD does this well), and is 
&gt; implemented by number of XML products, which is implemented 
&gt; widely in XML applications (I can see uncountable XML 
&gt; instances been <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validated by XSD</a> every day), can be damaging.

I think Simon is probably thinking in terms of opportunity costs. That is,
the idea that if this technology hadn't been so widely adopted, the
community might have adopted something better instead, and gained a better
return on its investment.

He might also be thinking that for some people who have adopted the
technology, the cost has been greater than the benefit. I think it would be
hard to demonstrate that objectively.

&gt; 
&gt; I am asking only for a simple reference in the XML spec, 
&gt; pointing to the XSD spec and ideally saying somewhere in the 
&gt; XML spec (2.0 perhaps), that XSD is another validation 
&gt; technology from W3C similar to <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>.
&gt; I still cannot think, why anybody can disagree to this. XSD 
&gt; and DTD both belong to W3C, and both are W3C recommendations, 
&gt; so I don't think why this simple modification to XML spec 
&gt; cannot take place.
&gt; 

We're dealing here with specifications: a legalistic contract between the
implementor of an <a title="free xml parser" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/parser.html">XML parser</a> and the user of an XML parser. You can write a
fully conformant XML parser without ever knowing that XSD even exists.
Furthermore, you can use XML without ever knowing that XSD exists.
Therefore, XSD doesn't need to be part of the XML contract. Equally, you
wouldn't want XML to be mentioned in the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_other.html">Unicode</a> specifications, because
Unicode has no dependency on XML, and would still be of value if everyone
suddenly decided to abandon XML and move to YML instead.

It's of great value that specifications should NOT have unnecessary
dependencies. The fact that XML links normatively to DTDs is undoubtedly a
bad thing. In this respect the architecture of specifications is very like
the architecture of software implementations: you want the components to be
as loosely coupled as you can achieve, to allow each component to evolve or
to be replaced with minimum impact on the other components.

Regards,

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00030.html</link><pubDate>Sat, 07 Nov 2009 17:37:41 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
++1

len

-----Original Message-----
From: Jim Melton [<A  HREF="mailto:j&#x69;&#x6d;.m&#x65;&#108;t&#111;n&#64;&#x61;cm&#x2e;&#x6f;&#114;g">mailto:j&#x69;&#x6d;.m&#x65;&#108;t&#111;n&#64;&#x61;cm&#x2e;&#x6f;&#114;g</A>] 
Sent: Saturday, November 07, 2009 2:01 PM
To: &#x78;&#x6d;l&#x2d;&#100;ev&#x40;&#108;&#x69;&#115;&#x74;&#x73;&#46;xml&#46;&#111;r&#103;
Subject: Re:  XML spec and XSD

I'm one of those people who don't fall in love with technologies for 
their own sake, regardless of how <a title="beautiful" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_screenshots.html">beautiful</a> and/or useful they might 
be.  I do have a fondness for elegance, as well as for practicality, 
but I believe that technology provides tools and nothing more.  XSD 
is one such tool, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is another.  Each has its uses, and I use them both.

As Simon has pointed out, DTDs do a great job for document-centric 
applications where there is little that needs to be known about the 
semantics of atomic <a title="data types" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/schema_aware.html">data types</a>.  I use DTDs for my editing work on 
the SQL standard and on W3C documents, as well as for a host of other 
documents I do in other aspects of my day job and my life.

Schemas are often very clumsy for validating &quot;ustructured&quot; textual 
documents, such as fiction <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a>, biographies, and the like.  But 
schemas (XSD being the W3C-defined instance of this technology) are 
very useful when dealing with structured documents, especially those 
that contain lots of traditional data and/or those that are generated 
specifically from data (not to mention those that *are* data 
expressed in an XML tree).

I get very, very frustrated when I'm trying to drive a nail into 
their wall using a screwdriver, as well as when I'm trying to get a 
screw out of the wall using a hammer.  That doesn't make me hate the 
screwdriver or the hammer -- nor, for that matter, to love either one 
when I figure out that I got it backwards and start using the proper 
tool for each job.  They're just tools.  Pick the right one for your job.

If your management is forcing you <a title="An Introduction to XML Schema Development" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">to use XSD</a> for unstructured 
document validation (or DTDs for highly structured data validation), 
don't hate XSD (or DTD)...hate the bureaucracy that limits your choice of
tool!

Hope this helps,
    Jim

========================================================================
Jim Melton --- Editor of ISO/IEC 9075-* (SQL)     Phone: +1.801.942.0144
   Chair, W3C XML Query WG; XQX (etc.) editor       Fax : +1.801.942.3345
<a title="Using XML and Oracle" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/oracle.html">Oracle</a> Corporation        Oracle Email: jim dot melton at oracle dot com
1930 Viscounti Drive      Standards email: jim dot melton at acm dot org
Sandy, UT 84093-1063 USA          Personal email: jim at melton dot name
========================================================================
=  Facts are facts.   But any opinions expressed are the opinions      =
=  only of myself and may or may not reflect the opinions of anybody   =
=  else with whom I may or may not have discussed the issues at hand.  =
========================================================================  


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
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: &#x78;&#109;&#x6c;&#x2d;&#x64;ev-unsubsc&#x72;&#105;b&#101;&#x40;l&#x69;&#x73;&#116;s&#x2e;xm&#x6c;&#46;&#111;&#x72;g
subscribe: &#120;&#x6d;&#108;-d&#101;v&#45;s&#117;&#x62;&#115;&#99;r&#x69;&#98;e&#x40;&#108;&#105;&#115;&#116;s.&#x78;ml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50030.html</link><pubDate>Sat, 07 Nov 2009 17:08:34 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Thanks, Mike for your remarks.

On Sat, Nov 7, 2009 at 3:59 PM, <a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a> &lt;&#x6d;ik&#x65;&#x40;<a title="saxon" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/saxon_xquery_processor.html">saxon</a>&#105;ca.com&gt; wrote:
&gt; It's a basic issue of architectural layering. <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> has a dependency on <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>,
&gt; XML has no dependency on XSD. Nothing in the XML spec is affected if XSD
&gt; changes.
&gt;
&gt; It's bad enough when you're writing a spec tracking the changes in
&gt; technologies you depend on (like <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_other.html">Unicode</a>). Introducing unnecessary
&gt; dependencies for pedagogic or marketing reasons would be a very bad thing to
&gt; do.

Looking at your view points above, I agree to them as good
architectural principles while writing <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> specs.

But I feel, that mentioning XSD as a validation technology for XML
documents, in the XML spec is perhaps a good idea since <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is also
mentioned in the XML spec (which is also a XML validation technology).
I feel, doing so doesn't promote any pedagogic or marketing attitudes
towards XSD.

Reading the XML spec, gives us a feeling (to me at least, I guess)
that DTD is the most important technology for validating XML. Even if
we don't mention specific versions of XSD as validating language for
XML documents (in specific XML standards, like 1.0 5th edition or XML
1.1), I think it's good to mention in references of the XML spec (I
believe, a normative reference to this would also be good in the XML
spec), that XSD is also another XML validation technology from W3C,
which achieves the same task as DTDs do. I think, referring to the
link, http://www.w3.org/XML/Schema in XML specs would serve the
purpose I am suggesting.



-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10020.html</link><pubDate>Sat, 07 Nov 2009 16:19:24 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a> wrote:
&gt;&gt; Complex data structures seem to lead to loathing...
&gt; 
&gt; I think we have a terrible tendency in this industry to confuse aesthetic
&gt; and utilitarian judgements. A thing of great ugliness can sometimes also be
&gt; of great utility; conversely, there are languages that are <a title="beautiful" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_screenshots.html">beautiful</a> but
&gt; useless.

I should probably be clearer - these stories weren't coming from 
architecture astronauts or aesthetes.  They were generally coming from 
people who found themselves trapped by schemas other people had created, 
in which they then had to find a place for their data and processes. 
Some of them came from people who had in fact built those traps for 
themselves.

And doubtless some of the issues were the results of style choices by 
those creating the schemas, not necessarily the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">specification</a> itself.

 &gt; Almost everyone finds <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a> ugly. But a lot of people also find
 &gt; it useful.

Ugliness alone is not a problem - brambles can certainly produce 
delicious fruit.  But brambles also produce spiky thickets that are hard 
to move through, or modify.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30030.html</link><pubDate>Sat, 07 Nov 2009 15:41:06 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I'm one of those people who don't fall in love with technologies for 
their own sake, regardless of how <a title="beautiful" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_screenshots.html">beautiful</a> and/or useful they might 
be.  I do have a fondness for elegance, as well as for practicality, 
but I believe that technology provides tools and nothing more.  <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> 
is one such tool, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is another.  Each has its uses, and I use them both.

As Simon has pointed out, DTDs do a great job for document-centric 
applications where there is little that needs to be known about the 
semantics of atomic <a title="data types" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/schema_aware.html">data types</a>.  I use DTDs for my editing work on 
the SQL standard and on W3C documents, as well as for a host of other 
documents I do in other aspects of my day job and my life.

Schemas are often very clumsy for validating &quot;ustructured&quot; textual 
documents, such as fiction <a title="books" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_book.html">books</a>, biographies, and the like.  But 
schemas (XSD being the W3C-defined instance of this technology) are 
very useful when dealing with structured documents, especially those 
that contain lots of traditional data and/or those that are generated 
specifically from data (not to mention those that *are* data 
expressed in an XML tree).

I get very, very frustrated when I'm trying to drive a nail into 
their wall using a screwdriver, as well as when I'm trying to get a 
screw out of the wall using a hammer.  That doesn't make me hate the 
screwdriver or the hammer -- nor, for that matter, to love either one 
when I figure out that I got it backwards and start using the proper 
tool for each job.  They're just tools.  Pick the right one for your job.

If your management is forcing you <a title="An Introduction to XML Schema Development" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">to use XSD</a> for unstructured 
document validation (or DTDs for highly structured data validation), 
don't hate XSD (or DTD)...hate the bureaucracy that limits your choice of tool!

Hope this helps,
    Jim

========================================================================
Jim Melton --- Editor of ISO/IEC 9075-* (SQL)     Phone: +1.801.942.0144
   Chair, W3C XML Query WG; XQX (etc.) editor       Fax : +1.801.942.3345
<a title="Using XML and Oracle" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/oracle.html">Oracle</a> Corporation        Oracle Email: jim dot melton at oracle dot com
1930 Viscounti Drive      Standards email: jim dot melton at acm dot org
Sandy, UT 84093-1063 USA          Personal email: jim at melton dot name
========================================================================
=  Facts are facts.   But any opinions expressed are the opinions      =
=  only of myself and may or may not reflect the opinions of anybody   =
=  else with whom I may or may not have discussed the issues at hand.  =
========================================================================  

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post40030.html</link><pubDate>Sat, 07 Nov 2009 13:01:10 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a> clarified for me:
&gt; I think Simon is probably thinking in terms of opportunity costs. That is,
&gt; the idea that if this technology hadn't been so widely adopted, the
&gt; community might have adopted something better instead, and gained a better
&gt; return on its investment.

Yes, that's a key part of the argument.  I think the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> generally did a 
good <a title="job " class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/jobs.html">job </a>of <a title="creating XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_doc_wizards.html">creating XML</a> specifications when it was stripping them down 
based on SGML experience.  After that initial process, though, their 
inventions are not nearly as impressive.  Other people and organizations 
did a much better job of creating useful <a title="tools" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/editor/">tools</a>, but lack the W3C brand 
power.

&gt; He might also be thinking that for some people who have adopted the
&gt; technology, the cost has been greater than the benefit. I think it would be
&gt; hard to demonstrate that objectively.

In the big picture, you're quite correct that it would be hard to 
demonstrate that objectively.  It would require access to stories and 
data that aren't likely to be shared and are often difficult to measure.

Anecdotally, I've encountered people who love W3C <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a> and people 
who despise it.  Their fondness or loathing for it seems to depend on 
what they tried to use it for.

Complex data structures seem to lead to loathing, as do document-centric 
<a title="projects" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_project.html">projects</a>.  Versioning in particular seems to lead to loathing, except in 
extremely simple projects.

I am, of course, pretty well-known to be a critic of the technology, so 
I'm sure there's a bias in which stories people choose to tell me.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post10030.html</link><pubDate>Sat, 07 Nov 2009 12:48:45 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; On Sat, Nov 7, 2009 at 7:38 PM, Simon St.Laurent &lt;&#115;&#x69;mon&#x73;t&#x6c;&#x40;si&#x6d;on&#115;&#x74;l.&#99;&#x6f;m&gt; wrote:
&gt;&gt;  Leaving aside the question of how damaging <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a> has
&gt;&gt; been
&gt; 
&gt; I am not sure, how to respond to this. I guess this statement
&gt; certainly hurts the XSD community, and it certainly does hurt me.

It's supposed to hurt XSD.  If you're that attached to XSD that 
complaints about XSD hurt you, I'm afraid you may be too attached to the 
technology.

&gt; I don't know, how a technology (i.e, XSD..) that is capable of doing
&gt; XML validation (and XSD does this well), and is implemented by number
&gt; of XML products, which is implemented widely in XML applications (I
&gt; can see uncountable XML instances been <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validated by XSD</a> every day),
&gt; can be damaging.

XSD is good for exactly two reasons:

* It starts conversation.

* It's widely <a title="deployed" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/deployment/">deployed</a>.

Unfortunately, it's also brittle, barely able to represent some common 
structures, offers extensibility mechanisms that aren't very extensible, 
and has lots of corners that aren't implemented consistently.  The 
<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xquery.html">XQuery</a> folks encountered yet another set of problems in creating models 
based on it.

Worst of all, its W3C-blessed status often ends conversation, which can 
be poisonous for <a title="projects" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_project.html">projects</a> that would have done better with <a title="DTDs" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTDs</a>, RELAX 
NG, Schematron, a combination of those, no schema whatsoever, or 
something else entirely.

&gt;&gt; I suspect that counting validation as a fourth component might have eased
&gt;&gt; some problems all around, but that wasn't clear at the outset. That kind of
&gt;&gt; change seems like a project for XML 2.0, not for an edition change.
&gt; 
&gt; I'll be happy with XSD being specified in XML 2.0, if it can be.

Hopefully not.

&gt;&gt; (And, of course, I'd argue hard against any effort to incorporate W3C XML
&gt;&gt; Schema explicitly into XML 2.0....)
&gt; 
&gt; I am asking only for a simple reference in the XML spec, pointing to
&gt; the XSD spec and ideally saying somewhere in the XML spec (2.0
&gt; perhaps), that XSD is another validation technology from W3C similar
&gt; to DTD.
&gt; I still cannot think, why anybody can disagree to this. XSD and DTD
&gt; both belong to W3C, and both are W3C recommendations, so I don't think
&gt; why this simple modification to XML spec cannot take place.

Politically, of course it's possible.  And maybe the W3C, which is 
normally (though not always) fond of its works, will decide to add such 
a reference.

That would strike me as a continuation of the mistakes they've already 
made, but wouldn't be surprising.

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90020.html</link><pubDate>Sat, 07 Nov 2009 12:12:52 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
At 11:12 AM 11/7/2009, you wrote:
&gt;I am asking only for a simple reference in the XML spec, pointing to
&gt;the <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> spec and ideally saying somewhere in the XML spec (2.0
&gt;perhaps), that XSD is another validation technology from <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> similar
&gt;to <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>.
&gt;I still cannot think, why anybody can disagree to this. XSD and DTD
&gt;both belong to W3C, and both are W3C recommendations, so I don't think
&gt;why this simple modification to XML spec cannot take place.

Why and where do you stop? RelaxNG is another standard for providing 
validation and has a different/additional set of capabilities that 
are missing in both schema and DTD validation.

I think you may have missed a subtle point when I read: 'uncountable 
XML instances been <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">validated by XSD</a> every day'. Sounds like your 
dealing with data/messages, Len mentioned documents (tech manuals and 
such). The history of XML is SGML and the use of DTDs. DTDs and SGML 
were initially intended for textual manual with little to know <a title="data 
types" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/schema_aware.html">data 
types</a>. A DTD is powerful enough to handle that requirement very well 
without overly complicating the specification of the document 
content. Yes DTD didn't provide everything that everyone might need, 
Schema provides more capability, but still relationships between 
elements and part of a document are not possible to validate with a 
DTD or Schema. Just like picking a programming language you are free 
to pick the validation method you want to use.

I guess I'm confused at why a reference is needed. Ok, yeah there are 
new and different ways of providing the validation for which v1 of 
the XML standard were developed. Would you have the standard for C 
point a programmer to <a title="Java" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/configure_jre.html">Java</a>, C#, etc just because they are newer and 
provide the same/similar/better <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/buy/compare.html">functionality</a>?

..dan
---------------------------------------------------------------------------
Danny Vint

Panoramic Photography
http://www.dvint.com

voice: 502-749-6179
     

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80020.html</link><pubDate>Sat, 07 Nov 2009 11:45:49 GMT</pubDate></item><item><title>XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Hi all,
   Seeing the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML 1.0</a>, 5th edition spec (ref,
http://www.<a title="w3" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">w3</a>.org/TR/REC-xml/) I cannot find any reference to the
phrase &quot;<a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a>&quot; or XSD (which are the XML Schema languages,
defined by the W3C specs viz specified at,
http://www.w3.org/XML/Schema).

The XML 1.0 spec, certainly refers to the word <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> and provides the
complete definition of DTD semantics, and how it integrates with XML
as a validation technology. This all is great.

But I wonder, why the XML spec (1.0 or 1.1) doesn't mention XSD (i.e,
W3C XML Schema language) as also a second XML validation language
(i.e, other than DTD)? I am curious to know, was this decision not to
mention XSD as a validation technology in XML specs, was a consicous
one? If yes, what advantages we have achieved by this decision?

This curiousity spurs to my mind, keeping in mind that XSD is a very
important XML validation technology today, which is a W3C standard and
implemented widely in software applications.


-- 
Regards,
Mukul Gandhi
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post90010.html</link><pubDate>Sat, 07 Nov 2009 11:13:29 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
&gt; 
&gt; But I wonder, why the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> spec (1.0 or 1.1) doesn't mention 
&gt; <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> (i.e, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> XML Schema language) as also a second XML 
&gt; validation language (i.e, other than <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a>)? I am curious to 
&gt; know, was this decision not to mention XSD as a validation 
&gt; technology in XML specs, was a consicous one? If yes, what 
&gt; advantages we have achieved by this decision?

It's a basic issue of architectural layering. XSD has a dependency on XML,
XML has no dependency on XSD. Nothing in the XML spec is affected if XSD
changes.

It's bad enough when you're writing a spec tracking the changes in
technologies you depend on (like <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_other.html">Unicode</a>). Introducing unnecessary
dependencies for pedagogic or marketing reasons would be a very bad thing to
do.

Regards,

<a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
http://www.<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/press/2004_11_04_saxonica.html">saxonica</a>.com/
http://twitter.com/michaelhkay 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post00020.html</link><pubDate>Sat, 07 Nov 2009 10:29:12 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
No.  I think it was a way of saying something simple and familiar will work
until something more precise and powerful can replace it.  It was a
stabilizer in a time of incredible shifts and unpredictable fortunes.  It's
clear that validity is not intrinsic to markup functionally.  It is just as
clear that validation is useful to applications.

We let the next thing go too far in terms of application.  We needed
multiple validators for different users and uses.   We have that now but
also we have entrenched factions of users.

len

-----Original Message-----
From: Mukul Gandhi [<A  HREF="mailto:&#103;&#x61;&#x6e;dh&#x69;.m&#x75;&#x6b;u&#108;&#64;g&#x6d;ai&#108;&#46;&#x63;&#111;m">mailto:&#103;&#x61;&#x6e;dh&#x69;.m&#x75;&#x6b;u&#108;&#64;g&#x6d;ai&#108;&#46;&#x63;&#111;m</A>] 
Sent: Saturday, November 07, 2009 9:25 AM
To: Michael Sokolov
Cc: <a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>; &#120;&#x6d;l&#45;dev&#x40;&#x6c;is&#x74;&#115;&#46;xm&#108;.o&#114;g
Subject: Re:  XML spec and <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a>

On Sat, Nov 7, 2009 at 7:04 PM, Michael Sokolov &lt;&#115;o&#107;olo&#x76;&#x40;i&#102;a&#x63;&#116;&#111;&#x72;y&#x2e;&#x63;o&#109;&gt;
wrote:
&gt; There seems to have
&gt; been an insistence on making validity a property of the document, rather
&gt; than a separate concern.

I think, presence of <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> in the XML spec exactly says this (i.e,
validity is a concept inseparably tied to XML markup). But of course,
XML document validity is optional for applications to perform.

Since DTD is already mentioned in the XML spec, why not specify XSD as
well as a normative reference to a future XML spec? I think, even an
errata to a current XML spec can fix this. I am not sure, if another
edition of XML is underway [1]. If that's [1] happening at W3C at the
moment, it may even contain this normative reference I am suggesting.

Even W3C says, that XSD replaces DTD as a better XML validation
technology. And XSD 1.0 version has been in existence since many years
now, and implemented by quite a few XML products, and also <a title="deployed" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/deployment/">deployed</a>
widely in end user applications.
Therefore, why XML standard cannot say that XSD is a validation
technology like what DTD is?

I think, mentioning XSD in the XML spec will encourage <a title="XML Schema Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/videos/xmlschema1/xmlschema1.html">users to use
XSD</a> as a better validation technology, than DTD. Mentioning this as a
reference link in XML spec, looks like a very minor and non disruptive
addition to me, for the XML spec.



-- 
Regards,
Mukul Gandhi

_______________________________________________________________________

<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
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: &#120;ml&#x2d;&#x64;e&#118;&#x2d;u&#110;&#x73;&#x75;&#x62;&#x73;cribe&#64;&#108;is&#x74;&#115;&#x2e;&#x78;m&#108;.or&#x67;
subscribe: xm&#108;&#45;&#x64;ev-s&#117;bs&#x63;&#x72;&#105;b&#x65;&#64;&#x6c;&#x69;s&#x74;&#x73;.xml&#46;&#x6f;&#x72;&#103;
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60020.html</link><pubDate>Sat, 07 Nov 2009 09:52:00 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
In my mind it wasn't clear where validation belonged and secondly who should
be responsible for it being done.  To clarify, SGML made it reasonably
simple for a technical writer to express document definition, not validation
per se, but an as-simple-as=possible 'these are the contents in the order
needed for this specific task or communication'.  Most of the fancy math
computer sciency database stuff got ladled on to that basic need because we
in the business of writing documents were increasingly writing for computer
science applications instead of law, regulations, etc.  We tended to bow
down to the programmers.

Dropping validation was on some minds most particularly the computer
scientists who wanted markup to serve their needs.   They have a lot of
experience string schlepping and the idea that validation was necessary to
define outside of their own code seemed wasteful and that at a time when
every CPU cycle was sacred because scarce.   To the writers having the
toolkit to define the document made sense because frankly the computer
scientists were even lousier at that then the lawyers had been.  So markup
became the possession of the computer scientists instead of the writers.

It is bit like the scene in Star Wars where the Senate cheers mightily for
the new Emperor.  They think it a pretty good idea at the time.

<a title="DTDs" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTDs</a> were and in many ways still a pretty good compromise for giving power
tools to people who don't write a lot of code.  <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> might have been a better
compromise but once again the theoreticians, the math wonks and the compiler
wonks took the field.  Like a very heavy sword, it became something very
powerful in the right hands and too hard to wield in others.

Sad but so:  Microsoft had it right in the beginning.  Politics and market
ideology were the avatars of local ambition.  It's hard to fight a truckload
of speeding money driven by ideologues at the behest of bankers.

len

-----Original Message-----
From: Simon St.Laurent [<A  HREF="mailto:&#x73;&#x69;&#109;on&#115;tl&#x40;si&#x6d;ons&#116;&#108;.&#x63;o&#109;">mailto:&#x73;&#x69;&#109;on&#115;tl&#x40;si&#x6d;ons&#116;&#108;.&#x63;o&#109;</A>] 
Sent: Saturday, November 07, 2009 8:08 AM
To: &#x78;&#x6d;l-d&#101;&#118;&#64;&#108;&#x69;s&#x74;&#x73;.x&#x6d;l.&#x6f;&#x72;g
Subject: Re:  XML spec and XSD

Mukul Gandhi wrote:
&gt; But I feel, that mentioning XSD as a validation technology for XML
&gt; documents, in the XML spec is perhaps a good idea since DTD is also
&gt; mentioned in the XML spec (which is also a XML validation technology).
&gt; I feel, doing so doesn't promote any pedagogic or marketing attitudes
&gt; towards XSD.

It's history.  Leaving aside the question of how damaging <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> XML Schema 
has been, it simply wasn't part of the original XML vision.

The three parts were supposed to be markup, style, and linking, <a title="learning" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/learn_xml.html">learning</a> 
from SGML, DSSSL, and HyTime respectively.  Markup, inheriting from the 
SGML vision, included DTDs.

I suspect that counting validation as a fourth component might have 
eased some problems all around, but that wasn't clear at the outset. 
That kind of change seems like a <a title="project" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_project.html">project</a> for XML 2.0, not for an edition 
change.

(And, of course, I'd argue hard against any effort to incorporate W3C 
XML Schema explicitly into XML 2.0....)

-- 
Simon St.Laurent
http://simonstl.com/

_______________________________________________________________________

<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a>
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: x&#109;l&#x2d;de&#118;&#45;&#x75;&#110;su&#98;&#x73;c&#114;ibe&#x40;&#x6c;is&#x74;&#115;&#46;xm&#108;.o&#114;g
subscribe: &#120;m&#108;-de&#x76;&#x2d;s&#117;b&#x73;&#99;&#114;&#x69;b&#x65;&#x40;l&#105;&#x73;ts.&#x78;&#x6d;l&#46;&#x6f;r&#103;
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post50020.html</link><pubDate>Sat, 07 Nov 2009 09:45:40 GMT</pubDate></item><item><title>Re:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
Mukul Gandhi wrote:
&gt; But I feel, that mentioning <a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> as a validation technology for <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a>
&gt; documents, in the XML spec is perhaps a good idea since <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is also
&gt; mentioned in the XML spec (which is also a XML validation technology).
&gt; I feel, doing so doesn't promote any pedagogic or marketing attitudes
&gt; towards XSD.

It's history.  Leaving aside the question of how damaging <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> XML Schema 
has been, it simply wasn't part of the original XML vision.

The three parts were supposed to be markup, style, and linking, learning 
from SGML, DSSSL, and HyTime respectively.  Markup, inheriting from the 
SGML vision, included DTDs.

I suspect that counting validation as a fourth component might have 
eased some problems all around, but that wasn't clear at the outset. 
That kind of change seems like a <a title="project" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_project.html">project</a> for XML 2.0, not for an edition 
change.

(And, of course, I'd argue hard against any effort to incorporate W3C 
XML Schema explicitly into XML 2.0....)

-- 
Simon St.Laurent
http://simonstl.com/
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post30020.html</link><pubDate>Sat, 07 Nov 2009 09:08:00 GMT</pubDate></item><item><title>RE:  XML spec and XSD</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
<a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/dtd.html">DTD</a> is special, sadly.  It got lodged in the XML spec in the early days, too
deeply to be excised now, a legacy of SGML I think?  There seems to have
been an insistence on making validity a property of the document, rather
than a separate concern, as it is w/<a title="XSD" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XSD</a> and others. Probably someone older
and wiser can give you a more complete explanation.

-Mike 

&gt; -----Original Message-----
&gt; From: Mukul Gandhi [<A  HREF="mailto:gan&#x64;&#x68;&#105;.&#109;uku&#x6c;&#64;&#103;&#x6d;&#97;&#x69;&#108;&#x2e;&#x63;&#x6f;&#109;">mailto:gan&#x64;&#x68;&#105;.&#109;uku&#x6c;&#64;&#103;&#x6d;&#97;&#x69;&#108;&#x2e;&#x63;&#x6f;&#109;</A>] 
&gt; Sent: Saturday, November 07, 2009 5:49 AM
&gt; To: <a title="An Interview with Michael Kay" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/michael_kay.html">Michael Kay</a>
&gt; Cc: xml&#x2d;&#x64;ev&#x40;l&#x69;&#115;ts.&#120;&#109;l.&#111;&#114;g
&gt; Subject: Re:  XML spec and XSD
&gt; 
&gt; Thanks, Mike for your remarks.
&gt; 
&gt; On Sat, Nov 7, 2009 at 3:59 PM, Michael Kay &lt;mike&#64;s&#x61;&#120;o&#x6e;i&#99;&#x61;.com&gt; wrote:
&gt; &gt; It's a basic issue of architectural layering. XSD has a 
&gt; dependency on 
&gt; &gt; XML, XML has no dependency on XSD. Nothing in the XML spec 
&gt; is affected 
&gt; &gt; if XSD changes.
&gt; &gt;
&gt; &gt; It's bad enough when you're writing a spec tracking the changes in 
&gt; &gt; technologies you depend on (like <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_other.html">Unicode</a>). Introducing unnecessary 
&gt; &gt; dependencies for pedagogic or marketing reasons would be a very bad 
&gt; &gt; thing to do.
&gt; 
&gt; Looking at your view points above, I agree to them as good 
&gt; architectural principles while writing <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a> specs.
&gt; 
&gt; But I feel, that mentioning XSD as a validation technology 
&gt; for XML documents, in the XML spec is perhaps a good idea 
&gt; since DTD is also mentioned in the XML spec (which is also a 
&gt; XML validation technology).
&gt; I feel, doing so doesn't promote any pedagogic or marketing 
&gt; attitudes towards XSD.
&gt; 
&gt; Reading the XML spec, gives us a feeling (to me at least, I 
&gt; guess) that DTD is the most important technology for 
&gt; validating XML. Even if we don't mention specific versions of 
&gt; XSD as validating language for XML documents (in specific XML 
&gt; standards, like 1.0 5th edition or XML 1.1), I think it's 
&gt; good to mention in references of the XML spec (I believe, a 
&gt; normative reference to this would also be good in the XML 
&gt; spec), that XSD is also another XML validation technology 
&gt; from W3C, which achieves the same task as DTDs do. I think, 
&gt; referring to the link, http://www.w3.org/XML/Schema in XML 
&gt; specs would serve the purpose I am suggesting.
&gt; 
&gt; 
&gt; 
&gt; --
&gt; Regards,
&gt; Mukul Gandhi
&gt; 
&gt; ______________________________________________________________
&gt; _________
&gt; 
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xmldev/">XML-DEV</a> is a publicly archived, unmoderated list hosted by 
&gt; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/super_catalogs.html">OASIS</a> to support XML implementation and development. To 
&gt; minimize spam in the archives, you must subscribe before posting.
&gt; 
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: &#120;&#x6d;l-&#x64;&#101;&#118;-&#117;&#110;&#115;&#117;bs&#x63;&#x72;&#x69;be&#64;&#108;&#x69;s&#x74;s.&#x78;&#109;&#x6c;.o&#114;&#103;
&gt; subscribe: xml-de&#x76;&#45;s&#x75;bs&#99;r&#105;&#98;&#x65;&#x40;&#x6c;&#105;s&#x74;&#115;&#46;&#120;ml&#x2e;o&#114;g List archive: 
&gt; http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt; 
&gt; 

</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post20020.html</link><pubDate>Sat, 07 Nov 2009 08:34:33 GMT</pubDate></item><item><title>Re:  Shredding XML</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
What I mean by interface files is ...

The database into which the <a title="XML" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">XML</a> data will be stored is just a
'staging' area. Other applications require subsets of the data in
different formats that meet both their specific needs and conform to
their application <a title="data models" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema_editor.html">data models</a>. So whilst some 'reports' may be sourced
by this data directly, for the most part into is just one <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/feeds/">feed</a> into
many other 'interfaces'.

Fraser.

2009/11/4 Jim Tivy &lt;j&#x69;mt&#64;bl&#x75;&#101;stre&#x61;m.&#x63;o&#109;&gt;:
&gt; Fraser
&gt;
&gt; Often XML coming in reflects one hierarchy of the data - for example invoice
&gt; header and details - for example, where each invoice is a customer
&gt; transaction at a CoffeeHouse Chain.  These incoming hierarchies can have
&gt; redundant information - for example the address of a customer as stated in
&gt; each invoice.  If you need to report on this data in a different hiearchy,
&gt; first you need to define an appropriate RDB application data model and then
&gt; import carefully into it to remove redudancy, <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/canonical_xml.html">normalize</a> the data into
&gt; respective entities (tables) and generally protect and enforce the quality
&gt; of data in the database.  Then you can acurately report on the data where
&gt; the output of the report reflects a different hierarchy than the incoming
&gt; Xml data -  say, total product <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/buy/">sales</a> of product latte in January by City by
&gt; Store.
&gt;
&gt; In this way, the reports you need out will carry requirements for your RDB
&gt; application data model.
&gt;
&gt; Not sure what you mean by &quot;interface files&quot;?
&gt;
&gt; Jim
&gt;
&gt; -----Original Message-----
&gt; From: Fraser Goffin [<A  HREF="mailto:&#x67;&#111;&#102;&#x66;&#105;n&#102;&#x40;g&#111;&#111;&#x67;l&#101;m&#97;il.co&#109;">mailto:&#x67;&#111;&#102;&#x66;&#105;n&#102;&#x40;g&#111;&#111;&#x67;l&#101;m&#97;il.co&#109;</A>]
&gt; Sent: Wednesday, November 04, 2009 8:20 AM
&gt; To: &#x78;&#109;l-&#100;&#x65;v&#x40;&#108;&#x69;sts&#46;xm&#108;&#46;&#x6f;&#114;&#103;
&gt; Subject: Re:  Shredding XML
&gt;
&gt; I don't know the full detail of the interface files that will be
&gt; produced from this store, but its probably safe to assume that these
&gt; will need to model the data with multiple hierarchies and groupings.
&gt;
&gt; Whats driving this line of thought ?
&gt;
&gt; Fraser.
&gt;
&gt; 2009/11/3 Jim Tivy &lt;&#x6a;imt&#64;&#98;&#x6c;u&#x65;s&#x74;&#x72;ea&#x6d;.&#99;om&gt;:
&gt;&gt; do they need to produce reports that present the information in
&gt;&gt; multiple hierarchial ways?  It might be invoices within a day or Lattes
&gt; sold
&gt;&gt; within City within Province.
&gt;&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: Fraser Goffin [<A  HREF="mailto:go&#x66;fin&#102;&#64;go&#x6f;gl&#101;&#109;&#97;il&#x2e;c&#111;m">mailto:go&#x66;fin&#102;&#64;go&#x6f;gl&#101;&#109;&#97;il&#x2e;c&#111;m</A>]
&gt;&gt; Sent: Tuesday, November 03, 2009 1:41 AM
&gt;&gt; To: x&#109;&#x6c;&#x2d;de&#x76;&#x40;&#108;&#x69;st&#115;&#x2e;&#x78;&#x6d;&#x6c;.&#x6f;&#x72;&#103;
&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;
&gt;&gt;&gt; Do your applications that use the relational database need to update
&gt;&gt;
&gt;&gt; Thats a difficult one. As far as producing up-stream interfaces, no,
&gt;&gt; they are created just by selecting from the database.
&gt;&gt;
&gt;&gt; However, as I mentioned (lost in the detail) earlier, messages
&gt;&gt; received will have a relationship to existing records. I'm not at all
&gt;&gt; convinced that update will be possible because not all of the keys
&gt;&gt; will be available in the message received. Some form of 'fuzzy'
&gt;&gt; matching may be possible in some case, for example, if I receive a new
&gt;&gt; address then the 1st line + PostCode + the relationship of this
&gt;&gt; address to something else may be sufficient.
&gt;&gt;
&gt;&gt; It might be the case that we have to consider time based snap-shots,
&gt;&gt; i.e. the 'state' of a collection of data at a point in time. Not sure
&gt;&gt; yet, its one of those areas of difficulty that probably doesn't change
&gt;&gt; much whether I use relational of native XML stores.
&gt;&gt;
&gt;&gt; At present the primary purpose of the database is for retreival, i.e.
&gt;&gt; its NOT an operational store, its for MI, so optimiastions for read
&gt;&gt; rather than update are appropriate.
&gt;&gt;
&gt;&gt;&gt; do they need to produce reports that present the information in multiple
&gt;&gt; ways
&gt;&gt;
&gt;&gt; Yes.
&gt;&gt;
&gt;&gt; Fraser.
&gt;&gt;
&gt;&gt; 2009/11/3 Jim Tivy &lt;jim&#x74;&#x40;&#x62;luest&#x72;&#x65;am&#x2e;&#99;om&gt;:
&gt;&gt;&gt; Do your applications that use the relational database need to update and
&gt;&gt; do
&gt;&gt;&gt; they need to produce reports that present the information in multiple
&gt; ways
&gt;&gt;&gt; hierarchial ways?  This may suggest whether your database needs to be
&gt;&gt;&gt; normalized (approaching 3rd Normal form)?
&gt;&gt;&gt;
&gt;&gt;&gt; -----Original Message-----
&gt;&gt;&gt; From: Fraser Goffin [<A  HREF="mailto:&#103;&#x6f;f&#102;&#x69;&#x6e;f&#64;g&#111;ogl&#101;m&#97;&#x69;&#x6c;.com">mailto:&#103;&#x6f;f&#102;&#x69;&#x6e;f&#64;g&#111;ogl&#101;m&#97;&#x69;&#x6c;.com</A>]
&gt;&gt;&gt; Sent: Monday, November 02, 2009 3:31 PM
&gt;&gt;&gt; To: xm&#108;&#x2d;dev&#x40;li&#x73;&#116;&#115;&#46;&#120;ml&#46;org
&gt;&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;&gt;
&gt;&gt;&gt; Hi Jim,
&gt;&gt;&gt;
&gt;&gt;&gt; thats interesting ... which should be the 'driving' schema, XML or Db ?
&gt;&gt;&gt;
&gt;&gt;&gt; I guess I've been somewhat tiptoe'ing around this one.
&gt;&gt;&gt;
&gt;&gt;&gt; I should admit my bias if its not already apparent. I work mainly in
&gt;&gt;&gt; the SOA integration space and since XML is the primary exchange format
&gt;&gt;&gt; and XML schema does a reasonable job as the type system, I favour
&gt;&gt;&gt; processing XML as .. well XML ... whilst I understand the argument
&gt;&gt;&gt; around leveraging existing technologies and skillset .. often-times
&gt;&gt;&gt; this is little more than protectionism and continually [de]composing
&gt;&gt;&gt; from XML to objects then to CopyLibs and then to relational just seems
&gt;&gt;&gt; unnecessary a lot of the time (sorry - soap box over).  But of course
&gt;&gt;&gt; the whole world isn't XML and just like most other large organisations
&gt;&gt;&gt; the vast majority of our processing capability and data isn't and
&gt;&gt;&gt; probably never will be ... I have no issue with that.
&gt;&gt;&gt;
&gt;&gt;&gt; On the one hand it is the end product that drives the design (even if
&gt;&gt;&gt; that design has a relatively short shelf-life ... but hey, we all do
&gt;&gt;&gt; agile right). In that case it is definately the Database schema that
&gt;&gt;&gt; prevails from the pure delivery point of view, since this is the
&gt;&gt;&gt; desired source for the staging area from which to produce interface
&gt;&gt;&gt; files for upstream applications. At present there appears to be no
&gt;&gt;&gt; possiblility of revisiting that choice. At the same time, I don't want
&gt;&gt;&gt; to 'paint myself into a corner' or promote this as an exemplar for all
&gt;&gt;&gt; future approaches (unless it turns out that way :-)
&gt;&gt;&gt;
&gt;&gt;&gt; My unease is around the brittleness of the database schema in the face
&gt;&gt;&gt; of change, but I suppose that situation is almost inevitable since I
&gt;&gt;&gt; can't crystal-ball what changes might be coming along next week and
&gt;&gt;&gt; its probably folly to try. XML changes that dynamic, but not
&gt;&gt;&gt; completely.
&gt;&gt;&gt;
&gt;&gt;&gt; I have been having this internal debate about, .. if I concede I'm
&gt;&gt;&gt; going to have a relational database then should its design be derived
&gt;&gt;&gt; from the XML schema or should the XML schema change to accomodate the
&gt;&gt;&gt; database, indeed one of the Solution Designers on this has already
&gt;&gt;&gt; indicated a desire to 'flatten' the XML schema (although I have to say
&gt;&gt;&gt; I disagree that it is necessary). I have some degree of opportunity to
&gt;&gt;&gt; change the XML schema (although messages
&gt;&gt;&gt; are received from external sources, within reason, I can transform
&gt;&gt;&gt; them into any 'shape' I like so long as thats a loss-less exchange).
&gt;&gt;&gt; The database is green field so it can be any shape, but clearly some
&gt;&gt;&gt; designs are going to lend themsleves better than others to XML mapping
&gt;&gt;&gt; I would have thought ?
&gt;&gt;&gt;
&gt;&gt;&gt; Surely there are some structures in XML that don't map
&gt;&gt;&gt; straight-forwardly. Ted Neward called this the 'last mile' (a familiar
&gt;&gt;&gt; term to us all I'm sure), where the illusion of a high fidelity
&gt;&gt;&gt; solution draws us in, and indeed 80%+ appears to go quite well, but
&gt;&gt;&gt; that last few % hold a disproportiate cost and increasing complexity
&gt;&gt;&gt; (but you don't realise that until late on at which point some are
&gt;&gt;&gt; going to object to a rethink). I want to know where that 'last mile'
&gt;&gt;&gt; lives so I can try and avoid it !
&gt;&gt;&gt;
&gt;&gt;&gt; Fraser.
&gt;&gt;&gt;
&gt;&gt;&gt; 2009/11/2 Jim Tivy &lt;ji&#x6d;&#x74;&#64;&#x62;&#x6c;ues&#116;&#114;&#101;a&#109;&#46;&#x63;o&#x6d;&gt;:
&gt;&gt;&gt;&gt; Fraser
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I am not entirely hearing firm commitment that you plan to establish an
&gt;&gt;&gt; RDB
&gt;&gt;&gt;&gt; schema and make it the driving schema.  In other words, what this would
&gt;&gt;&gt; mean
&gt;&gt;&gt;&gt; is that data elements cannot be put into the RDB unless they exist in
&gt; the
&gt;&gt;&gt;&gt; RDB schema.  For example, if some new data elements show up in some
&gt;&gt;&gt; external
&gt;&gt;&gt;&gt; XML to be imported then the DBA decides whether to allow them into the
&gt;&gt;&gt;&gt; appropriate RDB column or not, or drop them for the time being.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Another option (from the infinite number) would be to let the XML schema
&gt;&gt;&gt;&gt; generate the RDB schema and the mapping code.  For your application
&gt;&gt;&gt;&gt; programmers using SQL on the RDB this would likely lead to gagging and
&gt;&gt;&gt;&gt; hacking and an &quot;out of body experience&quot;  This is not something I would
&gt;&gt;&gt;&gt; recommend and if this is what you want then get a database that supports
&gt;&gt;&gt;&gt; XQuery and retrain your developers.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; But I think you have to choose between these two - the first being what
&gt;&gt; it
&gt;&gt;&gt;&gt; sounds like you want - then work backwards from that decision.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Jim
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; -----Original Message-----
&gt;&gt;&gt;&gt; From: Fraser Goffin [<A  HREF="mailto:&#103;off&#105;&#110;&#x66;&#x40;&#x67;o&#111;&#103;&#108;&#101;m&#97;il&#x2e;&#99;&#x6f;m">mailto:&#103;off&#105;&#110;&#x66;&#x40;&#x67;o&#111;&#103;&#108;&#101;m&#97;il&#x2e;&#99;&#x6f;m</A>]
&gt;&gt;&gt;&gt; Sent: Monday, November 02, 2009 12:22 PM
&gt;&gt;&gt;&gt; To: &#120;&#109;l&#x2d;d&#101;&#118;&#64;lis&#x74;s.&#x78;m&#108;.org
&gt;&gt;&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Yes Jim, that is spot on.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Whilst there has been much discussion thus far on the technolgies and
&gt;&gt;&gt;&gt; techniques of getting data out of the database (and that has been
&gt;&gt;&gt;&gt; interesting), the programming for doing so are 'bread and butter' to
&gt;&gt;&gt;&gt; our mainframe Cobol and Sapiens guys, so thats not really my problem.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Mine is the task of getting the data from a fairly complex XML content
&gt;&gt;&gt;&gt; model into an appropriately factored relational database. The design
&gt;&gt;&gt;&gt; of that database is 'green field' but (and thanks to many on this
&gt;&gt;&gt;&gt; thread who have posted related papers) this may not be as easy at it
&gt;&gt;&gt;&gt; might at first appear, what with impedence mismatches here there and
&gt;&gt;&gt;&gt; everywhere ;-)
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Its also the case that the XML data doesn't contain enough data
&gt;&gt;&gt;&gt; inherently to represent primary or foreign key values for all of the
&gt;&gt;&gt;&gt; relationships that are likely to arise. In some cases I MAY be
&gt;&gt;&gt;&gt; permitted to generate them myself (say using a UUID) as I 'walk' the
&gt;&gt;&gt;&gt; XML, in other cases I MAY be required to get the database to provide
&gt;&gt;&gt;&gt; the value(s), not sure yet. The later may increase the complexity
&gt;&gt;&gt;&gt; somewhat (sidenote: our DBAs don't allow stored procs (don't ask)  so
&gt;&gt;&gt;&gt; I'm going to be doing whole bunches of INSERTs as part of the
&gt;&gt;&gt;&gt; tree-walk I suspect)
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I'm really interested in the gotchas and best practices. Some have
&gt;&gt;&gt;&gt; already been mentioned like the fact that the XML schema may define
&gt;&gt;&gt;&gt; optional items and unrestricted length facets and such like. Others
&gt;&gt;&gt;&gt; I've seen in reading talk about the mis-match of identity approaches
&gt;&gt;&gt;&gt; (although this was talking primarily about OO/Relational mapping but
&gt;&gt;&gt;&gt; the idea is similar I suspect). This could be important, since some
&gt;&gt;&gt;&gt; messages received may 'relate' to others already loaded and, given
&gt;&gt;&gt;&gt; what I said about not having all of the data in the XML to form all of
&gt;&gt;&gt;&gt; the keys, this might be a significant problem.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; It is my intention to look into other options (we have recently
&gt;&gt;&gt;&gt; acquired DB2 v9 which includes pureXML) but as is so often the case,
&gt;&gt;&gt;&gt; the immediate project delivery pressures won't allow it. The PM is
&gt;&gt;&gt;&gt; very nervous about using any new tech, perhaps justifiably, but my
&gt;&gt;&gt;&gt; sense of unease is more to do with the perhaps misplaced assumption
&gt;&gt;&gt;&gt; that 'tried and tested' tech like relational databases will always
&gt;&gt;&gt;&gt; provide a workable solution, imho sometimes they actually represent
&gt;&gt;&gt;&gt; the most significant constraint.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; So yes, back to the actual problem. How to come up with a database
&gt;&gt;&gt;&gt; design that provides the capability of staging the shredded XML in a
&gt;&gt;&gt;&gt; reasonable efficient manner and enables it to be loaded from XML
&gt;&gt;&gt;&gt; instances received, again efficiently (ideally without 100's of tables
&gt;&gt;&gt;&gt; and joins to negotiate). As far as efficiency of storage, well that
&gt;&gt;&gt;&gt; MAY be a concern although perhaps not a huge one so long as the Db
&gt;&gt;&gt;&gt; doesn't bloat up too much if normalisation is preferred over extra
&gt;&gt;&gt;&gt; tables.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Please add your thoughts and suggestions and experiences as you are
&gt;&gt;&gt;&gt; able. Nothing is too trivial (or rude) to mention (i.e. if you want to
&gt;&gt;&gt;&gt; say don't do this if you want to keep your sanity, thats ok).
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; regards
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Fraser.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I'm
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; 2009/11/1 Jim Tivy &lt;jimt&#64;b&#108;&#117;estrea&#109;&#x2e;&#99;o&#109;&gt;:
&gt;&gt;&gt;&gt;&gt; Interesting post, but I am not sure that &quot;now is the time to talk of
&gt;&gt; many
&gt;&gt;&gt;&gt;&gt; things&quot;.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Let me try to focus:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Proper software execution comes from the choice of appropriate
&gt;&gt;&gt;&gt;&gt; actions/technologies to match the driving requirements.  But more
&gt;&gt;&gt;&gt;&gt; importantly, the greatest Wisdom, is to frame the driving requirements
&gt;&gt;&gt;&gt;&gt; correctly before &quot;going off half cocked&quot; or doing something that is
&gt;&gt;&gt;&gt;&gt; unnecessary and unwarranted.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; So lets start by framing the requirements again:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Fraser Gofin wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt;&gt; The basics are we receive XML messages from an external trading partner
&gt;&gt;&gt;&gt; and
&gt;&gt;&gt;&gt;&gt; process those messages, enriching and routing to a number of internal
&gt;&gt;&gt;&gt;&gt; subscriber applications. One of these applications is MI and the deal
&gt;&gt;&gt; here
&gt;&gt;&gt;&gt;&gt; is that they want the data to been put into a relational database so
&gt;&gt; that
&gt;&gt;&gt;&gt;&gt; they can create a number of interfaces 'files' which are sent to still
&gt;&gt;&gt;&gt; more
&gt;&gt;&gt;&gt;&gt; applications.
&gt;&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; OR
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt;&gt; I am mainly interested in the process of LOADING XML data to a database
&gt;&gt;&gt;&gt;&gt; rather than extracting (at least for the purposes of this discussion).
&gt;&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; It is possible that the &quot;mother persistent application datamodel&quot; is
&gt;&gt;&gt;&gt;&gt; contained in the relational database in all its normalized glory.  If
&gt;&gt; so,
&gt;&gt;&gt;&gt;&gt; then, &quot;processing the messages&quot; is simply a &quot;data import&quot; operation.
&gt;  So
&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt;&gt; question is, how do I get XML X* to tables T*.  It would strike me that
&gt;&gt;&gt;&gt; lots
&gt;&gt;&gt;&gt;&gt; of people are doing this.  Are there common techniques and technologies
&gt;&gt;&gt;&gt; for
&gt;&gt;&gt;&gt;&gt; doing this import?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Fraser, is that a proper framing of the question/requirements?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Jim
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; -----Original Message-----
&gt;&gt;&gt;&gt;&gt; From: Petite Abeille [<A  HREF="mailto:pe&#116;ite.abei&#x6c;le&#64;g&#x6d;&#97;i&#x6c;.&#x63;&#111;m">mailto:pe&#116;ite.abei&#x6c;le&#64;g&#x6d;&#97;i&#x6c;.&#x63;&#111;m</A>]
&gt;&gt;&gt;&gt;&gt; Sent: Sunday, November 01, 2009 9:56 AM
&gt;&gt;&gt;&gt;&gt; To: &#120;m&#108;-&#x64;&#101;&#x76;&#x40;li&#115;&#x74;&#115;.&#x78;&#x6d;l.org
&gt;&gt;&gt;&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Oct 29, 2009, at 10:20 PM, Fraser Goffin wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; opinions on the subject of decomposing XML into relational databases
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Outside of the most trivial case, this is a major PITA of the same
&gt;&gt;&gt;&gt;&gt; epic proportion as the object-relational one:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt; http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Good luck.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt;&gt;&gt; Or unsubscribe: xml-dev-un&#x73;ubs&#x63;&#x72;&#105;&#98;e&#64;li&#x73;&#116;s&#46;&#120;&#x6d;&#x6c;&#46;o&#114;g
&gt;&gt;&gt;&gt;&gt; subscribe: x&#109;&#108;-d&#x65;v-&#115;&#117;&#x62;&#x73;&#x63;r&#x69;&#98;&#x65;&#x40;&#108;i&#x73;ts&#46;x&#109;l.org
&gt;&gt;&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt;&gt;&gt; Or unsubscribe: &#x78;&#109;&#108;&#x2d;d&#101;&#118;-&#117;nsubsc&#114;&#x69;b&#x65;&#x40;&#108;&#x69;&#x73;t&#115;&#46;&#120;m&#108;.&#111;&#x72;&#103;
&gt;&gt;&gt;&gt;&gt; subscribe: &#120;&#109;l-&#x64;&#x65;&#118;-&#x73;&#x75;&#98;&#x73;&#x63;ri&#x62;e&#x40;&#108;&#105;&#115;ts&#46;&#120;m&#108;.&#x6f;&#114;g
&gt;&gt;&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt;&gt; Or unsubscribe: &#x78;&#x6d;l&#x2d;&#x64;&#101;&#118;-&#x75;nsu&#x62;&#115;c&#114;ibe&#64;&#108;&#x69;&#115;&#x74;&#x73;&#x2e;&#120;&#x6d;&#108;.&#x6f;rg
&gt;&gt;&gt;&gt; subscribe: &#x78;ml-d&#x65;&#x76;-&#115;&#x75;&#98;&#x73;cribe&#x40;&#108;ists.&#x78;&#x6d;&#x6c;&#x2e;&#x6f;r&#103;
&gt;&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;
&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;
&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt; Or unsubscribe: x&#109;l-d&#x65;v&#x2d;unsu&#98;&#115;c&#x72;&#x69;b&#x65;&#64;&#108;&#105;s&#x74;s&#46;&#120;m&#108;.or&#103;
&gt;&gt;&gt; subscribe: &#x78;&#x6d;l&#x2d;d&#101;v&#45;su&#x62;&#115;cr&#105;b&#x65;&#x40;&#x6c;&#x69;s&#x74;s.xml&#46;&#111;rg
&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________________________________
&gt;&gt;
&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;
&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt; Or unsubscribe: &#120;m&#x6c;&#45;de&#x76;&#x2d;&#117;n&#115;ubs&#x63;r&#105;&#x62;&#101;&#x40;&#108;&#x69;&#x73;&#x74;&#115;.xml&#x2e;&#x6f;rg
&gt;&gt; subscribe: x&#x6d;&#108;-de&#118;&#45;su&#98;&#115;c&#114;ibe&#x40;l&#x69;&#115;t&#x73;.&#120;&#x6d;l.org
&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; _______________________________________________________________________
&gt;
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt;
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: x&#x6d;l-&#x64;&#101;&#118;-&#117;&#110;&#115;&#117;bs&#x63;&#x72;&#x69;be&#64;&#108;&#x69;s&#x74;s.&#x78;&#109;&#x6c;.o&#114;&#103;
&gt; subscribe: xml-de&#x76;&#45;s&#x75;bs&#99;r&#105;&#98;&#x65;&#x40;&#x6c;&#105;s&#x74;&#115;&#46;&#120;ml&#x2e;o&#114;g
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;
&gt;
&gt;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post80010.html</link><pubDate>Wed, 04 Nov 2009 20:32:45 GMT</pubDate></item><item><title>Re:  Shredding XML</title><description><![CDATA[<!--X-Body-of-Message-->
<pre>
I don't know the full detail of the interface files that will be
produced from this store, but its probably safe to assume that these
will need to model the data with multiple hierarchies and groupings.

Whats driving this line of thought ?

Fraser.

2009/11/3 Jim Tivy &lt;j&#x69;m&#x74;&#64;b&#x6c;&#117;&#101;&#115;t&#114;e&#97;m.c&#x6f;&#x6d;&gt;:
&gt; do they need to produce reports that present the information in
&gt; multiple hierarchial ways?  It might be invoices within a day or Lattes sold
&gt; within City within Province.
&gt;
&gt; -----Original Message-----
&gt; From: Fraser Goffin [<A  HREF="mailto:&#x67;off&#x69;&#110;f&#64;&#x67;oo&#103;l&#101;m&#x61;i&#108;&#46;&#99;&#111;&#109;">mailto:&#x67;off&#x69;&#110;f&#64;&#x67;oo&#103;l&#101;m&#x61;i&#108;&#46;&#99;&#111;&#109;</A>]
&gt; Sent: Tuesday, November 03, 2009 1:41 AM
&gt; To: <a title="xml" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml.html">xml</a>-&#x64;&#x65;v&#64;li&#115;&#116;s.xml&#x2e;org
&gt; Subject: Re:  Shredding XML
&gt;
&gt;&gt; Do your applications that use the relational database need to update
&gt;
&gt; Thats a difficult one. As far as producing up-stream interfaces, no,
&gt; they are created just by selecting from the database.
&gt;
&gt; However, as I mentioned (lost in the detail) earlier, messages
&gt; received will have a relationship to existing records. I'm not at all
&gt; convinced that update will be possible because not all of the keys
&gt; will be available in the message received. Some form of 'fuzzy'
&gt; matching may be possible in some case, for example, if I receive a new
&gt; address then the 1st line + PostCode + the relationship of this
&gt; address to something else may be sufficient.
&gt;
&gt; It might be the case that we have to consider time based snap-shots,
&gt; i.e. the 'state' of a collection of data at a point in time. Not sure
&gt; yet, its one of those areas of difficulty that probably doesn't change
&gt; much whether I use relational of native XML stores.
&gt;
&gt; At present the primary purpose of the database is for retreival, i.e.
&gt; its NOT an operational store, its for MI, so optimiastions for read
&gt; rather than update are appropriate.
&gt;
&gt;&gt; do they need to produce reports that present the information in multiple
&gt; ways
&gt;
&gt; Yes.
&gt;
&gt; Fraser.
&gt;
&gt; 2009/11/3 Jim Tivy &lt;jim&#x74;&#x40;&#98;&#108;u&#x65;&#115;&#116;r&#101;a&#x6d;&#46;c&#x6f;&#109;&gt;:
&gt;&gt; Do your applications that use the relational database need to update and
&gt; do
&gt;&gt; they need to produce reports that present the information in multiple ways
&gt;&gt; hierarchial ways?  This may suggest whether your database needs to be
&gt;&gt; normalized (approaching 3rd Normal form)?
&gt;&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: Fraser Goffin [<A  HREF="mailto:go&#x66;fin&#102;&#64;&#103;oo&#x67;&#108;ema&#105;&#108;&#46;com">mailto:go&#x66;fin&#102;&#64;&#103;oo&#x67;&#108;ema&#105;&#108;&#46;com</A>]
&gt;&gt; Sent: Monday, November 02, 2009 3:31 PM
&gt;&gt; To: x&#109;&#x6c;-&#x64;ev&#64;list&#x73;.&#120;m&#108;&#x2e;org
&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;
&gt;&gt; Hi Jim,
&gt;&gt;
&gt;&gt; thats interesting ... which should be the 'driving' <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">schema</a>, XML or Db ?
&gt;&gt;
&gt;&gt; I guess I've been somewhat tiptoe'ing around this one.
&gt;&gt;
&gt;&gt; I should admit my bias if its not already apparent. I work mainly in
&gt;&gt; the <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/web_services.html">SOA</a> integration space and since XML is the primary exchange format
&gt;&gt; and XML schema does a reasonable <a title="job " class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/jobs.html">job </a>as the type system, I favour
&gt;&gt; processing XML as .. well XML ... whilst I understand the argument
&gt;&gt; around leveraging existing technologies and skillset .. often-times
&gt;&gt; this is little more than protectionism and continually [de]composing
&gt;&gt; from XML to objects then to CopyLibs and then to relational just seems
&gt;&gt; unnecessary a lot of the time (sorry - <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/ws_tester.html">soap</a> box over).  But of course
&gt;&gt; the whole world isn't XML and just like most other large organisations
&gt;&gt; the vast majority of our processing capability and data isn't and
&gt;&gt; probably never will be ... I have no issue with that.
&gt;&gt;
&gt;&gt; On the one hand it is the end product that drives the design (even if
&gt;&gt; that design has a relatively short shelf-life ... but hey, we all do
&gt;&gt; agile right). In that case it is definately the Database schema that
&gt;&gt; prevails from the pure delivery point of view, since this is the
&gt;&gt; desired source for the staging area from which to produce interface
&gt;&gt; files for upstream applications. At present there appears to be no
&gt;&gt; possiblility of revisiting that choice. At the same time, I don't want
&gt;&gt; to 'paint myself into a corner' or promote this as an exemplar for all
&gt;&gt; future approaches (unless it turns out that way :-)
&gt;&gt;
&gt;&gt; My unease is around the brittleness of the database schema in the face
&gt;&gt; of change, but I suppose that situation is almost inevitable since I
&gt;&gt; can't crystal-ball what changes might be coming along next week and
&gt;&gt; its probably folly to try. XML changes that dynamic, but not
&gt;&gt; completely.
&gt;&gt;
&gt;&gt; I have been having this internal debate about, .. if I concede I'm
&gt;&gt; going to have a relational database then should its design be derived
&gt;&gt; from the XML schema or should the XML schema change to accomodate the
&gt;&gt; database, indeed one of the Solution Designers on this has already
&gt;&gt; indicated a desire to 'flatten' the XML schema (although I have to say
&gt;&gt; I disagree that it is necessary). I have some degree of opportunity to
&gt;&gt; change the XML schema (although messages
&gt;&gt; are received from external sources, within reason, I can transform
&gt;&gt; them into any 'shape' I like so long as thats a loss-less exchange).
&gt;&gt; The database is green field so it can be any shape, but clearly some
&gt;&gt; designs are going to lend themsleves better than others to XML mapping
&gt;&gt; I would have thought ?
&gt;&gt;
&gt;&gt; Surely there are some structures in XML that don't map
&gt;&gt; straight-forwardly. Ted Neward called this the 'last mile' (a familiar
&gt;&gt; term to us all I'm sure), where the illusion of a high fidelity
&gt;&gt; solution draws us in, and indeed 80%+ appears to go quite well, but
&gt;&gt; that last few % hold a disproportiate cost and increasing complexity
&gt;&gt; (but you don't realise that until late on at which point some are
&gt;&gt; going to object to a rethink). I want to know where that 'last mile'
&gt;&gt; lives so I can try and avoid it !
&gt;&gt;
&gt;&gt; Fraser.
&gt;&gt;
&gt;&gt; 2009/11/2 Jim Tivy &lt;&#x6a;&#105;&#109;t&#64;&#98;lu&#101;st&#114;eam.&#x63;&#111;&#x6d;&gt;:
&gt;&gt;&gt; Fraser
&gt;&gt;&gt;
&gt;&gt;&gt; I am not entirely hearing firm commitment that you plan to establish an
&gt;&gt; RDB
&gt;&gt;&gt; schema and make it the driving schema.  In other words, what this would
&gt;&gt; mean
&gt;&gt;&gt; is that data elements cannot be put into the RDB unless they exist in the
&gt;&gt;&gt; RDB schema.  For example, if some new data elements show up in some
&gt;&gt; external
&gt;&gt;&gt; XML to be imported then the DBA decides whether to allow them into the
&gt;&gt;&gt; appropriate RDB column or not, or drop them for the time being.
&gt;&gt;&gt;
&gt;&gt;&gt; Another option (from the infinite number) would be to let the XML schema
&gt;&gt;&gt; generate the RDB schema and the mapping code.  For your application
&gt;&gt;&gt; programmers using SQL on the RDB this would likely lead to gagging and
&gt;&gt;&gt; hacking and an &quot;out of body experience&quot;  This is not something I would
&gt;&gt;&gt; recommend and if this is what you want then get a database that supports
&gt;&gt;&gt; XQuery and retrain your developers.
&gt;&gt;&gt;
&gt;&gt;&gt; But I think you have to choose between these two - the first being what
&gt; it
&gt;&gt;&gt; sounds like you want - then work backwards from that decision.
&gt;&gt;&gt;
&gt;&gt;&gt; Jim
&gt;&gt;&gt;
&gt;&gt;&gt; -----Original Message-----
&gt;&gt;&gt; From: Fraser Goffin [<A  HREF="mailto:&#x67;&#111;f&#102;i&#110;&#102;&#64;&#x67;o&#111;gle&#x6d;ail.c&#x6f;&#109;">mailto:&#x67;&#111;f&#102;i&#110;&#102;&#64;&#x67;o&#111;gle&#x6d;ail.c&#x6f;&#109;</A>]
&gt;&gt;&gt; Sent: Monday, November 02, 2009 12:22 PM
&gt;&gt;&gt; To: xml&#x2d;de&#x76;&#x40;&#108;i&#x73;&#116;&#115;&#x2e;&#120;m&#108;.o&#114;&#103;
&gt;&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;&gt;
&gt;&gt;&gt; Yes Jim, that is spot on.
&gt;&gt;&gt;
&gt;&gt;&gt; Whilst there has been much discussion thus far on the technolgies and
&gt;&gt;&gt; techniques of getting data out of the database (and that has been
&gt;&gt;&gt; interesting), the programming for doing so are 'bread and butter' to
&gt;&gt;&gt; our mainframe Cobol and Sapiens guys, so thats not really my problem.
&gt;&gt;&gt;
&gt;&gt;&gt; Mine is the task of getting the data from a fairly complex XML content
&gt;&gt;&gt; model into an appropriately factored relational database. The design
&gt;&gt;&gt; of that database is 'green field' but (and thanks to many on this
&gt;&gt;&gt; thread who have posted related papers) this may not be as easy at it
&gt;&gt;&gt; might at first appear, what with impedence mismatches here there and
&gt;&gt;&gt; everywhere ;-)
&gt;&gt;&gt;
&gt;&gt;&gt; Its also the case that the XML data doesn't contain enough data
&gt;&gt;&gt; inherently to represent primary or foreign key values for all of the
&gt;&gt;&gt; relationships that are likely to arise. In some cases I MAY be
&gt;&gt;&gt; permitted to generate them myself (say using a UUID) as I 'walk' the
&gt;&gt;&gt; XML, in other cases I MAY be required to get the database to provide
&gt;&gt;&gt; the value(s), not sure yet. The later may increase the complexity
&gt;&gt;&gt; somewhat (sidenote: our DBAs don't allow stored procs (don't ask)  so
&gt;&gt;&gt; I'm going to be doing whole bunches of INSERTs as part of the
&gt;&gt;&gt; tree-walk I suspect)
&gt;&gt;&gt;
&gt;&gt;&gt; I'm really interested in the gotchas and best practices. Some have
&gt;&gt;&gt; already been mentioned like the fact that the XML schema may define
&gt;&gt;&gt; optional items and unrestricted length facets and such like. Others
&gt;&gt;&gt; I've seen in reading talk about the mis-match of identity approaches
&gt;&gt;&gt; (although this was talking primarily about OO/Relational mapping but
&gt;&gt;&gt; the idea is similar I suspect). This could be important, since some
&gt;&gt;&gt; messages received may 'relate' to others already loaded and, given
&gt;&gt;&gt; what I said about not having all of the data in the XML to form all of
&gt;&gt;&gt; the keys, this might be a significant problem.
&gt;&gt;&gt;
&gt;&gt;&gt; It is my intention to look into other options (we have recently
&gt;&gt;&gt; acquired DB2 v9 which includes pureXML) but as is so often the case,
&gt;&gt;&gt; the immediate project delivery pressures won't allow it. The PM is
&gt;&gt;&gt; very nervous about using any new tech, perhaps justifiably, but my
&gt;&gt;&gt; sense of unease is more to do with the perhaps misplaced assumption
&gt;&gt;&gt; that 'tried and tested' tech like relational databases will always
&gt;&gt;&gt; provide a workable solution, imho sometimes they actually represent
&gt;&gt;&gt; the most significant constraint.
&gt;&gt;&gt;
&gt;&gt;&gt; So yes, back to the actual problem. How to come up with a database
&gt;&gt;&gt; design that provides the capability of staging the shredded XML in a
&gt;&gt;&gt; reasonable efficient manner and enables it to be loaded from XML
&gt;&gt;&gt; instances received, again efficiently (ideally without 100's of tables
&gt;&gt;&gt; and joins to negotiate). As far as efficiency of storage, well that
&gt;&gt;&gt; MAY be a concern although perhaps not a huge one so long as the Db
&gt;&gt;&gt; doesn't bloat up too much if normalisation is preferred over extra
&gt;&gt;&gt; tables.
&gt;&gt;&gt;
&gt;&gt;&gt; Please add your thoughts and suggestions and experiences as you are
&gt;&gt;&gt; able. Nothing is too trivial (or rude) to mention (i.e. if you want to
&gt;&gt;&gt; say don't do this if you want to keep your sanity, thats ok).
&gt;&gt;&gt;
&gt;&gt;&gt; regards
&gt;&gt;&gt;
&gt;&gt;&gt; Fraser.
&gt;&gt;&gt;
&gt;&gt;&gt; I'm
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; 2009/11/1 Jim Tivy &lt;&#106;&#105;m&#116;&#x40;blue&#115;&#x74;&#x72;eam&#46;&#x63;om&gt;:
&gt;&gt;&gt;&gt; Interesting post, but I am not sure that &quot;now is the time to talk of
&gt; many
&gt;&gt;&gt;&gt; things&quot;.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Let me try to focus:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Proper software execution comes from the choice of appropriate
&gt;&gt;&gt;&gt; actions/technologies to match the driving requirements.  But more
&gt;&gt;&gt;&gt; importantly, the greatest Wisdom, is to frame the driving requirements
&gt;&gt;&gt;&gt; correctly before &quot;going off half cocked&quot; or doing something that is
&gt;&gt;&gt;&gt; unnecessary and unwarranted.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; So lets start by framing the requirements again:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Fraser Gofin wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt; The basics are we receive XML messages from an external trading partner
&gt;&gt;&gt; and
&gt;&gt;&gt;&gt; process those messages, enriching and routing to a number of internal
&gt;&gt;&gt;&gt; subscriber applications. One of these applications is MI and the deal
&gt;&gt; here
&gt;&gt;&gt;&gt; is that they want the data to been put into a relational database so
&gt; that
&gt;&gt;&gt;&gt; they can create a number of interfaces 'files' which are sent to still
&gt;&gt;&gt; more
&gt;&gt;&gt;&gt; applications.
&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; OR
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt; I am mainly interested in the process of LOADING XML data to a database
&gt;&gt;&gt;&gt; rather than extracting (at least for the purposes of this discussion).
&gt;&gt;&gt;&gt; &quot;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; It is possible that the &quot;mother persistent application datamodel&quot; is
&gt;&gt;&gt;&gt; contained in the relational database in all its normalized glory.  If
&gt; so,
&gt;&gt;&gt;&gt; then, &quot;processing the messages&quot; is simply a &quot;data import&quot; operation.  So
&gt;&gt;&gt; the
&gt;&gt;&gt;&gt; question is, how do I get XML X* to tables T*.  It would strike me that
&gt;&gt;&gt; lots
&gt;&gt;&gt;&gt; of people are doing this.  Are there common techniques and technologies
&gt;&gt;&gt; for
&gt;&gt;&gt;&gt; doing this import?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Fraser, is that a proper framing of the question/requirements?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Jim
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; -----Original Message-----
&gt;&gt;&gt;&gt; From: Petite Abeille [<A  HREF="mailto:p&#x65;tit&#101;.a&#98;&#101;&#x69;&#108;&#108;&#x65;&#64;gm&#97;&#105;&#x6c;.&#x63;o&#x6d;">mailto:p&#x65;tit&#101;.a&#98;&#101;&#x69;&#108;&#108;&#x65;&#64;gm&#97;&#105;&#x6c;.&#x63;o&#x6d;</A>]
&gt;&gt;&gt;&gt; Sent: Sunday, November 01, 2009 9:56 AM
&gt;&gt;&gt;&gt; To: &#120;m&#x6c;-&#100;ev&#x40;li&#x73;ts.&#120;ml.&#x6f;rg
&gt;&gt;&gt;&gt; Subject: Re:  Shredding XML
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Oct 29, 2009, at 10:20 PM, Fraser Goffin wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; opinions on the subject of decomposing XML into relational databases
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Outside of the most trivial case, this is a major PITA of the same
&gt;&gt;&gt;&gt; epic proportion as the object-relational one:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt; http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Good luck.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt;&gt; Or unsubscribe: x&#109;&#108;-d&#x65;v&#45;uns&#117;&#x62;&#x73;cr&#x69;&#x62;&#101;&#x40;li&#115;&#x74;&#x73;&#x2e;&#x78;m&#x6c;&#x2e;&#111;&#114;g
&gt;&gt;&gt;&gt; subscribe: &#x78;m&#x6c;-dev-&#x73;&#x75;bs&#x63;&#114;ib&#x65;&#64;&#x6c;i&#115;&#x74;&#x73;.&#120;m&#108;.or&#103;
&gt;&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt;&gt; Or unsubscribe: &#120;&#x6d;&#x6c;-dev-un&#115;&#x75;bscrib&#x65;&#64;&#108;&#105;&#115;ts&#46;xml&#46;o&#x72;&#x67;
&gt;&gt;&gt;&gt; subscribe: x&#x6d;&#x6c;-de&#118;&#45;&#115;u&#98;&#115;&#x63;r&#x69;b&#101;&#x40;li&#115;&#116;&#x73;.&#x78;m&#108;&#46;&#111;&#114;g
&gt;&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________________________________
&gt;&gt;&gt;
&gt;&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;&gt;
&gt;&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt;&gt; Or unsubscribe: xml&#x2d;&#100;&#x65;v&#x2d;u&#110;s&#x75;b&#115;&#99;ribe&#x40;li&#x73;t&#115;.xml.org
&gt;&gt;&gt; subscribe: &#120;m&#108;&#45;dev-su&#98;&#x73;&#99;r&#105;&#98;e&#64;lists.xm&#x6c;.o&#114;g
&gt;&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________________________________
&gt;&gt;
&gt;&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt;&gt; to support XML implementation and development. To minimize
&gt;&gt; spam in the archives, you must subscribe before posting.
&gt;&gt;
&gt;&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt;&gt; Or unsubscribe: &#x78;ml&#x2d;d&#x65;&#118;-u&#110;s&#117;b&#x73;&#99;&#x72;ibe&#64;&#x6c;&#105;s&#x74;&#x73;.xml.&#111;rg
&gt;&gt; subscribe: xml-de&#x76;-su&#x62;&#x73;&#99;&#114;ibe&#x40;&#x6c;&#105;s&#116;&#115;&#x2e;&#x78;&#109;l&#46;org
&gt;&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt;&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; _______________________________________________________________________
&gt;
&gt; XML-DEV is a publicly archived, unmoderated list hosted by OASIS
&gt; to support XML implementation and development. To minimize
&gt; spam in the archives, you must subscribe before posting.
&gt;
&gt; [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
&gt; Or unsubscribe: x&#109;l-&#x64;ev&#45;&#117;&#x6e;&#x73;&#x75;b&#x73;&#99;&#x72;i&#98;e&#x40;li&#115;t&#115;.xml.&#x6f;&#x72;g
&gt; subscribe: x&#x6d;l&#45;&#100;e&#118;-subsc&#114;&#x69;b&#x65;&#x40;&#108;&#x69;&#x73;t&#115;&#46;&#120;m&#108;.&#111;&#x72;&#103;
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;
&gt;
&gt;
</pre>

]]></description><link>http://www.stylusstudio.com/xmldev/200911/post60010.html</link><pubDate>Wed, 04 Nov 2009 16:20:00 GMT</pubDate></item><item><title>How to apply OASIS UBL NDR 2.0 to your own UML class model</title><description><![CDATA[<!--X-Body-of-Message-->
<table width="100%"><tr><td style="a:link { color: blue } a:visited { color: purple } ">





<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Data Management Solutions is pleased to announce MXV -&nbsp; a
Model-driven XML Vocabulary design solution:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Find out how your own UML class model can be implemented in a
style very similar to <a title="UBL Tutorial" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://schemas.stylusstudio.com/ubl/index.html">OASIS UBL</a> NDR 2.0 and how to derive your own&nbsp; <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/w3c/">W3C</a>
XML Library and Document Schemas from UML.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Two implementation options:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + Entirely manual, or<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + Use a popular modelling <a title="learn more" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml/editor/">tool</a>,
and optionally <a title="deploy" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/deployment/">deploy</a>&nbsp; MXV Productivity Tools to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - perform NDR compliance
checks on UML and <a title="XML Schema" class="kwLink" onMouseOver="stm(Text[0],Style[0])" onMouseOut="htm()" href="http://www.stylusstudio.com/xml_schema.html">XML Schema</a> models<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -
synchronis