<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
  <channel>
    <title>
Altova Mailing List: xml-dev
    </title>
    <link>http://www.altova.com/</link>
    <description>Altova accelerates application development and data management projects with software and solutions that enhance productivity and maximize results. As an innovative, customer-focused company and the creator of XMLSpy and other leading XML, data administration, UML, and Web services tools, Altova is the choice of over 3 million clients worldwide, including virtually every Fortune 500 company. With customers ranging from vast development teams in the worldâ€™s largest organizations to progressive one-person shops, Altovaâ€™s line of software applications fulfills a broad spectrum of business needs. Altova is an active member of the World Wide Web Consortium (W3C) and Object Management Group (OMG) and is committed to delivering standards-based platform-independent solutions that are powerful, affordable, and easy to use. Altova was founded in 1992 and has headquarters in Beverly, Massachusetts and Vienna, Austria.</description>
    <language>en-us</language>
    <copyright>Copyright Â© 2005, 2006, 2007 Altova GmbH. All rights reserved. Altova, XMLSpy, MapForce, StyleVision, SemanticWorks, SchemaAgent, UModel, DiffDog, and Authentic are trademarks and/or registered trademarks of Altova GmbH in the United States and/or other countries. The names of and reference to other companies and products mentioned herein may be the trademarks of their respective owners.</copyright>
    <pubDate>Tue, 03 Jun 2008 10:00:00 EDT</pubDate>
    <lastBuildDate>Tue, 03 Jun 2008 10:00:00 EDT</lastBuildDate>
    <generator>Authentic RSS Editor, visit www.altova.com for details</generator>
    <managingEditor>pr@altova.com</managingEditor>
    <webMaster>webmaster@altova.com</webMaster>
    <image>
      <url>http://www.altova.com/images/logos/altova_right_120.gif</url>
      <title>ALTOVA</title>
      <link>http://www.altova.com/</link>
      <width>120</width>
      <height>24</height>
      <description>Altova Logo</description>
    </image>

<item>
<title>[xml-dev] [Summary] The XML Namespace ... It is implicitly declared; - 9/4/2010 3:17:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

I summarized our recent discussions on the XML namespace:

http://www.xfront.com/The-XML-namespace.pdf

Thanks to the following people for their contributions:

- David Carlisle
- Roger Costello
- Michael Glavassevich
- Michael Kay
- David Lee
- Evan Lenz
- Amelia Lewis
- Simon St. Laurent
- Hermann Stamm-Wilbrandt
- Andrew Welch


/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201009/msg1000315012.html</link>
</item><item>
<title>Re: [xml-dev] Using the 4 Great XML Namespace Attributes - 9/1/2010 10:09:00 PM</title>
<description><![CDATA[<pre>On 01/09/2010 19:49, Costello, Roger L. wrote:
&gt; Hi Folks,
&gt;
&gt; This is an extension of the discussion of a couple days ago where we
&gt; discussed in-scope namespaces. It was noted then that the XML
&gt; namespace is implicitly declared in every XML instance document. This
&gt; message discusses how to use the 4 great attributes in the XML
&gt; namespace. I welcome your comments.  /Roger

&gt; --------------------------------------------------- Enabling Use of
&gt; the Great XML Namespace Attributes
&gt; --------------------------------------------------- Recall that the
&gt; XML namespace (and the xml: prefix) is implicitly declared in every
&gt; XML document. Thus, XML documents are primed for dropping the
&gt; xml:lang attribute into any element, dropping the xml:id attribute
&gt; into any element, and so forth.
&gt;
&gt; While the XML namespace is automatically available in every instance
&gt; document, the attributes in it cannot be used unless you've
&gt; explicitly designed your XML Schema to allow their use. Here's what
&gt; you need to add to each element declaration:
&gt;
&gt; &lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;/&gt;
&gt;
&gt; It says that any of the 4 great attributes from the XML namespace can
&gt; be dropped into the element.



You assume without saying so that XSD schema is used. there is no need 
to use an XSD schema before a document is used (fortunately!).
&quot;cannot be used unless you've explicitly designed your XML Schema to 
allow their use&quot; is rather misleading.

Also more importantly you fail to mention the different status of the 
xml attributes. xml:lang and xml:space are defined in the XML Rec, so 
are available for use with any XML parser.

xml:base and xml:id are defined in two separate specifications that 
systems may or may not implement, depending.

David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201009/msg1000314976.html</link>
</item><item>
<title>Re: [xml-dev] Using the 4 Great XML Namespace Attributes - 9/1/2010 8:50:00 PM</title>
<description><![CDATA[<pre>&gt; --------------------------------
&gt; The Great XML Namespace Attributes
&gt; --------------------------------
&gt; The XML namespace contains 4 great attributes:
&gt;
&gt; 1. &#160; &#160; &#160;The lang attribute: use this on an element to state the language of its content.
&gt; 2. &#160; &#160; &#160;The id attribute: use this on an element to uniquely identify it.
&gt; 3. &#160; &#160; &#160;The space attribute: use this on an element to state that you want its whitespace nodes preserved during processing.
&gt; 4. &#160; &#160; &#160;The base attribute: use this on an element to create a base URL; URL's within the element can be relative to the base URL.

Are they really great?  Should they be used at all?

Take xml:lang as an example, and it's use in XHTML.  Should you define
the language of the content at the XHTML level, or at the XML level?

To me it only makes sense to define it in XHTML, but if you read this:

http://www.w3.org/TR/i18n-html-tech-lang/#ri20040429.092928424

...it's a bit of mess, ending with it has to be defined it at the xml
level.  I don't know why - is the intention the xml parser filters the
non-applicable languages, so the receiving application doesn't know
they exist?  What if you want to present a choice of available
languages?

A similar thing applies for id - do you want your parse to fail with a
message from the xml parser, or let your application manage uniqueness
and the duplicate id failure messages.


-- 
Andrew Welch
http://andrewjwelch.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201009/msg1000314974.html</link>
</item><item>
<title>[xml-dev] Using the 4 Great XML Namespace Attributes - 9/1/2010 7:34:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

This is an extension of the discussion of a couple days ago where we discussed in-scope namespaces. It was noted then that the XML namespace is implicitly declared in every XML instance document. This message discusses how to use the 4 great attributes in the XML namespace. I welcome your comments.  /Roger

--------------------------------
Summary
--------------------------------
HTML has some great attributes--id, class, title--that can be dropped into just about any element. 

The XML namespace has 4 great attributes: xml:lang, xml:id, xml:space, xml:base. XML instance document authors should be able to drop those 4 great attributes into just about any element. The XML namespace is implicitly declared in every instance document, so the 4 great attributes are primed for use. However, to use them you need to design your XML Schema so that every element declaration has this:

&lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;/&gt;


--------------------------------
The Great HTML Attributes
--------------------------------
HTML has some great attributes--id, class, and title--that can be dropped into just about every element. Here's an example:

&lt;div id=&quot;Mercury&quot;&gt;Mercury has a diameter 
       of &lt;span class=&quot;diameter&quot;&gt;3,032.4 miles&lt;/span&gt;.
       It's distance from earth is 
       &lt;span class=&quot;distance&quot;&gt;57 million miles&lt;/span&gt;,
       at the closest point in its orbit.&lt;/div&gt;

This is very nice.


--------------------------------
The Great XML Namespace Attributes
--------------------------------
The XML namespace contains 4 great attributes:

1.	The lang attribute: use this on an element to state the language of its content.
2.	The id attribute: use this on an element to uniquely identify it.
3.	The space attribute: use this on an element to state that you want its whitespace nodes preserved during processing.
4.	The base attribute: use this on an element to create a base URL; URL's within the element can be relative to the base URL.

These are attributes that instance document authors should be able to drop into just about every element in their XML document. Here are some examples:

&lt;movie&gt;
	&lt;title&gt;The Laughing Cow&lt;/title&gt;
	&lt;title xml:lang=&quot;fr&quot;&gt;La Vache Qui Rit&lt;/title&gt;
&lt;/movie&gt;


&lt;Book xml:id=&quot;RB&quot;&gt;
        &lt;Title&gt;Illusions The Adventures of a Reluctant Messiah&lt;/Title&gt;
        &lt;Author&gt;Richard Bach&lt;/Author&gt;
        &lt;Date&gt;1977&lt;/Date&gt;
        &lt;ISBN&gt;0-440-34319-4&lt;/ISBN&gt;
        &lt;Publisher&gt;Dell Publishing Co.&lt;/Publisher&gt;
&lt;/Book&gt;


&lt;f xml:space=&quot;preserve&quot;&gt;       &lt;/f&gt;


&lt;Books xml:base=&quot;http://www.xfront.com/schemas/&quot;&gt;
        &lt;Book xsi:schemaLocation=&quot;Book.xsd&quot; ...&gt;
        ...
        &lt;Book xsi:schemaLocation=&quot;Book.xsd&quot; ...&gt;
        ...
        &lt;Book xsi:schemaLocation=&quot;Book.xsd&quot; ...&gt;
        ...
&lt;/Books&gt;

This is very nice.


---------------------------------------------------
Enabling Use of the Great XML Namespace Attributes
---------------------------------------------------
Recall that the XML namespace (and the xml: prefix) is implicitly declared in every XML document. Thus, XML documents are primed for dropping the xml:lang attribute into any element, dropping the xml:id attribute into any element, and so forth. 

While the XML namespace is automatically available in every instance document, the attributes in it cannot be used unless you've explicitly designed your XML Schema to allow their use. Here's what you need to add to each element declaration:

&lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;/&gt;

It says that any of the 4 great attributes from the XML namespace can be dropped into the element.

Here's an example where I declare a &lt;BookStore&gt; element and state that any of the 4 great attributes from the XML namespace can be dropped into it:

&lt;element name=&quot;BookStore&quot;&gt;
     &lt;complexType&gt;
            &lt;sequence&gt;
                ...
            &lt;/sequence&gt;
            &lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;/&gt;
     &lt;/complexType&gt;
&lt;/element&gt;

You must do this for every element declaration. Yes, it is tedious. The good news is that in XML Schema 1.1 you will be able to declare &quot;schema-wide attributes.&quot; Thus, in one fell swoop you will be able to state that the 4 great XML namespace attributes are available on every element.


--------------------------------
Example
--------------------------------
Create an XML Schema for BookStore. BookStore contains Books, which contain Title, Author, Date, ISBN, and Publisher. Design the schema so that instance document authors can drop into any elements any of the 4 great XML namespace attributes. Here is a sample instance document:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;BookStore xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xml:lang=&quot;en&quot;&gt;
                           
        &lt;Book xml:id=&quot;PM&quot; xml:space=&quot;preserve&quot;&gt;
                &lt;Title&gt;My Life and Times&lt;/Title&gt;
                &lt;Author&gt;Paul McCartney&lt;/Author&gt;
                &lt;Date&gt;1998&lt;/Date&gt;
                &lt;ISBN&gt;1-56592-235-2&lt;/ISBN&gt;
                &lt;Publisher&gt;McMillin Publishing&lt;/Publisher&gt;
        &lt;/Book&gt;
        
        &lt;Book xml:id=&quot;RB&quot;&gt;
                &lt;Title&gt;Illusions The Adventures of a Reluctant Messiah&lt;/Title&gt;
                &lt;Author&gt;Richard Bach&lt;/Author&gt;
                &lt;Date&gt;1977&lt;/Date&gt;
                &lt;ISBN&gt;0-440-34319-4&lt;/ISBN&gt;
                &lt;Publisher&gt;Dell Publishing Co.&lt;/Publisher&gt;
        &lt;/Book&gt;
        
        &lt;Book xml:id=&quot;JK&quot;&gt;
                &lt;Title&gt;The First and Last Freedom&lt;/Title&gt;
                &lt;Author&gt;J. Krishnamurti&lt;/Author&gt;
                &lt;Date&gt;1954&lt;/Date&gt;
                &lt;ISBN&gt;0-06-064831-7&lt;/ISBN&gt;
                &lt;Publisher&gt;Harper &amp;amp; Row&lt;/Publisher&gt;
        &lt;/Book&gt;
        
&lt;/BookStore&gt;

Note the use of xml:lang, xml:id, xml:space, and xml:base.

Here is the XML Schema:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;schema xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot;
        targetNamespace=&quot;http://www.bookstore.org&quot;
        xmlns:bk=&quot;http://www.bookstore.org&quot;
        elementFormDefault=&quot;qualified&quot;&gt;
    
    &lt;xsd:import namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;
                schemaLocation=&quot;http://www.w3.org/2001/xml.xsd&quot;/&gt;
    
    &lt;element name=&quot;BookStore&quot;&gt;
        &lt;complexType&gt;
            &lt;sequence&gt;
                &lt;element name=&quot;Book&quot; maxOccurs=&quot;unbounded&quot;&gt;
                    &lt;complexType&gt;
                        &lt;sequence&gt;
                            &lt;element name=&quot;Title&quot; 
                                     type=&quot;bk:safe-string-plus-XML-attributes&quot;/&gt;
                            &lt;element name=&quot;Author&quot; 
                                     type=&quot;bk:safe-string-plus-XML-attributes&quot;/&gt;
                            &lt;element name=&quot;Date&quot; 
                                     type=&quot;bk:year-plus-XML-attributes&quot;/&gt;
                            &lt;element name=&quot;ISBN&quot; 
                                     type=&quot;bk:safe-string-plus-XML-attributes&quot;/&gt;
                            &lt;element name=&quot;Publisher&quot; 
                                     type=&quot;bk:safe-string-plus-XML-attributes&quot;/&gt;
                        &lt;/sequence&gt;
                        &lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;/&gt;
                    &lt;/complexType&gt;
                &lt;/element&gt;
            &lt;/sequence&gt;
            &lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;/&gt;
        &lt;/complexType&gt;
    &lt;/element&gt;
    
    &lt;simpleType name=&quot;safe-string&quot;&gt;
        &lt;restriction base=&quot;string&quot;&gt;
            &lt;maxLength value=&quot;100&quot; /&gt;
            &lt;pattern value=&quot;[&amp;#09;-&amp;#127;]*&quot; /&gt; &lt;!-- ASCII characters --&gt;
        &lt;/restriction&gt;
    &lt;/simpleType&gt;
    
    &lt;complexType name=&quot;safe-string-plus-XML-attributes&quot;&gt;
        &lt;simpleContent&gt;
            &lt;extension base=&quot;bk:safe-string&quot;&gt;
                &lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot; /&gt;
            &lt;/extension&gt;
        &lt;/simpleContent&gt;
    &lt;/complexType&gt;
    
    &lt;complexType name=&quot;year-plus-XML-attributes&quot;&gt;
        &lt;simpleContent&gt;
            &lt;extension base=&quot;gYear&quot;&gt;
                &lt;anyAttribute namespace=&quot;http://www.w3.org/XML/1998/namespace&quot; /&gt;
            &lt;/extension&gt;
        &lt;/simpleContent&gt;
    &lt;/complexType&gt;
    
&lt;/schema&gt;

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201009/msg1000314973.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 9:19:00 PM</title>
<description><![CDATA[<pre>&gt; That's an odd definition of &quot;namespace node,&quot; to my mind.  You're
&gt; asserting that each element node has three namespace &quot;nodes&quot; associated
&gt; with it?

You might think it odd, but that is exactly what the XDM data model (and 
the XPath 1.0 data model before it) defines.

And it has some considerable advantages, notably that when you copy any 
subtree rooted at an element node, the copy automatically retains the 
full namespace context.

However, it has to be said that the model has confused a great many 
people, because (a) it is somewhat distantly related to the lexical view 
of XML that they see on the screen in front of them, and (b) they find 
it hard to envisage how it might be efficiently implemented. These two 
factors have led to a great deal of resistance to the model.

I think that if XQuery Update had bought in fully to the namespace node 
model, the namespace-related semantics of XQuery Update would probably 
be a lot cleaner.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314924.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 8:42:00 PM</title>
<description><![CDATA[<pre>I dont belive thats teh same thing as saying there are 21 ''namespace 
nodes''
The question being answered by

$ xpath++ &quot;count(//namespace::*)&quot; nlist.xml


Is (IMHO)
    SUM (
       For each Node
          Count the number of active namespace declarations
    )


Well maybe its pedantic asking of thast a unique ''node'' or not.





On 8/30/2010 3:50 PM, Hermann Stamm-Wilbrandt wrote:
&gt;&gt; Lesson Learned: Implicit on the root element of every XML document is
&gt; this namespace declaration:
&gt;
&gt;&gt;        &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;
&gt;
&gt; 1) Not sure about &quot;Implicit on the root element&quot; (xpath++ from [1]):
&gt; $ xpath++ &quot;count(//namespace::*)&quot; nlist.xml
&gt; 21
&gt; $ xpath++ &quot;count(/namespace::*)&quot; nlist.xml
&gt; 0
&gt; $ xpath++ &quot;count(//*)&quot; nlist.xml
&gt; 7
&gt; $ xpath++ &quot;count(/|//*)&quot; nlist.xml
&gt; 8
&gt; $ xpath++ &quot;count(/*/namespace::*)&quot; nlist.xml
&gt; 3
&gt; $
&gt;
&gt;
&gt; 2) The implicit xml namespace declaration was the reason for
&gt; &quot; and name()!=''xml'' &quot; in this XML serialization ([2]).
&gt;
&gt;      &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;        &lt;xsl:if test=&quot;not(.=../../namespace::*) and name()!=''xml''&quot;&gt;
&gt;          &lt;xsl:value-of select= &quot;concat('' xmlns'',
&gt;                                         substring('':'',1 div boolean(name
&gt; ())),
&gt;                                         name(),''=&amp;quot;'',.,''&amp;quot;'')&quot; /&gt;
&gt;        &lt;/xsl:if&gt;
&gt;      &lt;/xsl:for-each&gt;
&gt;
&gt;
&gt;
&gt; [1]
&gt; https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14455521&amp;#14511477
&gt; [2]
&gt; http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00186.html
&gt;
&gt; Mit besten Gruessen / Best wishes,
&gt;
&gt; Hermann Stamm-Wilbrandt
&gt; Developer, XML Compiler, L3
&gt; WebSphere DataPower SOA Appliances
&gt; ----------------------------------------------------------------------
&gt; IBM Deutschland Research&amp;  Development GmbH
&gt; Vorsitzender des Aufsichtsrats: Martin Jetter
&gt; Geschaeftsfuehrung: Dirk Wittkopp
&gt; Sitz der Gesellschaft: Boeblingen
&gt; Registergericht: Amtsgericht Stuttgart, HRB 243294
&gt;
&gt;
&gt;
&gt;
&gt; From:       &quot;Costello, Roger L.&quot;&lt;costello@mitre.org&gt;
&gt; To:         &quot;xml-dev@lists.xml.org&quot;&lt;xml-dev@lists.xml.org&gt;
&gt; Date:       08/30/2010 08:00 PM
&gt; Subject:    [xml-dev] Quiz: how many namespaces are in scope?
&gt;
&gt;
&gt;
&gt; Hi Folks,
&gt;
&gt; Consider this XML document:
&gt;
&gt; &lt;?xml version=&quot;1.0&quot;?&gt;
&gt; &lt;N1:NumberList xmlns:N1=&quot;http://www.example1.org&quot;
&gt;                 xmlns:N2=&quot; http://www.example2.org &quot;&gt;
&gt;          &lt;Number&gt;23&lt;/Number&gt;
&gt;          &lt;Number&gt;41&lt;/Number&gt;
&gt;          &lt;Number&gt;70&lt;/Number&gt;
&gt;          &lt;Number&gt;103&lt;/Number&gt;
&gt;          &lt;Number&gt;99&lt;/Number&gt;
&gt;          &lt;Number&gt;6&lt;/Number&gt;
&gt; &lt;/N1:NumberList&gt;
&gt;
&gt; For the first child element:
&gt;
&gt;          &lt;Number&gt;23&lt;/Number&gt;
&gt;
&gt; what namespaces are in scope?
&gt;
&gt; I created an XSLT template to output the&lt;Number&gt;  element''s in-scope
&gt; namespaces:
&gt;
&gt; -------------------------------------------
&gt; &lt;xsl:template match=&quot;*&quot;&gt;
&gt;         &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;             &lt;xsl:value-of select=&quot;.&quot;/&gt;&lt;/p&gt;
&gt;         &lt;/xsl:for-each&gt;
&gt; &lt;/xsl:template&gt;
&gt; -------------------------------------------
&gt;
&gt; Here is the output:
&gt;
&gt;        http://www.w3.org/XML/1998/namespace
&gt;
&gt;        http://www.example1.org
&gt;
&gt;        http://www.example2.org
&gt;
&gt; There are three (3) in-scope namespaces.
&gt;
&gt; Lesson Learned: Implicit on the root element of every XML document is this
&gt; namespace declaration:
&gt;
&gt;        &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;
&gt;
&gt; NOTE: it is illegal to explicitly declare the xml namespace. The xml
&gt; namespace is built into every XML application.
&gt;
&gt; Since the xml namespace is implicitly declared in every XML document, you
&gt; can immediately use the xml:lang attribute and the xml:space attribute,
&gt; e.g.,
&gt;
&gt; &lt;movie&gt;
&gt;               &lt;title&gt;The Laughing Cow&lt;/title&gt;
&gt;               &lt;title xml:lang=&quot;fr&quot;&gt;La Vache Qui Rit&lt;/title&gt;
&gt; &lt;/movie&gt;
&gt;
&gt; Here is an XSLT template to output the in-scope namespaces and their
&gt; prefixes:
&gt;
&gt; -------------------------------------------
&gt; &lt;xsl:template match=&quot;*&quot;&gt;
&gt;          &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;              Namespace in scope =&lt;xsl:value-of select=&quot;.&quot;/&gt;
&gt;              Namespace prefix =&lt;xsl:value-of select=&quot;name(.)&quot;/&gt;
&gt;          &lt;/xsl:for-each&gt;
&gt; &lt;/xsl:template&gt;
&gt; -------------------------------------------
&gt;
&gt; Here is the output:
&gt;
&gt;        Namespace in scope = http://www.w3.org/XML/1998/namespace
&gt;        Namespace prefix = xml
&gt;
&gt;        Namespace in scope = http://www.example1.org
&gt;        Namespace prefix = N1
&gt;
&gt;        Namespace in scope = http://www.example2.org
&gt;        Namespace prefix = N2
&gt;
&gt; QUESTIONS
&gt;
&gt; 1. Have I correctly analyzed the situation (regarding in-scope namespaces)?
&gt;
&gt; 2. What else would you add?
&gt;
&gt; /Roger
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&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;
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


-- 
David A. Lee
dlee@calldei.com
http://www.xmlsh.org


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314922.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 8:02:00 PM</title>
<description><![CDATA[<pre>I dont belive thats teh same thing as saying there are 21 'namespace 
nodes'
The question being answered by

$ xpath++ &quot;count(//namespace::*)&quot; nlist.xml


Is (IMHO)
    SUM (
       For each Node
          Count the number of active namespace declarations
    )


Well maybe its pedantic asking of thast a unique 'node' or not.





On 8/30/2010 3:50 PM, Hermann Stamm-Wilbrandt wrote:
&gt;&gt; Lesson Learned: Implicit on the root element of every XML document is
&gt; this namespace declaration:
&gt;
&gt;&gt;        &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;
&gt;
&gt; 1) Not sure about &quot;Implicit on the root element&quot; (xpath++ from [1]):
&gt; $ xpath++ &quot;count(//namespace::*)&quot; nlist.xml
&gt; 21
&gt; $ xpath++ &quot;count(/namespace::*)&quot; nlist.xml
&gt; 0
&gt; $ xpath++ &quot;count(//*)&quot; nlist.xml
&gt; 7
&gt; $ xpath++ &quot;count(/|//*)&quot; nlist.xml
&gt; 8
&gt; $ xpath++ &quot;count(/*/namespace::*)&quot; nlist.xml
&gt; 3
&gt; $
&gt;
&gt;
&gt; 2) The implicit xml namespace declaration was the reason for
&gt; &quot; and name()!='xml' &quot; in this XML serialization ([2]).
&gt;
&gt;      &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;        &lt;xsl:if test=&quot;not(.=../../namespace::*) and name()!='xml'&quot;&gt;
&gt;          &lt;xsl:value-of select= &quot;concat(' xmlns',
&gt;                                         substring(':',1 div boolean(name
&gt; ())),
&gt;                                         name(),'=&amp;quot;',.,'&amp;quot;')&quot; /&gt;
&gt;        &lt;/xsl:if&gt;
&gt;      &lt;/xsl:for-each&gt;
&gt;
&gt;
&gt;
&gt; [1]
&gt; https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14455521&amp;#14511477
&gt; [2]
&gt; http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00186.html
&gt;
&gt; Mit besten Gruessen / Best wishes,
&gt;
&gt; Hermann Stamm-Wilbrandt
&gt; Developer, XML Compiler, L3
&gt; WebSphere DataPower SOA Appliances
&gt; ----------------------------------------------------------------------
&gt; IBM Deutschland Research&amp;  Development GmbH
&gt; Vorsitzender des Aufsichtsrats: Martin Jetter
&gt; Geschaeftsfuehrung: Dirk Wittkopp
&gt; Sitz der Gesellschaft: Boeblingen
&gt; Registergericht: Amtsgericht Stuttgart, HRB 243294
&gt;
&gt;
&gt;
&gt;
&gt; From:       &quot;Costello, Roger L.&quot;&lt;costello@mitre.org&gt;
&gt; To:         &quot;xml-dev@lists.xml.org&quot;&lt;xml-dev@lists.xml.org&gt;
&gt; Date:       08/30/2010 08:00 PM
&gt; Subject:    [xml-dev] Quiz: how many namespaces are in scope?
&gt;
&gt;
&gt;
&gt; Hi Folks,
&gt;
&gt; Consider this XML document:
&gt;
&gt; &lt;?xml version=&quot;1.0&quot;?&gt;
&gt; &lt;N1:NumberList xmlns:N1=&quot;http://www.example1.org&quot;
&gt;                 xmlns:N2=&quot; http://www.example2.org &quot;&gt;
&gt;          &lt;Number&gt;23&lt;/Number&gt;
&gt;          &lt;Number&gt;41&lt;/Number&gt;
&gt;          &lt;Number&gt;70&lt;/Number&gt;
&gt;          &lt;Number&gt;103&lt;/Number&gt;
&gt;          &lt;Number&gt;99&lt;/Number&gt;
&gt;          &lt;Number&gt;6&lt;/Number&gt;
&gt; &lt;/N1:NumberList&gt;
&gt;
&gt; For the first child element:
&gt;
&gt;          &lt;Number&gt;23&lt;/Number&gt;
&gt;
&gt; what namespaces are in scope?
&gt;
&gt; I created an XSLT template to output the&lt;Number&gt;  element's in-scope
&gt; namespaces:
&gt;
&gt; -------------------------------------------
&gt; &lt;xsl:template match=&quot;*&quot;&gt;
&gt;         &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;             &lt;xsl:value-of select=&quot;.&quot;/&gt;&lt;/p&gt;
&gt;         &lt;/xsl:for-each&gt;
&gt; &lt;/xsl:template&gt;
&gt; -------------------------------------------
&gt;
&gt; Here is the output:
&gt;
&gt;        http://www.w3.org/XML/1998/namespace
&gt;
&gt;        http://www.example1.org
&gt;
&gt;        http://www.example2.org
&gt;
&gt; There are three (3) in-scope namespaces.
&gt;
&gt; Lesson Learned: Implicit on the root element of every XML document is this
&gt; namespace declaration:
&gt;
&gt;        &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;
&gt;
&gt; NOTE: it is illegal to explicitly declare the xml namespace. The xml
&gt; namespace is built into every XML application.
&gt;
&gt; Since the xml namespace is implicitly declared in every XML document, you
&gt; can immediately use the xml:lang attribute and the xml:space attribute,
&gt; e.g.,
&gt;
&gt; &lt;movie&gt;
&gt;               &lt;title&gt;The Laughing Cow&lt;/title&gt;
&gt;               &lt;title xml:lang=&quot;fr&quot;&gt;La Vache Qui Rit&lt;/title&gt;
&gt; &lt;/movie&gt;
&gt;
&gt; Here is an XSLT template to output the in-scope namespaces and their
&gt; prefixes:
&gt;
&gt; -------------------------------------------
&gt; &lt;xsl:template match=&quot;*&quot;&gt;
&gt;          &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;              Namespace in scope =&lt;xsl:value-of select=&quot;.&quot;/&gt;
&gt;              Namespace prefix =&lt;xsl:value-of select=&quot;name(.)&quot;/&gt;
&gt;          &lt;/xsl:for-each&gt;
&gt; &lt;/xsl:template&gt;
&gt; -------------------------------------------
&gt;
&gt; Here is the output:
&gt;
&gt;        Namespace in scope = http://www.w3.org/XML/1998/namespace
&gt;        Namespace prefix = xml
&gt;
&gt;        Namespace in scope = http://www.example1.org
&gt;        Namespace prefix = N1
&gt;
&gt;        Namespace in scope = http://www.example2.org
&gt;        Namespace prefix = N2
&gt;
&gt; QUESTIONS
&gt;
&gt; 1. Have I correctly analyzed the situation (regarding in-scope namespaces)?
&gt;
&gt; 2. What else would you add?
&gt;
&gt; /Roger
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&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;
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


-- 
David A. Lee
dlee@calldei.com
http://www.xmlsh.org


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314921.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 7:54:00 PM</title>
<description><![CDATA[<pre>&gt; Lesson Learned: Implicit on the root element of every XML document is
this namespace declaration:

&gt;       &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;


1) Not sure about &quot;Implicit on the root element&quot; (xpath++ from [1]):
$ xpath++ &quot;count(//namespace::*)&quot; nlist.xml
21
$ xpath++ &quot;count(/namespace::*)&quot; nlist.xml
0
$ xpath++ &quot;count(//*)&quot; nlist.xml
7
$ xpath++ &quot;count(/|//*)&quot; nlist.xml
8
$ xpath++ &quot;count(/*/namespace::*)&quot; nlist.xml
3
$


2) The implicit xml namespace declaration was the reason for
&quot; and name()!='xml' &quot; in this XML serialization ([2]).

    &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
      &lt;xsl:if test=&quot;not(.=../../namespace::*) and name()!='xml'&quot;&gt;
        &lt;xsl:value-of select= &quot;concat(' xmlns',
                                       substring(':',1 div boolean(name
())),
                                       name(),'=&amp;quot;',.,'&amp;quot;')&quot; /&gt;
      &lt;/xsl:if&gt;
    &lt;/xsl:for-each&gt;



[1]
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14455521&amp;#14511477
[2]
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00186.html

Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research &amp; Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294




From:       &quot;Costello, Roger L.&quot; &lt;costello@mitre.org&gt;
To:         &quot;xml-dev@lists.xml.org&quot; &lt;xml-dev@lists.xml.org&gt;
Date:       08/30/2010 08:00 PM
Subject:    [xml-dev] Quiz: how many namespaces are in scope?



Hi Folks,

Consider this XML document:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;N1:NumberList xmlns:N1=&quot;http://www.example1.org&quot;
               xmlns:N2=&quot; http://www.example2.org &quot;&gt;
        &lt;Number&gt;23&lt;/Number&gt;
        &lt;Number&gt;41&lt;/Number&gt;
        &lt;Number&gt;70&lt;/Number&gt;
        &lt;Number&gt;103&lt;/Number&gt;
        &lt;Number&gt;99&lt;/Number&gt;
        &lt;Number&gt;6&lt;/Number&gt;
&lt;/N1:NumberList&gt;

For the first child element:

        &lt;Number&gt;23&lt;/Number&gt;

what namespaces are in scope?

I created an XSLT template to output the &lt;Number&gt; element's in-scope
namespaces:

-------------------------------------------
&lt;xsl:template match=&quot;*&quot;&gt;
       &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
           &lt;xsl:value-of select=&quot;.&quot;/&gt;&lt;/p&gt;
       &lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
-------------------------------------------

Here is the output:

      http://www.w3.org/XML/1998/namespace

      http://www.example1.org

      http://www.example2.org

There are three (3) in-scope namespaces.

Lesson Learned: Implicit on the root element of every XML document is this
namespace declaration:

      &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;

NOTE: it is illegal to explicitly declare the xml namespace. The xml
namespace is built into every XML application.

Since the xml namespace is implicitly declared in every XML document, you
can immediately use the xml:lang attribute and the xml:space attribute,
e.g.,

&lt;movie&gt;
             &lt;title&gt;The Laughing Cow&lt;/title&gt;
             &lt;title xml:lang=&quot;fr&quot;&gt;La Vache Qui Rit&lt;/title&gt;
&lt;/movie&gt;

Here is an XSLT template to output the in-scope namespaces and their
prefixes:

-------------------------------------------
&lt;xsl:template match=&quot;*&quot;&gt;
        &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
            Namespace in scope = &lt;xsl:value-of select=&quot;.&quot;/&gt;
            Namespace prefix = &lt;xsl:value-of select=&quot;name(.)&quot;/&gt;
        &lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
-------------------------------------------

Here is the output:

      Namespace in scope = http://www.w3.org/XML/1998/namespace
      Namespace prefix = xml

      Namespace in scope = http://www.example1.org
      Namespace prefix = N1

      Namespace in scope = http://www.example2.org
      Namespace prefix = N2

QUESTIONS

1. Have I correctly analyzed the situation (regarding in-scope namespaces)?

2. What else would you add?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314920.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 7:27:00 PM</title>
<description><![CDATA[<pre>On Mon, 30 Aug 2010 11:39:46 -0700, Evan Lenz wrote:
&gt; In my XPath/XSLT training classes, I like to ask this quiz question: 
&gt; How many namespace nodes are in this document? People are usually 
&gt; surprised when they hear the answer is (for this case) 21.

You mean for the document that Roger posted?

&gt;&gt; &lt;?xml version=&quot;1.0&quot;?&gt;
&gt;&gt; &lt;N1:NumberList xmlns:N1=&quot;http://www.example1.org&quot;
&gt;&gt;                xmlns:N2=&quot; http://www.example2.org &quot;&gt;
&gt;&gt;         &lt;Number&gt;23&lt;/Number&gt;
&gt;&gt;         &lt;Number&gt;41&lt;/Number&gt;
&gt;&gt;         &lt;Number&gt;70&lt;/Number&gt;
&gt;&gt;         &lt;Number&gt;103&lt;/Number&gt;
&gt;&gt;         &lt;Number&gt;99&lt;/Number&gt;
&gt;&gt;         &lt;Number&gt;6&lt;/Number&gt;
&gt;&gt; &lt;/N1:NumberList&gt;

That's an odd definition of &quot;namespace node,&quot; to my mind.  You're 
asserting that each element node has three namespace &quot;nodes&quot; associated 
with it?  I would have thought that the only &quot;nodes&quot; were the 
declarations.  So I could see arguments for two, three, or nine such 
nodes (variation depending upon how one handled the implicit xml 
namespace declaration).

If namespaces-in-scope manifest as &quot;nodes,&quot; do other scoped 
abstractions (like xml:lang) do the same?

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
The one thing you can't trade for your heart's desire is your heart.
		-- Miles Vorkosigan
xerom:~/Projects amyzing$ 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314919.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 7:20:00 PM</title>
<description><![CDATA[<pre>How many namespaces fit on the head of a pin?

-- 
Simon St.Laurent
http://simonstl.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314918.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 7:11:00 PM</title>
<description><![CDATA[<pre>Hi Roger,

The only thing I'd change is that it is not illegal to declare the xml 
namespace, provided you use the correct namespace URI. &quot;It MAY, but need 
not, be declared, and MUST NOT be bound to any other namespace name.&quot; [1]

In my XPath/XSLT training classes, I like to ask this quiz question: How 
many namespace nodes are in this document? People are usually surprised 
when they hear the answer is (for this case) 21.

Evan

-- 
Evan Lenz
Lenz Consulting Group, Inc.
http://lenzconsulting.com
+1 (360) 297-0087


[1] http://www.w3.org/TR/xml-names/#xmlReserved

Costello, Roger L. wrote:
&gt; Hi Folks,
&gt;
&gt; Consider this XML document:
&gt;
&gt; &lt;?xml version=&quot;1.0&quot;?&gt;
&gt; &lt;N1:NumberList xmlns:N1=&quot;http://www.example1.org&quot;
&gt;                xmlns:N2=&quot; http://www.example2.org &quot;&gt;
&gt;         &lt;Number&gt;23&lt;/Number&gt;
&gt;         &lt;Number&gt;41&lt;/Number&gt;
&gt;         &lt;Number&gt;70&lt;/Number&gt;
&gt;         &lt;Number&gt;103&lt;/Number&gt;
&gt;         &lt;Number&gt;99&lt;/Number&gt;
&gt;         &lt;Number&gt;6&lt;/Number&gt;
&gt; &lt;/N1:NumberList&gt;
&gt;
&gt; For the first child element: 
&gt;
&gt;         &lt;Number&gt;23&lt;/Number&gt;
&gt;
&gt; what namespaces are in scope?
&gt;
&gt; I created an XSLT template to output the &lt;Number&gt; element's in-scope namespaces:
&gt;
&gt; -------------------------------------------
&gt; &lt;xsl:template match=&quot;*&quot;&gt;
&gt;        &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;            &lt;xsl:value-of select=&quot;.&quot;/&gt;&lt;/p&gt;
&gt;        &lt;/xsl:for-each&gt;
&gt; &lt;/xsl:template&gt;
&gt; -------------------------------------------
&gt;
&gt; Here is the output:
&gt;
&gt;       http://www.w3.org/XML/1998/namespace
&gt;  
&gt;       http://www.example1.org
&gt;  
&gt;       http://www.example2.org
&gt;
&gt; There are three (3) in-scope namespaces.
&gt;
&gt; Lesson Learned: Implicit on the root element of every XML document is this namespace declaration:
&gt;
&gt;       &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;
&gt;
&gt; NOTE: it is illegal to explicitly declare the xml namespace. The xml namespace is built into every XML application.
&gt;
&gt; Since the xml namespace is implicitly declared in every XML document, you can immediately use the xml:lang attribute and the xml:space attribute, e.g.,
&gt;
&gt; &lt;movie&gt;
&gt; 	&lt;title&gt;The Laughing Cow&lt;/title&gt;
&gt; 	&lt;title xml:lang=&quot;fr&quot;&gt;La Vache Qui Rit&lt;/title&gt;
&gt; &lt;/movie&gt;
&gt;
&gt; Here is an XSLT template to output the in-scope namespaces and their prefixes:
&gt;
&gt; -------------------------------------------
&gt; &lt;xsl:template match=&quot;*&quot;&gt;
&gt;         &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
&gt;             Namespace in scope = &lt;xsl:value-of select=&quot;.&quot;/&gt;
&gt;             Namespace prefix = &lt;xsl:value-of select=&quot;name(.)&quot;/&gt;          
&gt;         &lt;/xsl:for-each&gt;
&gt; &lt;/xsl:template&gt;
&gt; -------------------------------------------
&gt;
&gt; Here is the output:
&gt;
&gt;       Namespace in scope = http://www.w3.org/XML/1998/namespace
&gt;       Namespace prefix = xml 
&gt;
&gt;       Namespace in scope = http://www.example1.org
&gt;       Namespace prefix = N1
&gt;
&gt;       Namespace in scope = http://www.example2.org
&gt;       Namespace prefix = N2
&gt;
&gt; QUESTIONS
&gt;
&gt; 1. Have I correctly analyzed the situation (regarding in-scope namespaces)?
&gt;
&gt; 2. What else would you add?
&gt;
&gt; /Roger
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;   



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314917.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 7:03:00 PM</title>
<description><![CDATA[<pre>&quot;Costello, Roger L.&quot; &lt;costello@mitre.org&gt; wrote on 08/30/2010 01:57:35 PM:

&lt;snip/&gt;

&gt; NOTE: it is illegal to explicitly declare the xml namespace. The xml
&gt; namespace is built into every XML application.

It is *legal* [1] to declare it provided that it's bound to the 'xml'
prefix (with namespace name 'http://www.w3.org/XML/1998/namespace').

&gt; Since the xml namespace is implicitly declared in every XML
&gt; document, you can immediately use the xml:lang attribute and the
&gt; xml:space attribute, e.g.,

[1] http://www.w3.org/TR/REC-xml-names/#xmlReserved

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314916.html</link>
</item><item>
<title>Re: [xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 6:59:00 PM</title>
<description><![CDATA[<pre>&gt; NOTE: it is illegal to explicitly declare the xml namespace. The xml namespace is built into every XML application.
&gt;

Wrong. The Namespaces Rec states:

Namespace constraint: Reserved Prefixes and Namespace Names

The prefix xml is by definition bound to the namespace name 
http://www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, 
and MUST NOT be bound to any other namespace name. Other prefixes MUST 
NOT be bound to this namespace name, and it MUST NOT be declared as the 
default namespace.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314914.html</link>
</item><item>
<title>[xml-dev] Quiz: how many namespaces are in scope? - 8/30/2010 6:01:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

Consider this XML document:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;N1:NumberList xmlns:N1=&quot;http://www.example1.org&quot;
               xmlns:N2=&quot; http://www.example2.org &quot;&gt;
        &lt;Number&gt;23&lt;/Number&gt;
        &lt;Number&gt;41&lt;/Number&gt;
        &lt;Number&gt;70&lt;/Number&gt;
        &lt;Number&gt;103&lt;/Number&gt;
        &lt;Number&gt;99&lt;/Number&gt;
        &lt;Number&gt;6&lt;/Number&gt;
&lt;/N1:NumberList&gt;

For the first child element: 

        &lt;Number&gt;23&lt;/Number&gt;

what namespaces are in scope?

I created an XSLT template to output the &lt;Number&gt; element's in-scope namespaces:

-------------------------------------------
&lt;xsl:template match=&quot;*&quot;&gt;
       &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
           &lt;xsl:value-of select=&quot;.&quot;/&gt;&lt;/p&gt;
       &lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
-------------------------------------------

Here is the output:

      http://www.w3.org/XML/1998/namespace
 
      http://www.example1.org
 
      http://www.example2.org

There are three (3) in-scope namespaces.

Lesson Learned: Implicit on the root element of every XML document is this namespace declaration:

      &lt;root xmlns:xml=&quot;http://www.w3.org/XML/1998/namespace&quot;&gt;

NOTE: it is illegal to explicitly declare the xml namespace. The xml namespace is built into every XML application.

Since the xml namespace is implicitly declared in every XML document, you can immediately use the xml:lang attribute and the xml:space attribute, e.g.,

&lt;movie&gt;
	&lt;title&gt;The Laughing Cow&lt;/title&gt;
	&lt;title xml:lang=&quot;fr&quot;&gt;La Vache Qui Rit&lt;/title&gt;
&lt;/movie&gt;

Here is an XSLT template to output the in-scope namespaces and their prefixes:

-------------------------------------------
&lt;xsl:template match=&quot;*&quot;&gt;
        &lt;xsl:for-each select=&quot;namespace::*&quot;&gt;
            Namespace in scope = &lt;xsl:value-of select=&quot;.&quot;/&gt;
            Namespace prefix = &lt;xsl:value-of select=&quot;name(.)&quot;/&gt;          
        &lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
-------------------------------------------

Here is the output:

      Namespace in scope = http://www.w3.org/XML/1998/namespace
      Namespace prefix = xml 

      Namespace in scope = http://www.example1.org
      Namespace prefix = N1

      Namespace in scope = http://www.example2.org
      Namespace prefix = N2

QUESTIONS

1. Have I correctly analyzed the situation (regarding in-scope namespaces)?

2. What else would you add?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314913.html</link>
</item><item>
<title>[xml-dev] XML documents with non-standard file extensions under - 8/26/2010 9:38:00 PM</title>
<description><![CDATA[<pre>Hi,

We are facing an issue with XML documents and Windows7. The issue does NOT
occur using Windows XP.

 

The objective:

We have XML documents with non-standard file extensions (in particular OASIS
Genericode files with a .gc extension) .

We want to configure Windows7 so that a Open or Doubleclick will display the
.gc file in InternetExplorer8. (there is a rendering stylesheet referenced
by the .gc file) 

 

The issue:

Windows7 has less options for configuring file types.

So far, we have not been able to achieve the above.

Whatever we try (including third party file type managers for Windows7),
when doubleclicking a .gc file it either:

-        Pops up a &quot;File Download' window with a Open/Save/Cancel button
where Open loops back to the same &quot;File Download&quot; window, Save saves the
file with the same opening behaviour, OR

-        Internet Explorer starts up, but displays a &quot;Navigation to webpage
cancelled&quot; error.

 

Has anyone experienced the same issue, or perhaps found a solution to it?

 

Many thanks

Juerg Tschumperlin

Wellington, New Zealand</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314847.html</link>
</item><item>
<title>Re: [xml-dev] Tag libraries in XSLT / XQuery? - 8/26/2010 3:20:00 AM</title>
<description><![CDATA[<pre>Hi, Evan:

If I'm reading it correctly, that's a cool technique for selection and
configuration of portal features when rendering different kinds of
documents.  The practical value of the technique is clear (so thanks for
mentioning it).

I think JSP tag libraries pose the question whether a better separation of
concerns is possible if the page can pass sequences to tags and receive
sequences from tags (in callbacks).

Maybe that's as far as discussion can take it without a reasonable concrete
vehicle for inspection; thanks for kicking around the question in advance of
that.


Erik Hennum


On Wed, Aug 25, 2010 at 5:05 PM, Evan Lenz &lt;evan@evanlenz.net&gt; wrote:

&gt; Hi Erik,
&gt;
&gt; I think for most cases, basic XSLT processing, using a modified identity
&gt; transform, should do the trick. Then, you simply define the tags in the tag
&gt; library using normal XSLT template rules, as done here:
&gt; https://code.google.com/p/rundmc/source/browse/trunk/view/tag-library.xsl
&gt;
&gt; This is part of the code I wrote in a project to create a back-end
&gt; framework for the MarkLogic Developer community.
&gt;
&gt; Note that there are no pre-processors or other such acrobatics. Just a
&gt; modified identity transform, with a (left-most-indented) template rule in
&gt; the unnamed mode for each custom tag in the library.
&gt;
&gt; For example, the source for the current home page's content (at
&gt; http://developer.marklogic.com) looks like this:
&gt;
&gt; &lt;ml:page status=&quot;Published&quot;
&gt;  xmlns:ml=&quot;http://developer.marklogic.com/site/internal&quot;
&gt;  xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&gt;
&gt;  &lt;h1&gt;Learn, share, discuss&lt;/h1&gt;
&gt;
&gt;  &lt;ml:tabbed-features&gt;
&gt;   &lt;ml:feature href=&quot;/features/eclipse.xml&quot;/&gt;
&gt;   &lt;ml:feature href=&quot;/features/office-toolkits.xml&quot;/&gt;
&gt;   &lt;ml:feature href=&quot;/features/xqdebug.xml&quot;/&gt;
&gt;  &lt;/ml:tabbed-features&gt;
&gt;
&gt;  &lt;div class=&quot;announcement single&quot;&gt;
&gt;   &lt;p&gt;Welcome to the MarkLogic Developer Community...&lt;/p&gt;
&gt;   ...
&gt;  &lt;/div&gt;
&gt;
&gt;  &lt;ml:recent-news-and-events suppress-more-links=&quot;yes&quot;/&gt;
&gt;
&gt;  &lt;ml:article-abstract heading=&quot;Check this out.&quot;
&gt;                      href=&quot;/learn/2009-07-search-api-walkthrough.xml&quot;/&gt;
&gt;
&gt; &lt;/ml:page&gt;
&gt;
&gt;
&gt; As you can see, it's a mixture of regular XHTML and custom tags (in the
&gt; &quot;ml&quot; namespace). Apply page.xsl to this and you get the final XHTML result
&gt; in the browser.
&gt;
&gt; To see the custom tag implementations, just look at tag-library.xsl, e.g.,
&gt; &lt;xsl:template match=&quot;tabbed-features&quot;&gt;.
&gt;
&gt; So, in my opinion, XSLT is already an excellent implementation language for
&gt; custom tag libraries. (And with products that let you mix-and-match XSLT and
&gt; XQuery, you can get the best of both worlds.)
&gt;
&gt; If you wanted to extend it to support general XPath expressions (without
&gt; using a pre-processor) you could use an eval() function, but I generally
&gt; don't find the need to do that. Custom libraries are called &quot;custom&quot; for a
&gt; reason. :-)
&gt;
&gt; Evan
&gt;</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314820.html</link>
</item><item>
<title>Re: [xml-dev] Tag libraries in XSLT / XQuery? - 8/26/2010 12:07:00 AM</title>
<description><![CDATA[<pre>Hi Erik,

I think for most cases, basic XSLT processing, using a modified identity 
transform, should do the trick. Then, you simply define the tags in the 
tag library using normal XSLT template rules, as done here:
https://code.google.com/p/rundmc/source/browse/trunk/view/tag-library.xsl

This is part of the code I wrote in a project to create a back-end 
framework for the MarkLogic Developer community.

Note that there are no pre-processors or other such acrobatics. Just a 
modified identity transform, with a (left-most-indented) template rule 
in the unnamed mode for each custom tag in the library.

For example, the source for the current home page's content (at 
http://developer.marklogic.com) looks like this:

&lt;ml:page status=&quot;Published&quot;
  xmlns:ml=&quot;http://developer.marklogic.com/site/internal&quot;
  xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

  &lt;h1&gt;Learn, share, discuss&lt;/h1&gt;

  &lt;ml:tabbed-features&gt;
    &lt;ml:feature href=&quot;/features/eclipse.xml&quot;/&gt;
    &lt;ml:feature href=&quot;/features/office-toolkits.xml&quot;/&gt;
    &lt;ml:feature href=&quot;/features/xqdebug.xml&quot;/&gt;
  &lt;/ml:tabbed-features&gt;

  &lt;div class=&quot;announcement single&quot;&gt;
    &lt;p&gt;Welcome to the MarkLogic Developer Community...&lt;/p&gt;
    ...
  &lt;/div&gt;

  &lt;ml:recent-news-and-events suppress-more-links=&quot;yes&quot;/&gt;

  &lt;ml:article-abstract heading=&quot;Check this out.&quot;
                       href=&quot;/learn/2009-07-search-api-walkthrough.xml&quot;/&gt;

&lt;/ml:page&gt;


As you can see, it's a mixture of regular XHTML and custom tags (in the 
&quot;ml&quot; namespace). Apply page.xsl to this and you get the final XHTML 
result in the browser.

To see the custom tag implementations, just look at tag-library.xsl, 
e.g., &lt;xsl:template match=&quot;tabbed-features&quot;&gt;.

So, in my opinion, XSLT is already an excellent implementation language 
for custom tag libraries. (And with products that let you mix-and-match 
XSLT and XQuery, you can get the best of both worlds.)

If you wanted to extend it to support general XPath expressions (without 
using a pre-processor) you could use an eval() function, but I generally 
don't find the need to do that. Custom libraries are called &quot;custom&quot; for 
a reason. :-)

Evan

-- 
Evan Lenz
Lenz Consulting Group, Inc.
http://lenzconsulting.com
+1 (360) 297-0087



Erik Hennum wrote:
&gt; Speculative XML Savants:
&gt;
&gt; I'm wondering whether a moral equivalent to JSP tag libraries [1] would
&gt; be a useful addition to the XSLT / XQuery portfolio -- so that XML
&gt; documents could use tags
&gt;
&gt; *  defined in an XSLT / XQuery module (instead of a Java class), and
&gt; *  executed by an XSLT / XQuery processor (instead of a JSP container).
&gt;
&gt; The rationale for tag libraries (probably summarizing the familiar) is
&gt; to establish a division of responsibility and collaboration between
&gt;
&gt; *  application developers who understand data access and manipulation, and
&gt; *  page designers who understand visual layout and style.
&gt;
&gt; For an example, let's say an application developer creates a tag library
&gt; with an query:people tag that queries attendee records by year and sorts
&gt; the result list by first or last name.
&gt;
&gt; A page designer could then create an XHTML page with the query:people tag:
&gt;
&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;   &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;     &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt; &lt;query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot;&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;{ $last-name  },&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;{ $first-name }&lt;/td&gt;&lt;/tr&gt;&lt;/query:people&gt;
&gt; &lt;/table&gt;
&gt;
&gt; When supplied with the tag page and the tag library, a processor would
&gt; generate an XHTML output page similar to the following:
&gt;
&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;   &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;     &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt; &lt;!-- query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot; --&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Crawford,&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;Randy&lt;/td&gt;&lt;/tr&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Franklin,&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;Aretha&lt;/td&gt;&lt;/tr&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Green,&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;Albert&lt;/td&gt;&lt;/tr&gt;&lt;!-- /query:people --&gt;
&gt; &lt;/table&gt;
&gt;
&gt; Some potential scenarios for tags in XML processing environments:
&gt;
&gt; *  An XQuery tag library could provide views on an XML store for
&gt;    integration and branding by HTML pages.
&gt;
&gt; *  An XSLT tag library could transform articles into content sequences
&gt;    for layout as flows by XSL-FO book masters.
&gt;
&gt; XSLT Simplified Stylesheet Modules [2] already have several of the
&gt; constructs needed for XML tag pages.  The legal XSLT statements include
&gt; equivalents (such as xsl:for-each and xsl:if) for important core JSTL
&gt; statements.  XSLT Attribute Value Templates [3] offer a parallel to the
&gt; EL expression language.
&gt;
&gt; Simplified Stylesheet Modules would seem to need new constructs to:
&gt;
&gt; *  Import the XSLT / XQuery library modules that implement the tags.
&gt; *  Execute value templates within element text (as with the $last-name
&gt;    and $first-name expressions in the example above).
&gt; *  Process tags as calls to library functions, passing the tag
&gt;    attributes as function parameters and the tag content as a
&gt;    callback (as with the attributes and content of the query:people tag).
&gt;
&gt; A XSLT or XQuery tag library module would seem to need new constructs to:
&gt;
&gt; *  Bind a tag name to its implementing function.
&gt; *  Process callbacks zero or more times as appropriate.
&gt;
&gt; For experimentation, I put together a sketchy preprocessor [4] that
&gt; converts an XHTML tag page and an XSLT tag module to intermediate XSLT
&gt; files and then executes the intermediate XSLT files to produce an output
&gt; XHTML document (supporting callbacks through Dimitre Novatchev's
&gt; technique [5] for dynamic functions).
&gt;
&gt; This preprocessor has significant limitations with respect to callbacks.
&gt; In particular, variables in scope at the definition of the callback
&gt; fragment aren't in scope during processing of the callback fragment.
&gt; One alternative might be to emit the tag implementation inline within
&gt; the converted tag page.
&gt;
&gt; A really robust implementation of tag libraries may need native XSLT /
&gt; XQuery anonymous functions.  (Having just noticed Dynamic Function
&gt; Invocation [6] in the XPath 2.1 working draft, I'm wondering if that
&gt; would help.)
&gt;
&gt; Anyway, that's the idea.  What do you think?  Wrongheaded?  Worth
&gt; pursuing?
&gt;
&gt;
&gt; Erik Hennum
&gt;
&gt;
&gt; Acknowledgments:  The thought was triggered by a talk about virtual
&gt; documents [7] by Vyacheslav Zholudev at the Balisage conference.
&gt;
&gt;
&gt; [1] http://en.wikipedia.org/wiki/JSTL
&gt; [2] http://www.w3.org/TR/xslt20/#simplified-stylesheet
&gt; [3] http://www.w3.org/TR/xslt20/#dt-attribute-value-template
&gt; [4] http://docs.google.com/leaf?id=0B_yrFnrTAZDGNGY3MjI2MTgtZGZjMS00ZDUwLTljNjgtNDg1NDdhNzY4NDE5&amp;hl=en
&gt;     CAVEAT:  only an experiment, may change completely or be abandoned
&gt; [5] http://fxsl.sourceforge.net/
&gt; [6] http://www.w3.org/TR/xpath-21/#id-function-invoke
&gt; [7] http://www.balisage.net/Proceedings/vol5/html/Zholudev01/BalisageVol5-Zholudev01.html
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314819.html</link>
</item><item>
<title>Re: [xml-dev] Tag libraries in XSLT / XQuery? - 8/25/2010 3:09:00 PM</title>
<description><![CDATA[<pre>Hi, Michael:

That's very much what I'm suggesting with the addition of callbacks to
fragments of the simplified stylesheet. That is, m:graph might contain
an XML fragment which the m:graph template or function would invoke
with parameters. Such callbacks seem to have been important for the
sweet spot of JSP tag libraries.

I'll mull about changes that might make for a more serious preprocessor.


Thanks,


Erik Hennum


On Tue, Aug 24, 2010 at 10:33 AM, Michael Kay &lt;mike@saxonica.com&gt; wrote:
&gt;
&gt; &#160;I think part of what you are proposing is something that retains the flavour of XSLT simplified stylesheets, but removes many of the restrictions; for example it might be simplified stylesheets plus the ability to import a function (or template?) library. XSLT simplified stylesheets never took off, probably because they are too simple. Enhancing them without going all the way to full XSLT would be tricky, because it's hard to find the right sweet spot.
&gt;
&gt; The other part of your proposal is perhaps some kind of standardized facility for defining XSLT extension instructions - another XSLT feature that has never really taken off. It wouldn't be difficult to provide some way of mapping the user syntax
&gt;
&gt; &lt;m:graph x0=&quot;0&quot; x1=&quot;100&quot; f=&quot;my:x-squared#1&quot;/&gt;
&gt;
&gt; to the underlying semantics of
&gt;
&gt; &lt;xsl:call-template name=&quot;m:graph&quot;&gt;
&gt; &lt;xsl:with-param name=&quot;x0&quot; select=&quot;0&quot;/&gt;
&gt; &lt;xsl:with-param name=&quot;x1&quot; select=&quot;100&quot;/&gt;
&gt; &lt;xsl:with-param name=&quot;f&quot; select=&quot;my:x-squared#1&quot;/&gt;
&gt; &lt;/xsl:call-template&gt;
&gt;
&gt; (Or you could make the attributes AVTs rather than XPath expressions - it's not obvious which would be best).
&gt;
&gt; XSLT 2.0 chose not to go in this direction, focusing instead on a concise function call syntax for use in XPath expressions. But it might still have validity, and find favour with a different audience. Try doing a preprocessor, and see whether people like it.
&gt;
&gt; Michael Kay
&gt; Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314808.html</link>
</item><item>
<title>Re: [xml-dev] Tag libraries in XSLT / XQuery? - 8/24/2010 5:36:00 PM</title>
<description><![CDATA[<pre>I think part of what you are proposing is something that retains the 
flavour of XSLT simplified stylesheets, but removes many of the 
restrictions; for example it might be simplified stylesheets plus the 
ability to import a function (or template?) library. XSLT simplified 
stylesheets never took off, probably because they are too simple. 
Enhancing them without going all the way to full XSLT would be tricky, 
because it's hard to find the right sweet spot.

The other part of your proposal is perhaps some kind of standardized 
facility for defining XSLT extension instructions - another XSLT feature 
that has never really taken off. It wouldn't be difficult to provide 
some way of mapping the user syntax

&lt;m:graph x0=&quot;0&quot; x1=&quot;100&quot; f=&quot;my:x-squared#1&quot;/&gt;

to the underlying semantics of

&lt;xsl:call-template name=&quot;m:graph&quot;&gt;
&lt;xsl:with-param name=&quot;x0&quot; select=&quot;0&quot;/&gt;
&lt;xsl:with-param name=&quot;x1&quot; select=&quot;100&quot;/&gt;
&lt;xsl:with-param name=&quot;f&quot; select=&quot;my:x-squared#1&quot;/&gt;
&lt;/xsl:call-template&gt;

(Or you could make the attributes AVTs rather than XPath expressions - 
it's not obvious which would be best).

XSLT 2.0 chose not to go in this direction, focusing instead on a 
concise function call syntax for use in XPath expressions. But it might 
still have validity, and find favour with a different audience. Try 
doing a preprocessor, and see whether people like it.

Michael Kay
Saxonica


On 23/08/2010 02:03, Erik Hennum wrote:
&gt; Speculative XML Savants:
&gt;
&gt; I'm wondering whether a moral equivalent to JSP tag libraries [1] would
&gt; be a useful addition to the XSLT / XQuery portfolio -- so that XML
&gt; documents could use tags
&gt;
&gt; *  defined in an XSLT / XQuery module (instead of a Java class), and
&gt; *  executed by an XSLT / XQuery processor (instead of a JSP container).
&gt;
&gt; The rationale for tag libraries (probably summarizing the familiar) is
&gt; to establish a division of responsibility and collaboration between
&gt;
&gt; *  application developers who understand data access and manipulation, and
&gt; *  page designers who understand visual layout and style.
&gt;
&gt; For an example, let's say an application developer creates a tag library
&gt; with an query:people tag that queries attendee records by year and sorts
&gt; the result list by first or last name.
&gt;
&gt; A page designer could then create an XHTML page with the query:people tag:
&gt;
&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;    &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;      &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt; &lt;query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot;&gt;
&gt;    &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;{ $last-name  },&lt;/td&gt;
&gt;      &lt;td class=&quot;fname&quot;&gt;{ $first-name }&lt;/td&gt;&lt;/tr&gt;&lt;/query:people&gt;
&gt; &lt;/table&gt;
&gt;
&gt; When supplied with the tag page and the tag library, a processor would
&gt; generate an XHTML output page similar to the following:
&gt;
&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;    &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;      &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt; &lt;!-- query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot; --&gt;
&gt;    &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Crawford,&lt;/td&gt;
&gt;      &lt;td class=&quot;fname&quot;&gt;Randy&lt;/td&gt;&lt;/tr&gt;
&gt;    &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Franklin,&lt;/td&gt;
&gt;      &lt;td class=&quot;fname&quot;&gt;Aretha&lt;/td&gt;&lt;/tr&gt;
&gt;    &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Green,&lt;/td&gt;
&gt;      &lt;td class=&quot;fname&quot;&gt;Albert&lt;/td&gt;&lt;/tr&gt;&lt;!-- /query:people --&gt;
&gt; &lt;/table&gt;
&gt;
&gt; Some potential scenarios for tags in XML processing environments:
&gt;
&gt; *  An XQuery tag library could provide views on an XML store for
&gt;     integration and branding by HTML pages.
&gt;
&gt; *  An XSLT tag library could transform articles into content sequences
&gt;     for layout as flows by XSL-FO book masters.
&gt;
&gt; XSLT Simplified Stylesheet Modules [2] already have several of the
&gt; constructs needed for XML tag pages.  The legal XSLT statements include
&gt; equivalents (such as xsl:for-each and xsl:if) for important core JSTL
&gt; statements.  XSLT Attribute Value Templates [3] offer a parallel to the
&gt; EL expression language.
&gt;
&gt; Simplified Stylesheet Modules would seem to need new constructs to:
&gt;
&gt; *  Import the XSLT / XQuery library modules that implement the tags.
&gt; *  Execute value templates within element text (as with the $last-name
&gt;     and $first-name expressions in the example above).
&gt; *  Process tags as calls to library functions, passing the tag
&gt;     attributes as function parameters and the tag content as a
&gt;     callback (as with the attributes and content of the query:people tag).
&gt;
&gt; A XSLT or XQuery tag library module would seem to need new constructs to:
&gt;
&gt; *  Bind a tag name to its implementing function.
&gt; *  Process callbacks zero or more times as appropriate.
&gt;
&gt; For experimentation, I put together a sketchy preprocessor [4] that
&gt; converts an XHTML tag page and an XSLT tag module to intermediate XSLT
&gt; files and then executes the intermediate XSLT files to produce an output
&gt; XHTML document (supporting callbacks through Dimitre Novatchev's
&gt; technique [5] for dynamic functions).
&gt;
&gt; This preprocessor has significant limitations with respect to callbacks.
&gt; In particular, variables in scope at the definition of the callback
&gt; fragment aren't in scope during processing of the callback fragment.
&gt; One alternative might be to emit the tag implementation inline within
&gt; the converted tag page.
&gt;
&gt; A really robust implementation of tag libraries may need native XSLT /
&gt; XQuery anonymous functions.  (Having just noticed Dynamic Function
&gt; Invocation [6] in the XPath 2.1 working draft, I'm wondering if that
&gt; would help.)
&gt;
&gt; Anyway, that's the idea.  What do you think?  Wrongheaded?  Worth
&gt; pursuing?
&gt;
&gt;
&gt; Erik Hennum
&gt;
&gt;
&gt; Acknowledgments:  The thought was triggered by a talk about virtual
&gt; documents [7] by Vyacheslav Zholudev at the Balisage conference.
&gt;
&gt;
&gt; [1] http://en.wikipedia.org/wiki/JSTL
&gt; [2] http://www.w3.org/TR/xslt20/#simplified-stylesheet
&gt; [3] http://www.w3.org/TR/xslt20/#dt-attribute-value-template
&gt; [4] http://docs.google.com/leaf?id=0B_yrFnrTAZDGNGY3MjI2MTgtZGZjMS00ZDUwLTljNjgtNDg1NDdhNzY4NDE5&amp;hl=en
&gt;      CAVEAT:  only an experiment, may change completely or be abandoned
&gt; [5] http://fxsl.sourceforge.net/
&gt; [6] http://www.w3.org/TR/xpath-21/#id-function-invoke
&gt; [7] http://www.balisage.net/Proceedings/vol5/html/Zholudev01/BalisageVol5-Zholudev01.html
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314786.html</link>
</item><item>
<title>Re: [xml-dev] Tag libraries in XSLT / XQuery? - 8/24/2010 5:33:00 PM</title>
<description><![CDATA[<pre>Hi, Philippe:

Thanks for the reference, RefleX looks impressive and ambitious
(a kind of all-in-one environment).

As you suggest, my question is much more modest:  what's the
_least_ addition to the XSLT / XQuery ecosystem that would support
contracts between application developers and page designers?

My answer is XSLT Simplified Stylesheet Modules++ with callbacks,
but I'm interested in other opinions (including disagreement that tag
libraries are good or needed).



Erik Hennum


On Mon, Aug 23, 2010 at 6:28 AM, Philippe Poulard
&lt;philippe.poulard@sophia.inria.fr&gt; wrote:
&gt;
&gt; Have a look at RefleX:
&gt; http://reflex.gforge.inria.fr/
&gt;
&gt; It does more or less what you expect: there is a templating language, it is no based on EL but rather on XPath, there are existing libraries for most common usages, you'll be able to define your own tag libraries either with other tags (macro tags) or bound to some Java code, you'll be able to design declarative languages, you'll be able to run XPath expressions upon non-XML objects (such as a file system), it can be run within a servlet or in batch or even embedded in your own app etc etc...
&gt; But the engine within which it works is neither an XSLT processor nor an XQuery engine.
&gt;
&gt;
&gt; Erik Hennum wrote:
&gt;&gt;
&gt;&gt; Speculative XML Savants:
&gt;&gt;
&gt;&gt; I'm wondering whether a moral equivalent to JSP tag libraries [1] would
&gt;&gt; be a useful addition to the XSLT / XQuery portfolio -- so that XML
&gt;&gt; documents could use tags
&gt;&gt;
&gt;&gt; * &#160;defined in an XSLT / XQuery module (instead of a Java class), and
&gt;&gt; * &#160;executed by an XSLT / XQuery processor (instead of a JSP container).
&gt;&gt;
&gt;&gt; The rationale for tag libraries (probably summarizing the familiar) is
&gt;&gt; to establish a division of responsibility and collaboration between
&gt;&gt;
&gt;&gt; * &#160;application developers who understand data access and manipulation, and
&gt;&gt; * &#160;page designers who understand visual layout and style.
&gt;&gt;
&gt;&gt; For an example, let's say an application developer creates a tag library
&gt;&gt; with an query:people tag that queries attendee records by year and sorts
&gt;&gt; the result list by first or last name.
&gt;&gt;
&gt;&gt; A page designer could then create an XHTML page with the query:people tag:
&gt;&gt;
&gt;&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;&gt; &#160;&lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;&gt; &#160; &#160;&lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt;&gt; &lt;query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot;&gt;
&gt;&gt; &#160;&lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;{ $last-name &#160;},&lt;/td&gt;
&gt;&gt; &#160; &#160;&lt;td class=&quot;fname&quot;&gt;{ $first-name }&lt;/td&gt;&lt;/tr&gt;&lt;/query:people&gt;
&gt;&gt; &lt;/table&gt;
&gt;&gt;
&gt;&gt; When supplied with the tag page and the tag library, a processor would
&gt;&gt; generate an XHTML output page similar to the following:
&gt;&gt;
&gt;&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;&gt; &#160;&lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;&gt; &#160; &#160;&lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt;&gt; &lt;!-- query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot; --&gt;
&gt;&gt; &#160;&lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Crawford,&lt;/td&gt;
&gt;&gt; &#160; &#160;&lt;td class=&quot;fname&quot;&gt;Randy&lt;/td&gt;&lt;/tr&gt;
&gt;&gt; &#160;&lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Franklin,&lt;/td&gt;
&gt;&gt; &#160; &#160;&lt;td class=&quot;fname&quot;&gt;Aretha&lt;/td&gt;&lt;/tr&gt;
&gt;&gt; &#160;&lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Green,&lt;/td&gt;
&gt;&gt; &#160; &#160;&lt;td class=&quot;fname&quot;&gt;Albert&lt;/td&gt;&lt;/tr&gt;&lt;!-- /query:people --&gt;
&gt;&gt; &lt;/table&gt;
&gt;&gt;
&gt;&gt; Some potential scenarios for tags in XML processing environments:
&gt;&gt;
&gt;&gt; * &#160;An XQuery tag library could provide views on an XML store for
&gt;&gt; &#160; integration and branding by HTML pages.
&gt;&gt;
&gt;&gt; * &#160;An XSLT tag library could transform articles into content sequences
&gt;&gt; &#160; for layout as flows by XSL-FO book masters.
&gt;&gt;
&gt;&gt; XSLT Simplified Stylesheet Modules [2] already have several of the
&gt;&gt; constructs needed for XML tag pages. &#160;The legal XSLT statements include
&gt;&gt; equivalents (such as xsl:for-each and xsl:if) for important core JSTL
&gt;&gt; statements. &#160;XSLT Attribute Value Templates [3] offer a parallel to the
&gt;&gt; EL expression language.
&gt;&gt;
&gt;&gt; Simplified Stylesheet Modules would seem to need new constructs to:
&gt;&gt;
&gt;&gt; * &#160;Import the XSLT / XQuery library modules that implement the tags.
&gt;&gt; * &#160;Execute value templates within element text (as with the $last-name
&gt;&gt; &#160; and $first-name expressions in the example above).
&gt;&gt; * &#160;Process tags as calls to library functions, passing the tag
&gt;&gt; &#160; attributes as function parameters and the tag content as a
&gt;&gt; &#160; callback (as with the attributes and content of the query:people tag).
&gt;&gt;
&gt;&gt; A XSLT or XQuery tag library module would seem to need new constructs to:
&gt;&gt;
&gt;&gt; * &#160;Bind a tag name to its implementing function.
&gt;&gt; * &#160;Process callbacks zero or more times as appropriate.
&gt;&gt;
&gt;&gt; For experimentation, I put together a sketchy preprocessor [4] that
&gt;&gt; converts an XHTML tag page and an XSLT tag module to intermediate XSLT
&gt;&gt; files and then executes the intermediate XSLT files to produce an output
&gt;&gt; XHTML document (supporting callbacks through Dimitre Novatchev's
&gt;&gt; technique [5] for dynamic functions).
&gt;&gt;
&gt;&gt; This preprocessor has significant limitations with respect to callbacks.
&gt;&gt; In particular, variables in scope at the definition of the callback
&gt;&gt; fragment aren't in scope during processing of the callback fragment.
&gt;&gt; One alternative might be to emit the tag implementation inline within
&gt;&gt; the converted tag page.
&gt;&gt;
&gt;&gt; A really robust implementation of tag libraries may need native XSLT /
&gt;&gt; XQuery anonymous functions. &#160;(Having just noticed Dynamic Function
&gt;&gt; Invocation [6] in the XPath 2.1 working draft, I'm wondering if that
&gt;&gt; would help.)
&gt;&gt;
&gt;&gt; Anyway, that's the idea. &#160;What do you think? &#160;Wrongheaded? &#160;Worth
&gt;&gt; pursuing?
&gt;&gt;
&gt;&gt;
&gt;&gt; Erik Hennum
&gt;&gt;
&gt;&gt;
&gt;&gt; Acknowledgments: &#160;The thought was triggered by a talk about virtual
&gt;&gt; documents [7] by Vyacheslav Zholudev at the Balisage conference.
&gt;&gt;
&gt;&gt;
&gt;&gt; [1] http://en.wikipedia.org/wiki/JSTL
&gt;&gt; [2] http://www.w3.org/TR/xslt20/#simplified-stylesheet
&gt;&gt; [3] http://www.w3.org/TR/xslt20/#dt-attribute-value-template
&gt;&gt; [4] http://docs.google.com/leaf?id=0B_yrFnrTAZDGNGY3MjI2MTgtZGZjMS00ZDUwLTljNjgtNDg1NDdhNzY4NDE5&amp;hl=en
&gt;&gt; &#160; &#160;CAVEAT: &#160;only an experiment, may change completely or be abandoned
&gt;&gt; [5] http://fxsl.sourceforge.net/
&gt;&gt; [6] http://www.w3.org/TR/xpath-21/#id-function-invoke
&gt;&gt; [7] http://www.balisage.net/Proceedings/vol5/html/Zholudev01/BalisageVol5-Zholudev01.html
&gt;&gt;

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314785.html</link>
</item><item>
<title>[xml-dev] RE: Data Interoperability ... Why do some XML vocabularies - 8/23/2010 8:18:00 PM</title>
<description><![CDATA[<pre>Roger, you first speak of &quot;purpose&quot; as if you were talking about what the tags mean, then you proceed to talk about the &quot;prime app&quot; for a schema, where &quot;purpose&quot; has now become something about the syntax.  A validator addresses syntax, not meaning (well, that's what I believe).  If a vocabulary is ascribed a primary purpose, I should think that would be about the business or social context and the goals of the creator of the vocabulary, not the syntax.

When we were creating WIPO Standard ST.36, we found that many different industrial property offices (IPO's) could ascribe a sufficiently similar meaning to each of the elements in the vocabulary to achieve the desired degree of interoperability.  I attribute this early blush of success to the fact that the DTD's were based largely on other WIPO standards related to various industrial property treaties that had existed for many decades.  In other words, someone else had already done the heavy lifting of building a common understanding of the business vocabulary.  We added the syntax.  We also specified which version of XML, XSLT, CALS, etc., that we'd use, in order to ensure the necessary level of syntactical interoperability.

Well, as it turned out, we were a bit na&#239;ve fifteen years ago.  A few years after ST.36 was ultimately published, we developed an &quot;interoperability matrix&quot; in which we examined the meaning assigned to, and internal processing associated with, certain key elements in the vocabulary, across some six different IPO's.  The result was a list of business rules that would require harmonization among IPO's in order to be able to process exchanged documents successfully, even if they did all conform to ST.36.  What had appeared to be &quot;sufficiently similar&quot; was often not sufficient for the intended purpose.

As others have pointed out in this thread, that might not matter in some cases, and indeed, it's the very foundation of certain XML-based use cases.  In other circumstances, it's a show-stopper.

At the moment, we're modernizing the editorial processes for the Manual of Patent Examining Procedure and the Trademark Manual of Examining Procedure.  They've been maintained independently for about sixty years.  It was a great relief to discover that we can use one XML Schema and one set of style sheets for both documents, nearly identical in the abstract, even if they diverge in most of the rules that they document.  The editorial workflows are also very similar.  

In this case, we're using the process of developing the Schema and style sheets to introduce the editorial staffs to each other and discussing their needs jointly in an effort to reduce the work needed to create the infrastructure system supporting them.  The level of interoperability we're after is all about the documents (rule books) and their maintenance, and not about the business (patents vs. trademarks).  

This suggests that there are at least three areas to consider when the goal is interoperability: business semantics, standardized syntax, and supporting infrastructure.  Adjust the level of conformity needed in each to achieve the desired result.

Bruce B Cox
Director, Policy and Standards Division
USPTO/OCIO/OPG
571-272-9004

These are my personal views, not those of the USPTO.

-----Original Message-----
From: Costello, Roger L. [mailto:costello@mitre.org] 
Sent: Friday, August 20, 2010 7:57 AM
To: xml-dev@lists.xml.org
Subject: RE: Data Interoperability ... Why do some XML vocabularies specify meaning + behavior whereas others specify only meaning?

Hi Folks,

Thanks to Michael Kay, Ken Holman, and David Carlisle for their excellent inputs. 

Long ago someone on the xml-dev list said:

   An XML vocabulary is created for a purpose;
   otherwise, what's the point.

The purpose may be to do something, take an action, make a decision, etc. Even an XML vocabulary created to be purely informational (John likes cycling) has a purpose such as: make the information accessible. 

An XML vocabulary may be used for different purposes, but there is always a prime purpose. For instance, XML Schema may be used for different purposes but its prime purpose is validation. XSLT may be used for different purposes but its prime purpose is transformation.

I will use the term &quot;Prime App&quot; to mean an application that implements an XML vocabulary's prime purpose. Thus, an XML Schema validator is the Prime App for the XML Schema vocabulary. An XSLT processor is the Prime App for the XSLT vocabulary.

As a corollary to the above quote, I propose this:

   An XML vocabulary must have data interoperability;
   otherwise, what's the point.

I have often heard it said, &quot;To achieve data interoperability each application must interpret/understand the XML vocabulary in the same way.&quot;

What better way to ensure the same interpretation/understanding than to use the same application!

I am led to these 3 conclusions:

1. When you create an XML vocabulary, specify the behavior of the XML vocabulary. Specify conformance requirements. Create a conforming Prime App. Create a test suite. Everyone use the Prime App.

2. Data interoperability is not achieved through shared understanding of the XML vocabulary. Data interoperability is achieved through shared usage of the Prime App.

3. Creating an XML vocabulary without specifying its behavior is a bad idea. It is a recipe for delayed data interoperability at best, failed data interoperability at worst. For example, the XHTML vocabulary does not specify behavior. Each browser vendor had their own idea of the proper behavior of the XHTML vocabulary. The result was years of non-interoperability. It's taken over 10 years for the vendors to finally converge on a common browser behavior. Browsers could have had (theoretically) common behavior 10 years ago had the XHTML specification specified behavior of the Prime App (browser) along with conformance and test suites.

Comments?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314764.html</link>
</item><item>
<title>Re: [xml-dev] Tag libraries in XSLT / XQuery? - 8/23/2010 1:32:00 PM</title>
<description><![CDATA[<pre>Hi,

Have a look at RefleX:
http://reflex.gforge.inria.fr/

It does more or less what you expect: there is a templating language, it 
is no based on EL but rather on XPath, there are existing libraries for 
most common usages, you'll be able to define your own tag libraries 
either with other tags (macro tags) or bound to some Java code, you'll 
be able to design declarative languages, you'll be able to run XPath 
expressions upon non-XML objects (such as a file system), it can be run 
within a servlet or in batch or even embedded in your own app etc etc...
But the engine within which it works is neither an XSLT processor nor an 
XQuery engine.

Have fun !

Erik Hennum wrote:
&gt; Speculative XML Savants:
&gt; 
&gt; I'm wondering whether a moral equivalent to JSP tag libraries [1] would
&gt; be a useful addition to the XSLT / XQuery portfolio -- so that XML
&gt; documents could use tags
&gt; 
&gt; *  defined in an XSLT / XQuery module (instead of a Java class), and
&gt; *  executed by an XSLT / XQuery processor (instead of a JSP container).
&gt; 
&gt; The rationale for tag libraries (probably summarizing the familiar) is
&gt; to establish a division of responsibility and collaboration between
&gt; 
&gt; *  application developers who understand data access and manipulation, and
&gt; *  page designers who understand visual layout and style.
&gt; 
&gt; For an example, let's say an application developer creates a tag library
&gt; with an query:people tag that queries attendee records by year and sorts
&gt; the result list by first or last name.
&gt; 
&gt; A page designer could then create an XHTML page with the query:people tag:
&gt; 
&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;   &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;     &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt; &lt;query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot;&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;{ $last-name  },&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;{ $first-name }&lt;/td&gt;&lt;/tr&gt;&lt;/query:people&gt;
&gt; &lt;/table&gt;
&gt; 
&gt; When supplied with the tag page and the tag library, a processor would
&gt; generate an XHTML output page similar to the following:
&gt; 
&gt; &lt;table class=&quot;attendees&quot;&gt;
&gt;   &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
&gt;     &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&gt; &lt;!-- query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot; --&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Crawford,&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;Randy&lt;/td&gt;&lt;/tr&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Franklin,&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;Aretha&lt;/td&gt;&lt;/tr&gt;
&gt;   &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Green,&lt;/td&gt;
&gt;     &lt;td class=&quot;fname&quot;&gt;Albert&lt;/td&gt;&lt;/tr&gt;&lt;!-- /query:people --&gt;
&gt; &lt;/table&gt;
&gt; 
&gt; Some potential scenarios for tags in XML processing environments:
&gt; 
&gt; *  An XQuery tag library could provide views on an XML store for
&gt;    integration and branding by HTML pages.
&gt; 
&gt; *  An XSLT tag library could transform articles into content sequences
&gt;    for layout as flows by XSL-FO book masters.
&gt; 
&gt; XSLT Simplified Stylesheet Modules [2] already have several of the
&gt; constructs needed for XML tag pages.  The legal XSLT statements include
&gt; equivalents (such as xsl:for-each and xsl:if) for important core JSTL
&gt; statements.  XSLT Attribute Value Templates [3] offer a parallel to the
&gt; EL expression language.
&gt; 
&gt; Simplified Stylesheet Modules would seem to need new constructs to:
&gt; 
&gt; *  Import the XSLT / XQuery library modules that implement the tags.
&gt; *  Execute value templates within element text (as with the $last-name
&gt;    and $first-name expressions in the example above).
&gt; *  Process tags as calls to library functions, passing the tag
&gt;    attributes as function parameters and the tag content as a
&gt;    callback (as with the attributes and content of the query:people tag).
&gt; 
&gt; A XSLT or XQuery tag library module would seem to need new constructs to:
&gt; 
&gt; *  Bind a tag name to its implementing function.
&gt; *  Process callbacks zero or more times as appropriate.
&gt; 
&gt; For experimentation, I put together a sketchy preprocessor [4] that
&gt; converts an XHTML tag page and an XSLT tag module to intermediate XSLT
&gt; files and then executes the intermediate XSLT files to produce an output
&gt; XHTML document (supporting callbacks through Dimitre Novatchev's
&gt; technique [5] for dynamic functions).
&gt; 
&gt; This preprocessor has significant limitations with respect to callbacks.
&gt; In particular, variables in scope at the definition of the callback
&gt; fragment aren't in scope during processing of the callback fragment.
&gt; One alternative might be to emit the tag implementation inline within
&gt; the converted tag page.
&gt; 
&gt; A really robust implementation of tag libraries may need native XSLT /
&gt; XQuery anonymous functions.  (Having just noticed Dynamic Function
&gt; Invocation [6] in the XPath 2.1 working draft, I'm wondering if that
&gt; would help.)
&gt; 
&gt; Anyway, that's the idea.  What do you think?  Wrongheaded?  Worth
&gt; pursuing?
&gt; 
&gt; 
&gt; Erik Hennum
&gt; 
&gt; 
&gt; Acknowledgments:  The thought was triggered by a talk about virtual
&gt; documents [7] by Vyacheslav Zholudev at the Balisage conference.
&gt; 
&gt; 
&gt; [1] http://en.wikipedia.org/wiki/JSTL
&gt; [2] http://www.w3.org/TR/xslt20/#simplified-stylesheet
&gt; [3] http://www.w3.org/TR/xslt20/#dt-attribute-value-template
&gt; [4] http://docs.google.com/leaf?id=0B_yrFnrTAZDGNGY3MjI2MTgtZGZjMS00ZDUwLTljNjgtNDg1NDdhNzY4NDE5&amp;hl=en
&gt;     CAVEAT:  only an experiment, may change completely or be abandoned
&gt; [5] http://fxsl.sourceforge.net/
&gt; [6] http://www.w3.org/TR/xpath-21/#id-function-invoke
&gt; [7] http://www.balisage.net/Proceedings/vol5/html/Zholudev01/BalisageVol5-Zholudev01.html
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&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 !

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314755.html</link>
</item><item>
<title>[xml-dev] [Deadline Extension] SAC 2011 Track on Coordination Models, - 8/23/2010 8:07:00 AM</title>
<description><![CDATA[<pre>*** Apologies if you receive multiple copies of this CfP ***


Deadline for paper submission to the Special Track on Coordination  
Models, Languages and Applications (CM) at SAC 2011 has been extended:

Paper submission (new date): August 31, 2010


------------------------------------------------------------------------------------------------
CALL FOR PAPERS

Coordination Models, Languages, and Applications (CM)
Special Track at the 26th Symposium on Applied Computing (SAC 2011)
TaiChung, Taiwan
March 21 - 25, 2011

(http://sac2011.apice.unibo.it/)


IMPORTANT DATES

Aug. 31, 2010: Paper submissions (NEW)
Oct. 12, 2010: Author notification
Nov. 2, 2010: Camera-Ready Copy


For the past twenty-five years, the ACM Symposium on Applied Computing has been a primary gathering forum for applied computer scientists, computer engineers, software engineers, and application developers from around the world.


TRACK ON COORDINATION MODELS, LANGUAGES, AND APPLICATIONS 

Building on the success of the twelfth previous editions (1998-2010), a special track on coordination models, languages and applications will be held at SAC 2011. Over the last decade, we have witnessed the emergence of models, formalisms and mechanisms to describe concurrent and distributed computations and systems based on the concept of coordination. The purpose of a coordination model is to enable the integration of a number of, possibly heterogeneous, components (processes, objects, agents) in such a way that the resulting ensemble can execute as a whole, forming a software system with desired characteristics and functionalities which possibly takes advantage of parallel and distributed systems. The coordination paradigm is closely related to other contemporary software engineering approaches such as multi-agent systems, service-oriented architectures, component-based systems and related middleware platforms. Furthermore, the concept of coordination exists in many other Computer Science areas such as workflow systems, cooperative information systems, distributed artificial intelligence, and internet technologies.

After more than a decade of research, the coordination paradigm is gaining increased momentum in state-of-the-art engineering paradigms such as multi-agent systems and service-oriented architectures: in the first case, coordination abstractions are perceived as essential to design and support the working activities of agent societies; in the latter case, service coordination, orchestration, and choreography are going to be essential aspects of the next generations of systems based on Web services.

The Special Track on Coordination Models, Languages and Applications takes a deliberately broad view of what constitutes coordination. Accordingly, major topics of interest this year will include:

- Novel models, languages, programming and implementation techniques
- Applications of coordination technologies
- Industrial points of view: experiences, applications, open issues
- Internet- and Web-based coordinated systems
- Coordination of multi-agent systems, including mobile agents, intelligent agents, and agent-based simulations
- Coordination in Service-oriented architectures and Web Services 
- Languages for service description and composition 
- Models, frameworks and tools for Group Decision Making 
- Modern Workflow Management Systems and Case-Handling 
- Coordination in Computer Supported Cooperative Work 
- Software architectures and software engineering techniques 
- Configuration and Architecture Description Languages 
- Coordination Middleware and Infrastructures 
- Coordination in GRID systems 
- Self-organization-based approaches to coordination such as those based on swarm and stigmergy 
- Coordination technologies, systems and infrastructures 
- Relationship with other computational models such as object oriented, declarative (functional, logic, constraint), programming or their extensions with coordination capabilities 
- Formal aspects (semantics, reasoning, verification)


PROCEEDINGS

Papers accepted for the Special Track on Coordination Models, Languages and Applications will be published by ACM both in the SAC 2011 proceedings and in the Digital Library.


PAPER SUBMISSION AND FORMAT

All papers should represent original and previously unpublished works that currently are not under review in any conference or journal.

The author(s) name(s) and address(es) must NOT appear in the body of the paper, and self-reference should be in the third person. This is to facilitate blind review. Only the title should be shown at the first page without the author's information.

Submitted papers must be no longer than 6 pages and in the ACM two-column page format (doc template, pdf template, latex template). It will be possible to have up to 2 extra pages in the proceeding at a charge of $80 per page (total 8 pages maximum).

Submission is entirely automated via the STAR Submission System, which is available from the main SAC Web Site:http://www.acm.org/conferences/sac/sac2011/.


PC MEMBERS

Farhad Arbab, CWI Amsterdam and Leiden University (Netherlands)
Marcello Bonsangue, Leiden University (Netherlands)
Rocco De Nicola, University of Firenze (Italy) 
Jose Fiadero, University of Leicester (Italy) 
Keith Harrison-Broninski, Role Modellers Ltd (UK)
Kurt Lichtner, Sybase iAnywhere (Canada)
Henry Muccini, University of l'Aquila (Italy)
Andrea Omicini, University of Bologna (Italy)
Manuel Oriol, University of York (UK)
Razvan Popescu, Trinity College Dublin (Ireland)
Antonio Porto, University of Porto (Portugal)
Rosario Pugliese, University of Florence (Italy)
Alessandro Ricci, University of Bologna (Italy)
Davide Rossi, University of Bologna (Italy)
Yasuyuki Tahara, National Institute of Informatics (Japan)
Carolyn Talcott, SRI International (USA)
Emilio Tuosto, University of Leicester (UK)
Michael Ignaz Schumacher, University of Applied Sciences (Switzerland)
Robert Tolksdorf, Freie Universitaet Berlin (Germany)
Mirko Viroli, University of Bologna (Italy)
George Wells, Rhodes University (South Africa)
Herbert Wiklicky, Imperial College London (UK)
Pawe&#197;‚ T. Wojciechowski, Pozna&#197;„ University of Technology (Poland)


TRACK CO-CHAIRS

Matteo Casadei,
Alma Mater Studiorum - Universita' di Bologna, Italy


============
											 
	Dott. Ing. Matteo Casadei, Ph.D.		 
	Alma Mater Studiorum, Universita' di Bologna	 
	DEIS
	Via Venezia 52, 47521 Cesena (FC) - Italy

*****************

	phone:   	+39 0547 339210				 
	fax:		+39 0547 339208		 
	email:  	m.casadei@unibo.it		 
  	    	macasadei@deis.unibo.it		 
		 
	http://apice.unibo.it/xwiki/bin/view/MatteoCasadei/
									 
==============================================

	&quot;Coping with things is not awkward because we 	 
        don't dare to deal with them. It's because we	 
        don't dare that they are complex.  (Seneca)&quot;

==============================================








_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314746.html</link>
</item><item>
<title>[xml-dev] Tag libraries in XSLT / XQuery? - 8/23/2010 1:07:00 AM</title>
<description><![CDATA[<pre>Speculative XML Savants:

I'm wondering whether a moral equivalent to JSP tag libraries [1] would
be a useful addition to the XSLT / XQuery portfolio -- so that XML
documents could use tags

*  defined in an XSLT / XQuery module (instead of a Java class), and
*  executed by an XSLT / XQuery processor (instead of a JSP container).

The rationale for tag libraries (probably summarizing the familiar) is
to establish a division of responsibility and collaboration between

*  application developers who understand data access and manipulation, and
*  page designers who understand visual layout and style.

For an example, let's say an application developer creates a tag library
with an query:people tag that queries attendee records by year and sorts
the result list by first or last name.

A page designer could then create an XHTML page with the query:people tag:

&lt;table class=&quot;attendees&quot;&gt;
  &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
    &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&lt;query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot;&gt;
  &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;{ $last-name  },&lt;/td&gt;
    &lt;td class=&quot;fname&quot;&gt;{ $first-name }&lt;/td&gt;&lt;/tr&gt;&lt;/query:people&gt;
&lt;/table&gt;

When supplied with the tag page and the tag library, a processor would
generate an XHTML output page similar to the following:

&lt;table class=&quot;attendees&quot;&gt;
  &lt;tr&gt;&lt;th&gt;Last Name&lt;/th&gt;
    &lt;th&gt;First Name&lt;/th&gt;&lt;/tr&gt;
&lt;!-- query:people select-year=&quot;2010&quot; sort-by=&quot;last-name&quot; --&gt;
  &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Crawford,&lt;/td&gt;
    &lt;td class=&quot;fname&quot;&gt;Randy&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Franklin,&lt;/td&gt;
    &lt;td class=&quot;fname&quot;&gt;Aretha&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class=&quot;lname&quot;&gt;Green,&lt;/td&gt;
    &lt;td class=&quot;fname&quot;&gt;Albert&lt;/td&gt;&lt;/tr&gt;&lt;!-- /query:people --&gt;
&lt;/table&gt;

Some potential scenarios for tags in XML processing environments:

*  An XQuery tag library could provide views on an XML store for
   integration and branding by HTML pages.

*  An XSLT tag library could transform articles into content sequences
   for layout as flows by XSL-FO book masters.

XSLT Simplified Stylesheet Modules [2] already have several of the
constructs needed for XML tag pages.  The legal XSLT statements include
equivalents (such as xsl:for-each and xsl:if) for important core JSTL
statements.  XSLT Attribute Value Templates [3] offer a parallel to the
EL expression language.

Simplified Stylesheet Modules would seem to need new constructs to:

*  Import the XSLT / XQuery library modules that implement the tags.
*  Execute value templates within element text (as with the $last-name
   and $first-name expressions in the example above).
*  Process tags as calls to library functions, passing the tag
   attributes as function parameters and the tag content as a
   callback (as with the attributes and content of the query:people tag).

A XSLT or XQuery tag library module would seem to need new constructs to:

*  Bind a tag name to its implementing function.
*  Process callbacks zero or more times as appropriate.

For experimentation, I put together a sketchy preprocessor [4] that
converts an XHTML tag page and an XSLT tag module to intermediate XSLT
files and then executes the intermediate XSLT files to produce an output
XHTML document (supporting callbacks through Dimitre Novatchev's
technique [5] for dynamic functions).

This preprocessor has significant limitations with respect to callbacks.
In particular, variables in scope at the definition of the callback
fragment aren't in scope during processing of the callback fragment.
One alternative might be to emit the tag implementation inline within
the converted tag page.

A really robust implementation of tag libraries may need native XSLT /
XQuery anonymous functions.  (Having just noticed Dynamic Function
Invocation [6] in the XPath 2.1 working draft, I'm wondering if that
would help.)

Anyway, that's the idea.  What do you think?  Wrongheaded?  Worth
pursuing?


Erik Hennum


Acknowledgments:  The thought was triggered by a talk about virtual
documents [7] by Vyacheslav Zholudev at the Balisage conference.


[1] http://en.wikipedia.org/wiki/JSTL
[2] http://www.w3.org/TR/xslt20/#simplified-stylesheet
[3] http://www.w3.org/TR/xslt20/#dt-attribute-value-template
[4] http://docs.google.com/leaf?id=0B_yrFnrTAZDGNGY3MjI2MTgtZGZjMS00ZDUwLTljNjgtNDg1NDdhNzY4NDE5&amp;hl=en
    CAVEAT:  only an experiment, may change completely or be abandoned
[5] http://fxsl.sourceforge.net/
[6] http://www.w3.org/TR/xpath-21/#id-function-invoke
[7] http://www.balisage.net/Proceedings/vol5/html/Zholudev01/BalisageVol5-Zholudev01.html

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314745.html</link>
</item><item>
<title>Re: [xml-dev] xml rendering browser problems - 8/21/2010 4:52:00 PM</title>
<description><![CDATA[<pre>On Tue, Aug 17, 2010 at 3:28 PM, Tony Nassar &lt;tnassar@palantir.com&gt; wrote:

&gt; If you right-click in Firefox, you'll see that it knows very well that the
&gt; type is text/xml. The one way I can see to get Firefox to render this in a
&gt; useful way is to have Firebug installed, right-click in the window
&gt; displaying simply &quot;Test&quot;, and select &quot;Inspect element,&quot; which will give you
&gt; the DOM.
&gt;

It's not necessarily the case.  Firefox only &quot;knows very well that the type
is text/xml&quot; if it has reason to know that.  We don't have enough info from
Paul M to decide that.  You are right, though, that the way to check is in
the &quot;Page Info&quot;menu.

There are also many ways to get FF to render it &quot;usefully&quot;, including CSS
and XSLT.

Meanwhile, FWIW, a good a time as any to mention my article &quot;Firefox 3.0 and
XML&quot;

http://www.ibm.com/developerworks/library/x-think41/

An article covering CSS and XSLT, tested on older FF versions, but should
still work the same:

http://www.ibm.com/developerworks/xml/library/x-ffox2/index.html
http://www.ibm.com/developerworks/xml/tutorials/x-xmlcss/
http://www.ibm.com/developerworks/xml/tutorials/x-xmlcss2/
http://www.ibm.com/developerworks/xml/tutorials/x-xmlcss3/


-- 
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed @TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314739.html</link>
</item><item>
<title>RE: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/21/2010 4:34:00 AM</title>
<description><![CDATA[<pre>On Fri, 2010-08-20 at 12:53 -0400, Costello, Roger L. wrote:

&gt; Consider XSLT. I can create an XSLT document and run it on my XSLT
&gt; processor. I can send the XSLT document to you and you run it on your
&gt; XSLT processor. We get the same behavior. We agree perfectly on what
&gt; the &lt;xsl:for-each&gt; element means and how it should behave. Ditto for
&gt; all the other elements and attributes in the XSLT vocabulary.
&gt; 
&gt; We have successfully interoperated. 
&gt; 
&gt; What enabled this?

(1) XSLT uses an XML syntax. The &quot;XML Promise&quot; is that any XML processor
is licensed by the XML Specification to read any XML document, and to
make that true, XML processors 9including parsers) must implement XML as
documented in the specification.

(2) The XSLT specification is, by and large, a well-produced document.

(3) There's a sufficient community of XSLT users who complain about
deviations from the XSLT (and XML) specifications.

(4) The specifications are esaily and freely available, so that it's
easy for people to check them.

&gt; 
&gt; What enabled the interoperability is the fact that we are using the
&gt; same Prime App. (You may be using Xalan and I may be using Saxon; they
&gt; both belong to the same class of Prime Apps.)

If it helps you to invent a term to describe the points I made above, go
ahead; I don't think &quot;Prime App&quot; is such a good term, though.

If you and I were using C compilers back in 1985 (say), we'd understand
that a C program had to be changed when you moved from one compiler to
another (there was no standard); if we we using Fortran compilers we
might have been better off, since there were standards, although it's
unlikely we'd have had access to copies, making it harder to report
bugs.

People spend (collectively) hundreds of millions of dollars each year in
writing HTML that will work in multiple Web browsers - the interop story
there is weak, largely because of a misapplication of &quot;Postel's Law&quot; in
the past (be liberal in what you accept and strict in what you put out):
the onus should not be on the recipient to correct errors, but on the
sender to emit correct data. Being liberal in what one receives does not
mean bending over backwards (or forwards) because the sender hasn't
bothered with the &quot;strict&quot; part. Of course, XML forces correctness and
does not have much of the &quot;liberal&quot;, but at least we get
interoperability that way.

It's not at all about applications.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Occasional Blog: http://www.barefootliam.org/



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314738.html</link>
</item><item>
<title>Re: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 5:51:00 PM</title>
<description><![CDATA[<pre>On 20/08/2010 17:53, Costello, Roger L. wrote:
&gt; Consider XSLT. I can create an XSLT document and run it on my XSLT
&gt; processor. I can send the XSLT document to you and you run it on your
&gt; XSLT processor. We get the same behavior. We agree perfectly on what
&gt; the&lt;xsl:for-each&gt;  element means and how it should behave. Ditto for
&gt; all the other elements and attributes in the XSLT vocabulary.
&gt;
&gt; We have successfully interoperated.

This is all true but nothing to do with XML, the same could be said of a 
Fortran program, which you might compile with a different fortran 
compiler to me.
&gt;
&gt; What enabled this?
&gt;
&gt; What enabled the interoperability is the fact that we are using the
&gt; same Prime App.
That's a particularly unfortunate terminology, most people would 
consider different XSLT implementations to be different applications.

(You may be using Xalan and I may be using Saxon;
&gt; they both belong to the same class of Prime Apps.

But as I say above all the above is true of any defined language. What 
distinguishes XML is that the syntax is standardised separately to any 
application behaviour, so while it's quite hard to process a Fortran 
file (or c or java ...) without a specific language compiler, an XSLT 
file is XML which means that it can be used in other contexts without 
using an XSLT application, most notably it is easy to use XSLT as the 
source for a different transformation because it is XML which enables it 
to be used as data rather than being executed.

So it seems to me that the benefits a language gets by using an XML 
syntax are primarily that it's use is not tied to any particular 
application type.

David



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314730.html</link>
</item><item>
<title>Re: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 5:09:00 PM</title>
<description><![CDATA[<pre>I agree your example with XSLT is one use case.  I don't agree it should 
be generalized to all uses of XML.
I also suggest &quot;Prime App&quot; is misleading in the general case.  For XSLT 
and XHTML it may be a good description.
For many other types of XML it is not a good description.


On 8/20/2010 12:53 PM, Costello, Roger L. wrote:
&gt;&gt; If everyone used the same application there would be no need for data
&gt;&gt; interchangeability. &quot;interchangeability&quot; implies the possibility of&gt;  1.
&gt;&gt; If everyone uses the same app XML would be irrelevant.
&gt; I appreciate your feedback David and David. It is helping me to clarify and refine my argument.
&gt;
&gt; Consider XSLT. I can create an XSLT document and run it on my XSLT processor. I can send the XSLT document to you and you run it on your XSLT processor. We get the same behavior. We agree perfectly on what the&lt;xsl:for-each&gt;  element means and how it should behave. Ditto for all the other elements and attributes in the XSLT vocabulary.
&gt;
&gt; We have successfully interoperated.
&gt;
&gt; What enabled this?
&gt;
&gt; What enabled the interoperability is the fact that we are using the same Prime App. (You may be using Xalan and I may be using Saxon; they both belong to the same class of Prime Apps.)
&gt;
&gt; I can create a second XSLT document and send it to you. Again, perfect interoperability. And a third. And so forth. The Prime App allows endless different XSLT transforms to be created, exchanged and executed with perfect understanding/interoperability.
&gt;
&gt;
&gt; /Roger
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;


-- 
David A. Lee
dlee@calldei.com
http://www.xmlsh.org


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314729.html</link>
</item><item>
<title>RE: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 4:56:00 PM</title>
<description><![CDATA[<pre>&gt; If everyone used the same application there would be no need for data 
&gt; interchangeability. &quot;interchangeability&quot; implies the possibility of &gt; 1.
&gt; If everyone uses the same app XML would be irrelevant.  

I appreciate your feedback David and David. It is helping me to clarify and refine my argument.

Consider XSLT. I can create an XSLT document and run it on my XSLT processor. I can send the XSLT document to you and you run it on your XSLT processor. We get the same behavior. We agree perfectly on what the &lt;xsl:for-each&gt; element means and how it should behave. Ditto for all the other elements and attributes in the XSLT vocabulary.

We have successfully interoperated. 

What enabled this? 

What enabled the interoperability is the fact that we are using the same Prime App. (You may be using Xalan and I may be using Saxon; they both belong to the same class of Prime Apps.) 

I can create a second XSLT document and send it to you. Again, perfect interoperability. And a third. And so forth. The Prime App allows endless different XSLT transforms to be created, exchanged and executed with perfect understanding/interoperability.


/Roger


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314727.html</link>
</item><item>
<title>Re: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 2:13:00 PM</title>
<description><![CDATA[<pre>On 20/08/2010 14:33, Costello, Roger L. wrote:
&gt; But they all behave the same way (at least theoretically).

they all behave completely differently, some return sax events, some 
return a DOM some return some other tree model at least one returns TeX 
tokens.... There is very little requirement in the XML Recommendation 
for an XML application to return anything 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, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314722.html</link>
</item><item>
<title>Re: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 1:45:00 PM</title>
<description><![CDATA[<pre>I strongly disagree with both the premise and all 3 conclusions



&gt; I have often heard it said, &quot;To achieve data interoperability each application must interpret/understand the XML vocabulary in the same way.&quot;
&gt;
&gt; What better way to ensure the same interpretation/understanding than to use the same application!

If everyone used the same application there would be no need for data 
interchangeability.
&quot;interchangeability&quot; implies the possibility of &gt; 1.
If everyone uses the same app XML would be irrelevant.  Thats not 
necessarily 'bad' but its not the best use case for XML.

I disagree that there is always a &quot;Prime App&quot;.   There may be a &quot;Prime 
Intended Purpose&quot; or there may not be.
App and purpose are not the same.    The purpose may be concrete or 
abstract.

Take for example a VCARD standard which essentially encodes a persons 
name,address and phone number.
The &quot;purpose&quot; is to store and exchange this information with as *wide* a 
potential use (&quot;App&quot;) as possible,
not to restrict it.   Imagine Printing cards, address books, email 
signatures, ...
Better yet imagine you haven't yet imagined to what use it will be put.



&gt; I am led to these 3 conclusions:
&gt;
&gt; 1. When you create an XML vocabulary, specify the behavior of the XML vocabulary. Specify conformance requirements. Create a conforming Prime App. Create a test suite. Everyone use the Prime App.

An XML vocabulary may not have an intended prime behaviour.  see above



&gt; 2. Data interoperability is not achieved through shared understanding of the XML vocabulary. Data interoperability is achieved through shared usage of the Prime App.
Data interchange is not achieved by shared use of a &quot;Prime App&quot;
Data interchange is achieved by defining the common vocabulary so any 
app that wishes to use the information may.

&gt; 3. Creating an XML vocabulary without specifying its behavior is a bad idea. It is a recipe for delayed data interoperability at best, failed data interoperability at worst. For example, the XHTML vocabulary does not specify behavior. Each browser vendor had their own idea of the proper behavior of the XHTML vocabulary. The result was years of non-interoperability. It's taken over 10 years for the vendors to finally converge on a common browser behavior. Browsers could have had (theoretically) common behavior 10 years ago had the XHTML specification specified behavior of the Prime App (browser) along with conformance and test suites.

Creating an XML vocabulary without behavior is a perfectly good thing to 
do.   Specifying behavior is a orthogonal issue (or perhaps a subset 
depending on how you look at it).

The browser (xhtml) issue is so complex that I would not take it as a 
good example for a solid basis on design principals.
The problem there is that 'people' want different things from the same 
vocabulary, and not everyone can agree.
But we are at a place in technology right now where were forced to 
somewhat agree based on the assumption there should be 'one standard' 
that covers everyone's desire.   The result is somewhat of a mess right now.

I wouldnt look at xhtml for an example of what XML is all about.







-- 
David A. Lee
dlee@calldei.com
http://www.xmlsh.org


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314721.html</link>
</item><item>
<title>RE: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 1:36:00 PM</title>
<description><![CDATA[<pre>David Carlisle wrote:

&gt; It would have been a disaster if every XML process had had to use 
&gt; whichever XML parser came first, or had to use the DOM for example.

Thanks David. I realize that I was not clear on this.

The XML Processor is a perfect example of my thesis. The class of XML Processors is the Prime App for XML. At the very heart of XML interoperability is the XML Processor. Xerces-J, Xerces-C++, and Expat are instantiations of the Prime App. One XML Processor may be selected over another because it is smaller or faster or is implemented in a particular programming language. But they all behave the same way (at least theoretically).

Here's another example: For (X)HTML the Prime App is the class of Web browsers. Firefox and IE are instantiations of the Prime App.


/Roger


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314720.html</link>
</item><item>
<title>Re: [xml-dev] RE: Data Interoperability  ... Why do some XML - 8/20/2010 12:20:00 PM</title>
<description><![CDATA[<pre>On 20/08/2010 12:57, Costello, Roger L. wrote:
&gt; 2. Data interoperability is not achieved through shared understanding of the XML vocabulary. Data interoperability is achieved through shared usage of the Prime App.
&gt;

I'd say that is the most extreme opposite of the XML (SGML) philosophy 
that one could imagine.

You can have a binary opaque format and a unique application that 
processes that data, or...

You can take the view that data is the primary thing and so long as the 
data is encoded in a documented (or even partially self documenting) 
format such as XML, different applications that may use completely 
different internal models may share the data effectively.

It would have been a disaster if every XML process had had to use 
whichever XML parser came first, or had to use the DOM for example.

Why should Maple interpreting MathML use any code shared with a browser 
displaying the same MathML? What is the Prime application?

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314719.html</link>
</item><item>
<title>[xml-dev] RE: Data Interoperability  ... Why do some XML vocabularies - 8/20/2010 12:01:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

Thanks to Michael Kay, Ken Holman, and David Carlisle for their excellent inputs. 

Long ago someone on the xml-dev list said:

   An XML vocabulary is created for a purpose;
   otherwise, what's the point.

The purpose may be to do something, take an action, make a decision, etc. Even an XML vocabulary created to be purely informational (John likes cycling) has a purpose such as: make the information accessible. 

An XML vocabulary may be used for different purposes, but there is always a prime purpose. For instance, XML Schema may be used for different purposes but its prime purpose is validation. XSLT may be used for different purposes but its prime purpose is transformation.

I will use the term &quot;Prime App&quot; to mean an application that implements an XML vocabulary's prime purpose. Thus, an XML Schema validator is the Prime App for the XML Schema vocabulary. An XSLT processor is the Prime App for the XSLT vocabulary.

As a corollary to the above quote, I propose this:

   An XML vocabulary must have data interoperability;
   otherwise, what's the point.

I have often heard it said, &quot;To achieve data interoperability each application must interpret/understand the XML vocabulary in the same way.&quot;

What better way to ensure the same interpretation/understanding than to use the same application!

I am led to these 3 conclusions:

1. When you create an XML vocabulary, specify the behavior of the XML vocabulary. Specify conformance requirements. Create a conforming Prime App. Create a test suite. Everyone use the Prime App.

2. Data interoperability is not achieved through shared understanding of the XML vocabulary. Data interoperability is achieved through shared usage of the Prime App.

3. Creating an XML vocabulary without specifying its behavior is a bad idea. It is a recipe for delayed data interoperability at best, failed data interoperability at worst. For example, the XHTML vocabulary does not specify behavior. Each browser vendor had their own idea of the proper behavior of the XHTML vocabulary. The result was years of non-interoperability. It's taken over 10 years for the vendors to finally converge on a common browser behavior. Browsers could have had (theoretically) common behavior 10 years ago had the XHTML specification specified behavior of the Prime App (browser) along with conformance and test suites.

Comments?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314718.html</link>
</item><item>
<title>[xml-dev] [ANN] Release of XMLmind DITA Converter v1.2.2 - 8/20/2010 8:31:00 AM</title>
<description><![CDATA[<pre>XMLmind DITA Converter 1.2.2 (August 7, 2010)
---------------------------------------------

- Improved the rendering of complex tables.

More info in http://www.xmlmind.com/ditac/changes.html

Download XMLmind DITA Converter 1.2.2 from
http://www.xmlmind.com/ditac/download.shtml





--
XMLmind DITA Converter Support List
ditac-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/ditac-support





_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314710.html</link>
</item><item>
<title>Re: [xml-dev] Data Interoperability  ... Why do some XML vocabularies - 8/19/2010 1:33:00 AM</title>
<description><![CDATA[<pre>On 18/08/2010 21:46, Michael Kay wrote:
&gt; With XSLT it's a little less likely that anyone would do anything very
&gt; useful with a stylesheet other than execute it, but it's certainly a
&gt; theoretical possibility.

Although one of the main reasons that xslt is xml is so that it can be 
used as source data rather than being executed (often so that it can be 
transformed by another xslt stylesheet).

David


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314677.html</link>
</item><item>
<title>Re: [xml-dev] Data Interoperability  ... Why do some XML vocabularies - 8/19/2010 1:00:00 AM</title>
<description><![CDATA[<pre>At 2010-08-18 15:13 -0400, Costello, Roger L. wrote:
&gt;I see two kinds of XML vocabularies:
&gt;
&gt;1. Those containing markup that has been assigned both meaning and behavior.
&gt;
&gt;2. Those containing markup that has been assigned only meaning.

I boil that down to one kind of XML vocabulary:  a set of labels 
associated with bits of content.  What you do with what is at the 
label is up to you ... it isn't up to the vocabulary.  XML is for the 
interchange of content ... applications implement meaning and behaviour.

&gt;1. MARKUP HAS MEANING + BEHAVIOR

Or &quot;Content has labels that imply meaning and behaviour to a 
particular audience&quot; because another audience might have a very 
different interpretation of meaning and behaviour to the same labels 
of the same instance.

The markup is used for the successful interchange of content ... the 
content has the implied meaning and the behaviour.

&gt;When an XML vocabulary is created each element and attribute is 
&gt;specified with:
&gt;
&gt;    - a meaning
&gt;    - the behavior of applications that process the element

... by a particular community of users.

&gt;    XSLT: the XSLT specification describes the
&gt;    meaning of &lt;for-each&gt; as well as its behavior:
&gt;
&gt;    - &lt;for-each&gt; identifies a collection of nodes.
&gt;      That is meaning.
&gt;
&gt;     - A compliant tool must iterate over each node
&gt;       identified by the select attribute and execute
&gt;       the nodes within &lt;for-each&gt;. That is behavior.

Consider that &lt;xsl:template&gt; has one &quot;meaning and behaviour&quot; for an 
XSLT processor, but the same element in the same instance has a very 
different &quot;meaning and behaviour&quot; for my XSLStyle XSLT documentation 
methodology:

   http://www.CraneSoftwrights.com/resources/#xslstyle

Same labels ... same content ... different interpretation.  My 
stylesheets interpret the construct as having a particular 
indentation and highlighting because my application is a 
documentation application, not a transformation vocabulary.  In 
Costello-speak (which I don't agree with) XSLStyle sees XSLT as 
meaning only, no action.  Does that make it &quot;wrong&quot;?

&gt;Test suites are created for this kind of XML vocabulary. Test suites 
&gt;are used for ensuring that applications _behave_ in accordance with 
&gt;the specification.

The test suites are for the applications, not for the 
vocabulary.  One is testing the veracity of the application acting on 
the labeled content as desired or specified.  A schema tests the use 
of a vocabulary against a particular set of markup constraints ... 
but the same instance could be validated with different schemas in 
its life cycle because at different times there may be different 
markup constraints.

&gt;2. MARKUP HAS ONLY MEANING
&gt;
&gt;When an XML vocabulary is created each element and attribute is 
&gt;specified with just meaning.

No, just labels.  Meaning is expressed in the documentation.  Unless 
that is what you mean by &quot;specified with&quot;.  Different specifications 
can dictate different behaviours with the same labels of the same 
instances.  The XML vocabulary is no different because the XML 
vocabulary only specifies the interchange of the content.  How the 
content is used is the scope of a different specification.

&gt;1. Why are some XML vocabularies created with meaning + behavior 
&gt;whereas others are created with just meaning?

How about saying &quot;interpretation&quot; instead of &quot;meaning&quot;?  Different 
specifications dictate differently how to interpret the content under 
the same labels.  Thus, to use Costello-speak (which I don't agree 
with), the same vocabulary will have different &quot;meaning&quot; to different 
users.  Therefore the vocabulary doesn't have &quot;a&quot; meaning, it may have many.

&gt;2. I noticed in my examples that the XML vocabularies which specify 
&gt;meaning + behavior are machine-oriented whereas the XML vocabularies 
&gt;which just specify meaning are eyeballs-oriented. Should I 
&gt;inductively conclude that:
&gt;
&gt;    - All XML vocabularies that are machine-oriented should specify 
&gt; meaning + behavior
&gt;    - All XML vocabularies that are eyeballs-oriented should specify 
&gt; only meaning

Why do you say &quot;all&quot; and &quot;only&quot;?

Is the following &quot;meaning only&quot; or &quot;meaning and behaviour&quot;?

    &lt;task&gt;
      &lt;step&gt;Turn off breaker&lt;/step&gt;
      &lt;step&gt;Remove faceplate&lt;/step&gt;
      &lt;step&gt;Disconnect device&lt;/step&gt;
      &lt;step&gt;Remove device&lt;/step&gt;
      &lt;step&gt;Install replacement&lt;/step&gt;
      &lt;step&gt;Install faceplate&lt;/step&gt;
      &lt;step&gt;Turn on breaker&lt;/step&gt;
    &lt;/task&gt;

The interpretation of &quot;task&quot; is that it collects a set of steps whose 
relative order represents a relationship between sibling steps beyond 
just being siblings, that the siblings are ordered.  The 
interpretation of &quot;step&quot; is that it is one of a set of siblings that 
is ordered after the ones labeled before it and before the ones 
labeled after it.  Do the steps in the wrong order (which isn't the 
purview of the XML labels) and you can get hurt.

In the framework of your question today, does &lt;step&gt; have a 
behaviour-related meaning?  It is describing an action.

&gt;3. Is the goal of XML to maximize interoperability?

Yes, but only at the level of interpreting the granularity of and 
labels on content and, in my opinion, no further.  The goal of XML is 
to label content unambiguously to different processors that implement 
the XML processor the same way.  The goal of XML is to deliver the 
same information to different applications.  What people do with the 
content using their applications is their business and outside the 
scope of XML.  A community of users of a particular vocabulary may 
wish to agree to handle the labeled content in the same fashion, and 
they may use a specification with which to come to agreement.

A schema shared between users ensures the markup constraints on 
content are applied the same by all ... &quot;information interchange&quot; is 
promoted by using XML ... &quot;interoperability&quot; by applications will be 
up to the specification agreed on by participants.

&gt;4. If the answer to (3) is &quot;yes&quot; then shouldn't every XML vocabulary 
&gt;be specified with both meaning and behavior?

How about turning that around:  applications are specified with 
behaviour and the interpretation of labeled content in XML documents 
that is marked up according to an agreed-upon XML vocabulary and its 
associated schema.

Focus on the content, not on the markup ... the markup is only used 
to deliver the content and label it.

&gt;5. Firefox and IE behave nearly identically. Is that almost 
&gt;miraculous in light of the fact that the XHTML specification says 
&gt;nothing about how the markup should behave?

I shouldn't think so.  The XHTML specification dictates the 
interpretation of the labels of XHTML and the two development teams 
implemented the same interpretation for the task of presenting the 
marked-up content in a web browser.

But Firefox and IE and all the other screen browser applications are 
not the only applications that interpret XHTML.

An XHTML document can also be seen as a resource discovery document 
by an application that has nothing to do with presentation and so 
isn't at all related to Firefox and IE.  That &quot;meaning&quot; for XHTML 
labels on content is documented in the XHTML specification as 
&quot;relating online information via hypertext links&quot; with which one 
using RDDL labels enhances it by describing what kind of content is 
anticipated to be found at the other end of the link.

Your point would seem to imply that the sole purpose of XHTML is to 
paint a browser screen.

&gt;6. I also noticed in my examples that the XML vocabularies which 
&gt;specify meaning + behavior involve binary operations:
&gt;
&gt;       XML Schema validates XML (The operator is &quot;validate&quot; and the 
&gt; operands are the XML Schema and the XML)

... when interpreted by a schema validating processor.

&gt;       XSLT transforms XML (The operator is &quot;transform&quot; and the 
&gt; operands are the XSLT and the XML)

... when interpreted by a transformation engine.  XSLT produces 
nicely-presented documentation when interpreted by XSLStyle, works 
successfully, and has nothing to do with a transformation in that context.

UBL invoices create cheques to cash at a bank when interpreted by a 
company that owes someone money.  UBL invoices create a pretty piece 
of paper when interpreted by XSLT/XSL-FO stylesheets.

I think you have to dissociate application behaviours from XML 
vocabularies.  Different applications will behave differently with 
the same XML vocabulary.  The vocabulary only enables successful 
content interchange, not content interpretation.

&gt;   Whereas the XML vocabularies which just specify meaning involve 
&gt; unary operations:
&gt;
&gt;       Display XHTML (The operator is &quot;display&quot; and the operand is XHTML)

Or the operator is &quot;relate&quot; and the operands are one XHTML document 
with the source link and a second XHTML document with the 
anchor.  That is two operand &quot;documents&quot; with one operator 
&quot;relate&quot;.  Not unary.

&gt;       Display RSS  (The operator is &quot;display&quot; and the operand is RSS)
&gt;
&gt;   Should I inductively conclude that:
&gt;
&gt;    - All XML vocabularies that are involved in binary operations 
&gt; should specify meaning + behavior
&gt;    - All XML vocabularies that are involved in unary operations 
&gt; should specify only meaning

I wouldn't.

&gt;7. For perfect (or nearly perfect) interoperability, must an XML 
&gt;vocabulary specify both meaning and behavior?

An XML vocabulary specifies only the interchange of information 
between applications and does so by using labels and granularity.

A community of users must agree to deal with the labeled content in 
agreed-upon ways.

A different community of users must agree to deal with the same 
labeled content in their agreed-upon ways.

I hope this helps.

. . . . . . . . . Ken

--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314676.html</link>
</item><item>
<title>Re: [xml-dev] A little experiment to compare external entities and - 8/18/2010 3:25:00 PM</title>
<description><![CDATA[<pre>Costello, Roger L. wrote:

&gt; 3. The XML parsers in IE and Firefox do not support XInclude, correct?

But you can learn them to resolve XIncludes. It is possible to write
simple XSLT stylesheet which will replace xi:include elements with
referenced content. Browser can be instructed to run this transformation
automatically by placing &lt;?xml-stylesheet ?&gt; processing instruction at
the beginning of XML file.

It's kind of hack, but in theory it should work.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314671.html</link>
</item><item>
<title>RE: [xml-dev] xml rendering browser problems - 8/17/2010 9:32:00 PM</title>
<description><![CDATA[<pre>If you right-click in Firefox, you'll see that it knows very well that the type is text/xml. The one way I can see to get Firefox to render this in a useful way is to have Firebug installed, right-click in the window displaying simply &quot;Test&quot;, and select &quot;Inspect element,&quot; which will give you the DOM. 

-----Original Message-----
From: Manos Batsis [mailto:manos_lists@geekologue.com] 
Sent: Tuesday, August 17, 2010 3:09 PM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] xml rendering browser problems

On 08/17/2010 05:39 PM, Paul M wrote:
&gt; I have this xml:
&gt; &lt;myxml&gt;
&gt; &lt;body&gt;
&gt; &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Test&lt;/p&gt;
&gt; &lt;/body&gt;
&gt; &lt;/myxml&gt;
&gt;
&gt; Firefox will attempt to render this as html.
&gt;
&gt;
&gt; &lt;myxml&gt;
&gt; &lt;body&gt;
&gt; &lt;p&gt;Test&lt;/p&gt;
&gt; &lt;/body&gt;
&gt; &lt;/myxml&gt;
&gt;
&gt; Firefox will attempt to parse this as xml.
&gt;
&gt; The response type has no affect on Firefox behavior.

Weird. I'd first verify what is the MIME FF actually figures this to be 
(i.e. right click, page info or something). Maybe you are not actually 
sending the right headers.

hth,

Manos

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314645.html</link>
</item><item>
<title>Re: [xml-dev] xml rendering browser problems - 8/17/2010 7:02:00 PM</title>
<description><![CDATA[<pre>On 08/17/2010 05:39 PM, Paul M wrote:
&gt; I have this xml:
&gt; &lt;myxml&gt;
&gt; &lt;body&gt;
&gt; &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Test&lt;/p&gt;
&gt; &lt;/body&gt;
&gt; &lt;/myxml&gt;
&gt;
&gt; Firefox will attempt to render this as html.
&gt;
&gt;
&gt; &lt;myxml&gt;
&gt; &lt;body&gt;
&gt; &lt;p&gt;Test&lt;/p&gt;
&gt; &lt;/body&gt;
&gt; &lt;/myxml&gt;
&gt;
&gt; Firefox will attempt to parse this as xml.
&gt;
&gt; The response type has no affect on Firefox behavior.

Weird. I'd first verify what is the MIME FF actually figures this to be 
(i.e. right click, page info or something). Maybe you are not actually 
sending the right headers.

hth,

Manos

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314643.html</link>
</item><item>
<title>RE: [xml-dev] xml rendering browser problems - 8/17/2010 6:54:00 PM</title>
<description><![CDATA[<pre>Sorry Paul, you're right. I should have tried this before I posted.

From: Tony Nassar [mailto:tnassar@palantir.com]
Sent: Tuesday, August 17, 2010 2:40 PM
To: xml-dev
Subject: RE: [xml-dev] xml rendering browser problems

I've never seen Firefox display *any* namespace information. It's not interpreting your XML as XHTML; it's simply rendering it in a fashion we don't like. If someone knows a Firefox setting to fix this, I'd be happy to learn.

From: Paul M [mailto:pjmaip@yahoo.com]
Sent: Tuesday, August 17, 2010 10:39 AM
To: xml-dev@lists.xml.org
Subject: [xml-dev] xml rendering browser problems

I have this xml:
&lt;myxml&gt;
    &lt;body&gt;
                 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Test&lt;/p&gt;
    &lt;/body&gt;
&lt;/myxml&gt;

Firefox will attempt to render this as html.


&lt;myxml&gt;
    &lt;body&gt;
                &lt;p&gt;Test&lt;/p&gt;
    &lt;/body&gt;
&lt;/myxml&gt;

Firefox will attempt to parse this as xml.

The response type has no affect on Firefox behavior.

Is there any method to force the first file to be parsed as xml and not rendered as xhtml with the namespace include?

Any information  appreciated...</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314642.html</link>
</item><item>
<title>RE: [xml-dev] xml rendering browser problems - 8/17/2010 6:44:00 PM</title>
<description><![CDATA[<pre>I've never seen Firefox display *any* namespace information. It's not interpreting your XML as XHTML; it's simply rendering it in a fashion we don't like. If someone knows a Firefox setting to fix this, I'd be happy to learn.

From: Paul M [mailto:pjmaip@yahoo.com]
Sent: Tuesday, August 17, 2010 10:39 AM
To: xml-dev@lists.xml.org
Subject: [xml-dev] xml rendering browser problems

I have this xml:
&lt;myxml&gt;
    &lt;body&gt;
                 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Test&lt;/p&gt;
    &lt;/body&gt;
&lt;/myxml&gt;

Firefox will attempt to render this as html.


&lt;myxml&gt;
    &lt;body&gt;
                &lt;p&gt;Test&lt;/p&gt;
    &lt;/body&gt;
&lt;/myxml&gt;

Firefox will attempt to parse this as xml.

The response type has no affect on Firefox behavior.

Is there any method to force the first file to be parsed as xml and not rendered as xhtml with the namespace include?

Any information  appreciated...</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314641.html</link>
</item><item>
<title>[xml-dev] xml rendering browser problems - 8/17/2010 3:19:00 PM</title>
<description><![CDATA[<pre>I have this xml:
&lt;myxml&gt;
&#160;&#160;&#160; &lt;body&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Test&lt;/p&gt;
&#160;&#160;&#160; &lt;/body&gt;
&lt;/myxml&gt;

Firefox will attempt to render this as html.


&lt;myxml&gt;

&#160;&#160;&#160; &lt;body&gt;

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p&gt;Test&lt;/p&gt;

&#160;&#160;&#160; &lt;/body&gt;

&lt;/myxml&gt;


Firefox will attempt to parse this as xml.

The response type has no affect on Firefox behavior.

Is there any method to force the first file to be parsed as xml and not rendered as xhtml with the namespace include?

Any information&#160; appreciated...</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314638.html</link>
</item><item>
<title>Re: [xml-dev] [Summary] A little experiment to compare external - 8/16/2010 6:40:00 PM</title>
<description><![CDATA[<pre>At 2010-08-16 13:08 -0400, Costello, Roger L. wrote:
&gt;Please correct any errors I may have made.  /Roger
&gt;
&gt;Here is an XML document that declares and then uses an external entity:

&quot;external general entity&quot;

... you haven't talked about external parameter entities at all, so I 
think it would be important to the reader to know that you are only 
talking about some of the entities and not all of the entities.  In 
all your post you've been talking about general entities.

&gt;External entities are part of the XML specification. Thus, external 
&gt;entities are resolved by the XML parser. All XML parsers must 
&gt;support external entities. So, the XML parser in IE and in Firefox 
&gt;resolved the external entity reference.

As I cited, since &quot;XML Parser&quot; is not defined in the XML 
Specification as an official term, but an &quot;XML Processor&quot; is defined 
(the parsing is part of the processing, the processor supplies what 
is parsed to an application), that you not continue to use the term 
&quot;XML Parser&quot;.  I grant that I see the term &quot;parser&quot; used in the 
specification, it has been creeping in since the Third Edition (which 
refers to it twice) and the Fourth and Fifth Editions refer to it 
three times.  I see that the second edition doesn't use the word at 
all as it was cleaned up from its use in the first edition.  My 
understanding is that was done in the second edition to clear up any 
confusion about an &quot;XML Parser&quot; since parsing is only part of the 
job, and that the second edition was clear there were only XML 
Processors that included a parsing activity, but there were not XML 
Parsers per se.

I hope this helps.

. . . . . . . . Ken


--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314624.html</link>
</item><item>
<title>RE: [xml-dev] A little experiment to compare external entities and - 8/16/2010 3:37:00 PM</title>
<description><![CDATA[<pre>At 2010-08-16 11:16 -0400, Costello, Roger L. wrote:
&gt;I wrote:
&gt;
&gt; &gt;&gt; 2. &lt;xi:include&gt; elements are resolved by the XML parser, correct?
&gt;
&gt;And Ken Holman responded:
&gt;
&gt; &gt; I wouldn't think so.  An XML processor is defined by the XML
&gt; &gt; specification and XInclude is a supplemental specification that isn't
&gt; &gt; part of the definition of XML.  I would expect an XInclude processor
&gt; &gt; (if such exist ... I haven't had to look for one) would incorporate
&gt; &gt; an XML processor and would give you what you want.
&gt;
&gt;I was under the impression that XInclude occurred within the XML 
&gt;parser based on this statement that I read on another list:
&gt;
&gt;    &quot;... that gets expanded during xml parsing (xinclude, ...)&quot;
&gt;
&gt;The statement is false?

It is true for an XInclude processor.

It is false for an XML processor that implements only the XML specification.

Note Michael's wording:

&gt; &gt; Both Xerces-J and Xerces-C++ have support for XInclude.

They have chosen to support XInclude within their product.  &quot;Have 
support for&quot; doesn't imply that XInclude is a mandatory aspect of XML 
they are obliged to implement.

&gt;Michael, do you mean that XInclude in built _within_ the Xerces-J 
&gt;and Xerces-C++ XML parsers? Or, do you mean that the Xerces-J and 
&gt;Xerces-C++ XML parsers are _supplemented_ (extended) with XInclude?

Since the XML Specification does not include XInclude, would that not 
imply that XInclude is a supplement to an XML processor?

. . . . . . . . Ken

--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314621.html</link>
</item><item>
<title>Re: [xml-dev] A little experiment to compare external entities and - 8/16/2010 2:55:00 PM</title>
<description><![CDATA[<pre>At 2010-08-16 10:33 -0400, Costello, Roger L. wrote:
&gt;I did a little experiment.
&gt;
&gt;I dragged and dropped this into Internet Explorer:
&gt;
&gt;-----------------------------------------------
&gt;&lt;?xml version=&quot;1.0&quot;?&gt;
&gt;&lt;!DOCTYPE BookStore [
&gt;     &lt;!ENTITY Siddhartha SYSTEM &quot;Siddhartha.xml&quot;&gt;
&gt;]&gt;
&gt;&lt;BookStore&gt;
&gt;
&gt;     &amp;Siddhartha;
&gt;
&gt;&lt;/BookStore&gt;
&gt;-----------------------------------------------
&gt;
&gt;The browser resolved the external entity reference and this is what I saw:
&gt;
&gt;&lt;?xml version=&quot;1.0&quot; ?&gt;
&gt;&lt;!DOCTYPE BookStore (View Source for full doctype...)&gt;
&gt;&lt;BookStore&gt;
&gt;     &lt;Book&gt;
&gt;        &lt;Title&gt;Siddhartha&lt;/Title&gt;
&gt;        &lt;Author&gt;Hermann Hess&lt;/Author&gt;
&gt;        &lt;Date&gt;1951&lt;/Date&gt;
&gt;        &lt;ISBN&gt;0-553-20884-5&lt;/ISBN&gt;
&gt;        &lt;Publisher&gt;Bantam Books&lt;/Publisher&gt;
&gt;     &lt;/Book&gt;
&gt;&lt;/BookStore&gt;
&gt;
&gt;
&gt;Next, I dragged and dropped this into Internet Explorer:
&gt;
&gt;-----------------------------------------------
&gt;&lt;?xml version=&quot;1.0&quot;?&gt;
&gt;&lt;BookStore xmlns:xi=&quot;http://www.w3.org/2001/XInclude&quot;&gt;
&gt;
&gt;     &lt;xi:include href=&quot;Siddhartha.xml&quot; parse=&quot;xml&quot;&gt;
&gt;         &lt;xi:fallback /&gt;
&gt;     &lt;/xi:include&gt;
&gt;
&gt;&lt;/BookStore&gt;
&gt;-----------------------------------------------
&gt;
&gt;The browser did NOT resolve the XInclude reference. I saw no change.

Doesn't surprise me.

&gt;I repeated the experiment with the Firefox browser and it exhibited 
&gt;the same behavior as Internet Explorer.
&gt;
&gt;QUESTIONS
&gt;
&gt;1. What should I conclude from this little experiment? Should I 
&gt;conclude that the browsers support external entities but do not 
&gt;support XInclude?

I would.  XInclude is not part of the XML specification ... it is a 
separate specification.

&gt;2. &lt;xi:include&gt; elements are resolved by the XML parser, correct?

I wouldn't think so.  An XML processor is defined by the XML 
specification and XInclude is a supplemental specification that isn't 
part of the definition of XML.  I would expect an XInclude processor 
(if such exist ... I haven't had to look for one) would incorporate 
an XML processor and would give you what you want.

But if something claims it supports XML I would not therefore 
conclude that it supports XInclude.

&gt;By &quot;resolve&quot; I mean that the &lt;xi:include&gt; element is replaced by the 
&gt;contents of the file it references.

I thought XInclude processing was ambiguous:  for example, does one 
validate an instance with XInclude before or after the element is 
replaced with its contents?

&gt;3. The XML parsers in IE and Firefox do not support XInclude, correct?

I doubt it ... they only claim to support XML.

&gt;4. The XML parser in IE is MSXML, correct?

The XML processor in IE works very well.  The only thing I don't like 
about it is the way it builds the node tree for XSLT processing by 
implicitly tossing white-space-only text nodes that I may want to 
keep.  I very much like the way it processes declaration subsets.

&gt;5. What is the XML parser in Firefox?

I don't know, but I have experienced it choking on some declaration 
subsets in ways that don't choke IE.

&gt;6. What XML parsers support XInclude?

I would rather ask which XInclude processors are out there ... 
XInclude isn't part of XML.

BTW, regarding terminology from the introduction of XML, section 1.0:

    http://www.w3.org/TR/2008/REC-xml-20081126/#sec-intro
    [Definition: A software module called an XML processor is
     used to read XML documents and provide access to their content
     and structure.]

I see that as restricting it to the XML specification, not including 
things like XInclude.

 From XInclude:

    http://www.w3.org/TR/xinclude/#intro
    This specification introduces a generic mechanism for merging
    XML documents (as represented by their information sets) for
    use by applications that need such a facility.

Which implies that you would need an XInclude processor for merging, 
not that XInclude somehow becomes part of what an XML Processor is 
obliged to support.

I hope this helps.

. . . . . . . . . Ken

--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314620.html</link>
</item><item>
<title>RE: [xml-dev] Getting XSD annotation from matched element - 8/13/2010 6:53:00 PM</title>
<description><![CDATA[<pre>I agree that directly processing XSD syntax representation is tricky and
complicated, and the alternative approach that introduces intermediate
representation such as the schema component model might be easier.
However, I have not been convinced that this is too complicated to do.
I found it's a rather intriguing practice. Of course, any solid
evidences, detailed advices would be greatly appreciated! 
 
I also think the restriction referred here should be able to be removed
by using the path to an instance node (instead of merely an instance
node) as a parameter. 

Lisa
 


-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Friday, August 13, 2010 10:39 AM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Getting XSD annotation from matched element

On 13/08/2010 17:56, Xia Li wrote:
&gt; You might take a look at this XSLT function library provided with this
&gt; article,
&gt;
&gt; http://www.ibm.com/developerworks/library/x-schemanode/
&gt;
&gt; You will find a set of XSLT functions that would allow you to locate
the
&gt; schema component (the element declaration/type definition) for a given
&gt; instance node.
&gt;
&gt; Lisa
&gt;
&gt;    

That's an amazingly ambitious library, thanks for the reference!

Unfortunately code that works directly from schema documents is usually 
wrong, at least in the sense that it cannot process arbitrary valid 
schemas. For example, the following restriction is documented, and rules

out many real schemas:

&quot;The constraint of this algorithm is that a local element is not allowed

to be declared with the same name of a global element.&quot;

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314606.html</link>
</item><item>
<title>[xml-dev] [Summary] Eager and Just-in-Time loading of XML Schema - 8/7/2010 1:51:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

Here is a summary of the recent discussions. Please notify me of any errors.  /Roger

--------------------------------------------------------------------------------

The following XML document references two XML Schemas: Library.xsd and Book.xsd

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;Library xmlns=&quot;http://www.library.org&quot;
         xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
         xsi:schemaLocation=
                    &quot;http://www.library.org
                     Library.xsd&quot;&gt;
    &lt;Books&gt;
        &lt;Book xmlns=http://www.book.org
              xsi:schemaLocation=
                           &quot;http://www.book.org
                            Book.xsd&quot;&gt;
                &lt;Title&gt;My Life and Times&lt;/Title&gt;
                &lt;Author&gt;Paul McCartney&lt;/Author&gt;
                &lt;Date&gt;1998&lt;/Date&gt;
                &lt;ISBN&gt;1-56592-235-2&lt;/ISBN&gt;
                &lt;Publisher&gt;Macmillan Publishing&lt;/Publisher&gt;
        &lt;/Book&gt;
        ... 
    &lt;/Books&gt;
&lt;/Library&gt;

When does an XML Schema validator load (into memory) the XML Schema documents? When will Library.xsd and Book.xsd be loaded?

Answer: It depends on whether they are coupled or independent. 

-------------------------
        CASE #1
-------------------------
Suppose Library.xsd and Book.xsd are coupled, i.e., Library.xsd imports Book.xsd.

Here's a snippet of Library.xsd:

&lt;xs:import namespace=&quot;http://www.book.org&quot; schemaLocation=&quot;Book.xsd&quot;/&gt;

&lt;xs:complexType name=&quot;BooksType&quot;&gt;
   &lt;xs:sequence&gt;
       &lt;xs:element xmlns:bk=&quot;http://www.book.org&quot; ref=&quot;bk:Book&quot;/&gt;
   &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;


Both schemas will be loaded at the same time--when the validator hits the &lt;Library&gt; element.

This is called eager loading. The validator loads the schemas that schemaLocation references, plus (recursively) all the schemas it imports and includes.


-------------------------
        CASE #2
-------------------------
Suppose Library.xsd and Book.xsd are independent. 

Here's a snippet of Library.xsd:

&lt;xs:complexType name=&quot;BooksType&quot;&gt;
   &lt;xs:sequence&gt;
       &lt;xs:any namespace=&quot;http://www.book.org&quot;/&gt;
   &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;


Library.xsd will be loaded when the validator hits the &lt;Library&gt; element. Book.xsd won't be loaded until the validator hits the &lt;Book&gt; element.

This is called just-in-time loading. The validator loads the schema only when it's needed. 


-------------------------
        CASE #3
-------------------------
Suppose Library.xsd imports and includes some XML Schemas (but not Book.xsd). 

Here's a snippet of Library.xsd:

&lt;xs:import namespace=&quot;http://www.example.org&quot; schemaLocation=&quot;Example.xsd&quot;/&gt;

&lt;xs:include schemaLocation=&quot;Author.xsd&quot;/&gt;

&lt;xs:include schemaLocation=&quot;Title.xsd&quot;/&gt;

&lt;xs:include schemaLocation=&quot;Date.xsd&quot;/&gt;


When Library.xsd is loaded, the schemas it imports and includes will also be loaded (eager loading). Book.xsd is not loaded until the validator hits the &lt;Book&gt; element (just-in-time loading). Thus, here we see a combination of eager and just-in-time loading.



I have confirmed that the following XML Schema validators have the eager and just-in-time loading behavior described above: 

    SAXON (Java and .NET) and Xerces-J

I have no information on these validators: 

    Xerces-C++, Xerces-Perl, Libxml, MSXML, or XSV.


EXPLOITING JUST-IN-TIME LOADING TO ENHANCE PERFORMANCE

Consider this scenario: 

1. Your XML document is very large.

2. The XML Schemas that will be used to validate the XML document are independent (or, the XML Schemas can be partitioned into independent sets).

One way to design your XML document is to specify all the XML Schemas upfront:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;Document xmlns=&quot;http://www.library.org&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xsi:schemaLocation=
                    &quot;http://www.s1.org
                     S1.xsd
                     http://www.s2.org
                     S2.xsd 
                     ...
                     http://www.sn.org
                     Sn.xsd&quot;&gt; 

The disadvantage of this approach is that all the schemas will be loaded at once (eager loading). If there are a lot of schemas this could be slow.


A second approach is to specify a schema at the point where it's first needed. This will enable you to exploit the just-in-time loading capability of schema validators. This is illustrated here:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;Document xmlns=&quot;http://www.library.org&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xsi:schemaLocation=
                    &quot;http://www.s1.org
                     S1.xsd&quot;&gt;

    &lt;Element-A&gt;...&lt;/Element-A&gt;
    &lt;Element-B&gt;...&lt;/Element-B&gt;
    &lt;Element-C xsi:schemaLocation=
                    &quot;http://www.s2.org
                     S2.xsd
        &lt;Element-D&gt;...&lt;/Element-D&gt;
        &lt;Element-E&gt;...&lt;/Element-E&gt;
        ...
    &lt;/Element-C&gt;

S1.xsd will be loaded when the validator hits the &lt;Document&gt; element. S2.xsd won't be loaded until the validator hits the &lt;Element-C&gt; element. And so forth. This approach exploits just-in-time loading of XML Schema documents.

If the XML document is streamed then this approach may yield significant performance savings.


USING COMPILED XML SCHEMAS TO ENHANCE PERFORMANCE

Another technique that may be used to enhance performance is to compile the XML Schema documents and save the compiled version. Then, when you want to validate the XML document, you use the compiled file (rather than loading the XML Schema documents, compiling them, and then validating).

SAXON supports this ability to compile schemas. Michael Kay writes:

    With Saxon, for example, I would advise you to save a 
    .SCM file representing the compiled schema; reloading the schema from a 
    .SCM file should be significantly faster than rebuilding it from source 
    schema documents. 

Rich Salz reports that the DataPower products also compile their files first:

    The DataPower products work this way.  XSLT, XSD, WSDL, XACML, etc., files 
    are compiled to object code the first time they're used (or you can 
    pre-load the object cache). Then when actually &quot;used&quot; the object code is 
    executed directly by the CPU(s).

I do not know if the other schema validators provide the option to compile XML Schemas.



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201008/msg1000314517.html</link>
</item><item>
<title>[xml-dev] Natasha Noy and Peter Yim keynote speakers at SERES (ISWC), - 8/3/2010 7:06:00 PM</title>
<description><![CDATA[<pre>==============================

CALL FOR PAPERS
==============================

1st International Workshop on Semantic Repositories for the Web (SERES 2010)

http://www.ontologydynamics.org/od/index.php/seres2010/

&lt;http://www.ontologydynamics.org/od/index.php/seres2010/&gt;
at the 9th International Semantic Web Conference

Natasha Noy and Peter Yim will be our keynote speakers at the 1st
International Workshop on Semantic Repositories for the Web (SERES 2010).


  http://iswc2010.semanticweb.org

November 7, 2010, in Shanghai, China
==============================



Ontologies and Linked Data vocabularies are being actively developed and
used by numerous applications. Several domains are making their vocabularies
available for others to reuse. In addition, good practices when developing
ontologies are often followed, particularly for producing reusable modules.
The Semantic Web is a modular and highly federated environment of reusable
knowledge sources; these provide the meaning so that SW applications change
our experience of the web. Within this context, the need for repositories
delivering the added value that makes the SW a concrete step beyond our
current experience of the web is palpable. SERES addresses issues around
semantic repositories within the context of the SW.



The number of ontologies being built and made available for reuse has
increased steadily in the last few years. Semantic Web search engines such
as Swoogle &lt;http://swoogle.umbc.edu/&gt; and
Watson&lt;http://watson.kmi.open.ac.uk/&gt; currently
index several tens of thousands of them; there are also systems specifically
designed to support the publication of ontologies, e.g.
Cupboard&lt;http://kmi-web06.open.ac.uk:8081/cupboard&gt;
, NCBO Bioportal &lt;http://bioportal.bioontology.org/&gt;, and
ONKI&lt;http://www.yso.fi/&gt;.
Some tools also support editing features, e.g.
Neologism&lt;http://neologism.deri.ie/&gt;
, Knoo &lt;http://knoodl.com/&gt;dl &lt;http://knoodl.com/&gt;. While being a foundation
for the Semantic Web, this new environment where ontologies are shared and
interlinked online also poses new challenges; fostering thus a number of
research projects aiming to understand, amongst others, ontology reuse,
storage, publication, versioning, quality control, evaluation, retrieval and
modularization. For instance, as part of the EU NeOn
project&lt;http://neon-project.org&gt; new
tools supporting Knowledge Engineering in the age of “networked ontologies”
have been developed, while in the EU OASIS project approaches from software
engineering and formalization are now also being applied to inter-connect
ontologies. Moreover, despite initial efforts, ontology repositories are
hardly interoperable *amongst themselves*. Although sharing similar aims
(providing easy access to Semantic Web resources), they diverge in the
methods and techniques employed for gathering these documents and making
them available; each interprets and uses metadata in a different manner.
Furthermore, many features are still poorly supported; for instance,
modularization, versioning, and the relationship between ontology
repositories and ontology engineering environments (editors) to support the
entire ontology lifecycle.



By the same token, there are several domains making available knowledge
resources; for instance, digital libraries such as Pubmed Central offer a
large collection of biomedical abstracts and, in some cases, open access to
the full document. Some researchers are starting to bridge the gap between
clinical and experimental data and literature; such connection is being
built via ontologies, some approaches have had BioPortal as their ontology
repository. Linked Data is also being explored as a means for publishers to
expose their content. Knowledge management over documents is actively aiming
to make real the notion of self-descriptiveness; being this intrinsically
related to various resources over the web providing meaning for atomic
component in documents –words, tables, figures, maps, etc. In order for
these systems to be successful, it is necessary to provide a forum for
researchers and developers to discuss features and exchange ideas on the
realization of repositories providing semantics. In addition, it is now
critical to achieve interoperability *between* these repositories, through
common interfaces, standard metadata formats, etc. SERES10 intends to
provide such a forum.



*Questions addressed by SERES10:*

&#183;                How can semantic repositories support the realization of
the SW?

&#183;                Semantic repositories, ontology repositories, knowledge
repositories, where are the boundaries? How are they interacting? Are they
changing our experience of the web?

&#183;                How are domain specific knowledge repositories, such as
biomedical digital libraries, interconnecting knowledge in meaningful
manners?

&#183;                How are e-government initiatives using and delivering
semantics and knowledge repositories?

&#183;                How can ontology repositories support novel semantic
applications?

&#183;                How can ontology repositories encourage the development of
high quality ontologies that are used routinely by relevant communities?

&#183;                How can ontology repositories provide semantics for
applications?

&#183;                How can ontology repositories contribute to the reuse of
ontologies across different domains and applications?

&#183;               How can ontology repositories interoperate with one another
to support scalability, availability and distributed reasoning?

&#183;                How can provenance and intellectual property information be
managed in and across ontology repositories?

&#183;                How can the abundant and complex knowledge contained in
relevant ontology repositories be made comprehensible for users?

&#183;                How can branching, versioning, mappings, dependencies and
configurations/compositions be managed in and across ontology repositories?

&#183;                How can ontology repositories interoperate with related
applications such as ontology editors, automated reasoners, and rule
engines?

&#183;                How can modularity be better supported in and across
ontology repositories; similarly, how could modularization be formalized?

&#183;                How can ontology repositories support distributed
reasoning?

&#183;                How can ontology repositories support corporate, national
and domain specific metadata/semantic infrastructures?

&#183;                What measurements for describing and comparing ontologies
can we use? How could ontology repositories use these?



*Workshop Audience*

We want to bring together researchers and practitioners active in the
design, development and application of semantic web technology, semantic
registries and repositories, knowledge management systems, knowledge
repositories, repository editors, modularization techniques, versioning
systems and issues around federated ontology systems.  As some
repository-related tools are already under development, and repositories are
a crucial part of business infrastructure, we also address progressive Chief
Technology Officers interested in using these technologies.



IMPORTANT DATES
==============================

 Paper Submission Deadline   August 20, 2010, 23.50 Hawaii time
 Acceptance Notification       September 17, 2010
 Camera Ready                   October 7, 2010
 SERES Workshop (tentative date)               November 7, 2010



SUBMISSION AND PROCEEDINGS
==============================
Research papers are limited to 12 pages and position papers to 5 pages. For
system descriptions, a 5 page paper should be submitted. All papers and
system
descriptions should be formatted according to the LNCS format

http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0


Proceedings of
the workshop will be published online. Depending on the number and quality
of
the submissions, authors might be invited to present their papers during a
poster session.



Please submit your paper via EasyChair at
http://www.easychair.org/conferences/?conf=seres10


Submissions that do not comply with the formatting of LNCS or that exceed
the
12 page limit (research papers) or 5 page limit (position papers and systems
descriptions) will be rejected without review.


We note that the author list does not need to be anonymized, as we do not
have
a double-blind review process in place.

Submissions will be peer reviewed by three independent reviewers. Accepted
papers have to be presented at the workshop and they will be included in the

workshop proceedings that are published online at CEUR-WS.



*Program Committee*



Natasha Noy, Stanford University, USA.

 Li Ding, Rensselaer Polytechnic Institute, USA.

John Bateman, Universit&#228;t Bremen, Germany.

 Michael Kohlhase, Jacobs University, Germany.

Raul Palma, Poznan University, Poland.

Oscar Corcho, Universidad Politecnica de Madrid, Spain.

Fabian Neuhaus, University of Maryland, USA.

Aleman-Bonarges Meza, Universidad Politecnica de Victoria, Mexico

Christoph Lange,  Jacobs University, Germany.

Sandro Hawke, W3C.

Christopher Baker, University of New Brunswick, Canada.

Nigam Shah, Stanford University, USA.

Peter Haase, Institute of Applied Informatics and Formal Description
Methods, Germany.

Michael Gruninger, University of Toronto, Canada

Leyla Garcia, Bundeswehr University, Germany.

Benjamin Good, USA

Matthew Horridge, University of Manchester, UK





*Organizing Committee*

Alexander Garcia, University of Bremen
Mathieu d'Aquin,  Knowledge Media Institute of the Open University
Mike Dean, Principal Engineer at Raytheon BBN Technologies
Kenneth Baclawski, College of Computer and Information Science, Northeastern
University

-- 
Alexander Garcia
http://www.alexandergarcia.name/
http://www.usefilm.com/photographer/75943.html
http://www.linkedin.com/in/alexgarciac
Postal address:
Alexander Garcia, Tel.: +49 421 218 64211
Universit&#228;t Bremen
Enrique-Schmidt-Str. 5
D-28359 Bremen</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201008/msg1000314460.html</link>
</item><item>
<title>[xml-dev] ANN: LIBX* July 2010 Beta Release - 7/30/2010 5:02:00 AM</title>
<description><![CDATA[<pre>LIBX* is a project to implement XPath 2.0 and XSLT 2.0 using the Gnome libxml2 and libxslt libraries respectively.

LIBX* July 2010 Beta Release is now available for download from:

http://www.explain.com.au/libx

This release implements the xsl:function element.

A new mailing list has been set up for discussion of the LIBX* project. Go to http://www.explain.com.au/mailman/listinfo/libx to subscribe.

Steve Ball
Explain</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201007/msg1000314416.html</link>
</item><item>
<title>[xml-dev] Big hierarchy of XML Schema documents ... which XML Schema - 7/28/2010 8:06:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

Suppose that my XML Schema imports/includes some XML Schemas and they import/include some XML Schemas and so on. That is, there is a big hierarchy of XML Schema documents.

I envision two ways that XML Schema validators could be implemented:

1. On-demand: the validator brings in an XML Schema document only when it's needed. (On-demand/Just-in-time/Dynamic-Loading)

2. Not on-demand: when the validator brings in an XML Schema document it also brings in the XML Schema documents it imports/includes and the documents they import/include and so on. (What is the right term for this?)

I am interested to know how these XML Schema validators operate with regard to being on-demand or not. Can you help to fill in this table please:

                 On-demand      Not on-demand
SAXON (Java)

SAXON (.NET)

XERCES (Java)

XERCES (C++)

XERCES (Perl)

LIBXML

MSXML

XSV


/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314397.html</link>
</item><item>
<title>[xml-dev] [ANN] XQuery Update Facility Test Suite version 1.0.1 - 7/27/2010 9:39:00 PM</title>
<description><![CDATA[<pre>The XML Query Working Group would like to announce the availability of 
version 1.0.1 of the XQuery Update Facility Test Suite (XQUTS) [1]. This 
test suite reflects the XQuery Update Facility 1.0 Candidate 
Recommendation [2] that was published on June 9, 2009. It incorporates 
changes that have been made in response to comments we received on XQUTS 
1.0.0.

We have provided release notes [3], guidelines on how to run the test 
suite, how to provide feedback to us, and how to send your results to us.

We encourage implementors to run this test suite and provide their results 
to us. If enough positive results are received, then we will be able to 
request a transition to Proposed Recommendation. 

We encourage implementors that have already provided their results to us 
to send us their results for XQUTS 1.0.1. New test cases have been added, 
test cases have been modified and in one case the expected result for a 
test case has changed. The test suite catalog now identifies whether or 
not to run certain test groups, depending on whether the implementation 
being tested supports some of the optional features. See &quot;Deciding which 
test cases to run&quot; in our Guidelines for Running the XML Query Update Test 
Suite.


                                                -- Andrew

[1] XML Query Update Facility Test Suite
http://dev.w3.org/2007/xquery-update-10-test-suite/

[2] XQuery Update Facility 1.0
http://www.w3.org/TR/2009/CR-xquery-update-10-20090609/ 

[3] XML Query Update Test Suite Release Notes
http://dev.w3.org/2007/xquery-update-10-test-suite/release_notes.html

--------------------
Andrew Eisenberg
IBM
5 Technology Park Drive
Westford, MA  01886

andrew.eisenberg@us.ibm.com</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201007/msg1000314381.html</link>
</item><item>
<title>Re: [xml-dev] hackable xml - 7/26/2010 6:38:00 PM</title>
<description><![CDATA[<pre>This is essentially the core of what xmlsh does, except its based on 
XQuery not XSLT.
But it has lots o' bitty tools you can efficiently script together to 
work with xml.
Its also what XProc does although XProc does so in  XML Syntax.
So there are already such tools out there ...


-------------------------
David A. Lee
dlee@calldei.com
http://www.calldei.com
http://www.xmlsh.org


On 7/26/2010 2:31 PM, Pete Cordell wrote:
&gt;&gt; So if you had:
&gt;&gt;
&gt;&gt; &lt;ns1:config xmlns:ns1=&quot;http://somecomp.com&quot;&gt;
&gt;&gt; &lt;ns1:foo&gt;abc&lt;/ns1:foo&gt;
&gt;&gt; &lt;/ns1:config&gt;
&gt;&gt;
&gt;&gt; xgetnsprefix &quot;http://somecomp.com&quot; ns &lt; in.xml | xchgeval $ns:foo 
&gt;&gt; newValue &gt;
&gt;&gt; out.xml
&gt;
&gt; It's just occurred to me that there's no reason such shell scripts 
&gt; couldn't be implemented using XSLT.
&gt;
&gt; The user gets the power of XSLT without the learning curve.
&gt;
&gt; Pete Cordell
&gt; Codalogic Ltd
&gt; Interface XML to C++ the easy way using XML C++
&gt; data binding to convert XSD schemas to C++ classes.
&gt; Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
&gt; for more info
&gt;
&gt; ----- Original Message ----- From: &quot;Pete Cordell&quot; 
&gt; &lt;petexmldev@codalogic.com&gt;
&gt; To: &quot;Andrew Welch&quot; &lt;andrew.j.welch@gmail.com&gt;; &quot;Richard Salz&quot; 
&gt; &lt;rsalz@us.ibm.com&gt;
&gt; Cc: &quot;xml-dev&quot; &lt;xml-dev@lists.xml.org&gt;
&gt; Sent: Monday, July 26, 2010 6:49 PM
&gt; Subject: Re: [xml-dev] hackable xml
&gt;
&gt;
&gt;&gt;
&gt;&gt; Is there a list of types of operation such a community would like to do?
&gt;&gt; The below example hints that you might be able to come up with a set of
&gt;&gt; simple shell scripts (maybe implemented in perl/python/etc) that you 
&gt;&gt; could
&gt;&gt; pipe together, perhaps storing intermediate variables in the 
&gt;&gt; environment.
&gt;&gt;
&gt;&gt; So if you had:
&gt;&gt;
&gt;&gt; &lt;ns1:config xmlns:ns1=&quot;http://somecomp.com&quot;&gt;
&gt;&gt; &lt;ns1:foo&gt;abc&lt;/ns1:foo&gt;
&gt;&gt; &lt;/ns1:config&gt;
&gt;&gt;
&gt;&gt; xgetnsprefix &quot;http://somecomp.com&quot; ns &lt; in.xml | xchgeval $ns:foo 
&gt;&gt; newValue &gt;
&gt;&gt; out.xml
&gt;&gt;
&gt;&gt; where  xgetnsprefix extracts the namespace prefix associated with 
&gt;&gt; &quot;http://somecomp.com&quot; and stores it in the shell variable ns and 
&gt;&gt; xchgeval changes the value of the specified element.
&gt;&gt;
&gt;&gt; No prizes for efficiency, but it depends whether human performance or 
&gt;&gt; computer performance is more important to you.
&gt;&gt;
&gt;&gt; Pete Cordell
&gt;&gt; Codalogic Ltd
&gt;&gt; Interface XML to C++ the easy way using XML C++
&gt;&gt; data binding to convert XSD schemas to C++ classes.
&gt;&gt; Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
&gt;&gt; for more info
&gt;&gt; ----- Original Message ----- From: &quot;Andrew Welch&quot; 
&gt;&gt; &lt;andrew.j.welch@gmail.com&gt;
&gt;&gt; To: &quot;Richard Salz&quot; &lt;rsalz@us.ibm.com&gt;
&gt;&gt; Cc: &quot;xml-dev&quot; &lt;xml-dev@lists.xml.org&gt;
&gt;&gt; Sent: Monday, July 26, 2010 4:21 PM
&gt;&gt; Subject: Re: [xml-dev] hackable xml
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; On 26 July 2010 13:53, Richard Salz &lt;rsalz@us.ibm.com&gt; wrote:
&gt;&gt;&gt; I don't get it -- which community needs this xml-like thing? And why?
&gt;&gt;
&gt;&gt; The community that just wants to read or write very simple xml files.
&gt;&gt;
&gt;&gt; Given:
&gt;&gt;
&gt;&gt; &lt;config xmlns=&quot;http://somecomp.com&quot;&gt;
&gt;&gt; &lt;foo&gt;abc&lt;/foo&gt;
&gt;&gt; &lt;/config&gt;
&gt;&gt;
&gt;&gt; ...and you want to update the value of &lt;foo&gt;, how would you do it?
&gt;&gt;
&gt;&gt; Or put more realisticly, a colleague of yours knows very little about
&gt;&gt; XML and all of its related technologies, and asks you how they should
&gt;&gt; do it.
&gt;&gt;
&gt;&gt; - XSLT transform
&gt;&gt; - XQuery update
&gt;&gt; - JDOM, XOM etc
&gt;&gt; - SAX parse and generate the events
&gt;&gt; - some data-binding tool (if an xsd exists)
&gt;&gt;
&gt;&gt; All fairly straight forward for the xml community, but to anyone else
&gt;&gt; each of those seem like a massive overkill for such a seemingly simple
&gt;&gt; task.  Perhaps there is a simple way that I've missed?
&gt;&gt;
&gt;&gt; The ultimate goal of hackable xml is to make it possible to just do a
&gt;&gt; string replace of &quot;&lt;foo&gt;abc&lt;/foo&gt;&quot; with &quot;&lt;foo&gt;newValue&lt;/foo&gt;&quot; (which
&gt;&gt; is often what happens anyway, causing many hours of fun) and then
&gt;&gt; serialize/reparse without any issues.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; -- 
&gt;&gt; Andrew Welch
&gt;&gt; http://andrewjwelch.com
&gt;&gt; Kernow: http://kernowforsaxon.sf.net/
&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: xml-dev-unsubscribe@lists.xml.org
&gt;&gt; subscribe: xml-dev-subscribe@lists.xml.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; _______________________________________________________________________
&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: xml-dev-unsubscribe@lists.xml.org
&gt;&gt; subscribe: xml-dev-subscribe@lists.xml.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; 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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314361.html</link>
</item><item>
<title>Re: [xml-dev] hackable xml - 7/26/2010 6:33:00 PM</title>
<description><![CDATA[<pre>&gt; So if you had:
&gt;
&gt; &lt;ns1:config xmlns:ns1=&quot;http://somecomp.com&quot;&gt;
&gt;  &lt;ns1:foo&gt;abc&lt;/ns1:foo&gt;
&gt; &lt;/ns1:config&gt;
&gt;
&gt; xgetnsprefix &quot;http://somecomp.com&quot; ns &lt; in.xml | xchgeval $ns:foo newValue 
&gt;  &gt;
&gt; out.xml

It's just occurred to me that there's no reason such shell scripts couldn't 
be implemented using XSLT.

The user gets the power of XSLT without the learning curve.

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;Pete Cordell&quot; &lt;petexmldev@codalogic.com&gt;
To: &quot;Andrew Welch&quot; &lt;andrew.j.welch@gmail.com&gt;; &quot;Richard Salz&quot; 
&lt;rsalz@us.ibm.com&gt;
Cc: &quot;xml-dev&quot; &lt;xml-dev@lists.xml.org&gt;
Sent: Monday, July 26, 2010 6:49 PM
Subject: Re: [xml-dev] hackable xml


&gt;
&gt; Is there a list of types of operation such a community would like to do?
&gt; The below example hints that you might be able to come up with a set of
&gt; simple shell scripts (maybe implemented in perl/python/etc) that you could
&gt; pipe together, perhaps storing intermediate variables in the environment.
&gt;
&gt; So if you had:
&gt;
&gt; &lt;ns1:config xmlns:ns1=&quot;http://somecomp.com&quot;&gt;
&gt;  &lt;ns1:foo&gt;abc&lt;/ns1:foo&gt;
&gt; &lt;/ns1:config&gt;
&gt;
&gt; xgetnsprefix &quot;http://somecomp.com&quot; ns &lt; in.xml | xchgeval $ns:foo newValue 
&gt;  &gt;
&gt; out.xml
&gt;
&gt; where  xgetnsprefix extracts the namespace prefix associated with 
&gt; &quot;http://somecomp.com&quot; and stores it in the shell variable ns and xchgeval 
&gt; changes the value of the specified element.
&gt;
&gt; No prizes for efficiency, but it depends whether human performance or 
&gt; computer performance is more important to you.
&gt;
&gt; Pete Cordell
&gt; Codalogic Ltd
&gt; Interface XML to C++ the easy way using XML C++
&gt; data binding to convert XSD schemas to C++ classes.
&gt; Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
&gt; for more info
&gt; ----- Original Message ----- 
&gt; From: &quot;Andrew Welch&quot; &lt;andrew.j.welch@gmail.com&gt;
&gt; To: &quot;Richard Salz&quot; &lt;rsalz@us.ibm.com&gt;
&gt; Cc: &quot;xml-dev&quot; &lt;xml-dev@lists.xml.org&gt;
&gt; Sent: Monday, July 26, 2010 4:21 PM
&gt; Subject: Re: [xml-dev] hackable xml
&gt;
&gt;
&gt;
&gt; On 26 July 2010 13:53, Richard Salz &lt;rsalz@us.ibm.com&gt; wrote:
&gt;&gt; I don't get it -- which community needs this xml-like thing? And why?
&gt;
&gt; The community that just wants to read or write very simple xml files.
&gt;
&gt; Given:
&gt;
&gt; &lt;config xmlns=&quot;http://somecomp.com&quot;&gt;
&gt;  &lt;foo&gt;abc&lt;/foo&gt;
&gt; &lt;/config&gt;
&gt;
&gt; ...and you want to update the value of &lt;foo&gt;, how would you do it?
&gt;
&gt; Or put more realisticly, a colleague of yours knows very little about
&gt; XML and all of its related technologies, and asks you how they should
&gt; do it.
&gt;
&gt; - XSLT transform
&gt; - XQuery update
&gt; - JDOM, XOM etc
&gt; - SAX parse and generate the events
&gt; - some data-binding tool (if an xsd exists)
&gt;
&gt; All fairly straight forward for the xml community, but to anyone else
&gt; each of those seem like a massive overkill for such a seemingly simple
&gt; task.  Perhaps there is a simple way that I've missed?
&gt;
&gt; The ultimate goal of hackable xml is to make it possible to just do a
&gt; string replace of &quot;&lt;foo&gt;abc&lt;/foo&gt;&quot; with &quot;&lt;foo&gt;newValue&lt;/foo&gt;&quot; (which
&gt; is often what happens anyway, causing many hours of fun) and then
&gt; serialize/reparse without any issues.
&gt;
&gt;
&gt;
&gt; -- 
&gt; Andrew Welch
&gt; http://andrewjwelch.com
&gt; Kernow: http://kernowforsaxon.sf.net/
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&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;
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt; 




_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314360.html</link>
</item><item>
<title>Re: [xml-dev] hackable xml - 7/26/2010 6:16:00 PM</title>
<description><![CDATA[<pre>Original Message From: &quot;Amelia A Lewis&quot;

&gt;&gt; 4. Encoding must be UTF-8 (or some similar rule: its to remove the
&gt;&gt; potential mismatch between the encoding in the prolog and the actual
&gt;&gt; encoding)
&gt;
&gt; &quot;   &quot;
&gt;
&gt; Oh, hell, let's just make 'em all use ASCII, why not?

What real benefit do you get by allowing people to use UTF-16 LE/BE,
Shift-JIS, EBCIDIC etc?  The benefit doesn't seem to justify the cost to me.

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;Amelia A Lewis&quot; &lt;amyzing@talsever.com&gt;
To: &quot;Andrew Welch&quot; &lt;andrew.j.welch@gmail.com&gt;
Cc: &quot;xml-dev&quot; &lt;xml-dev@lists.xml.org&gt;
Sent: Monday, July 26, 2010 1:58 PM
Subject: Re: [xml-dev] hackable xml


&gt;
&gt; On Mon, 26 Jul 2010 12:08:24 +0100, Andrew Welch wrote:
&gt;&gt; 2. Entity refs no longer exist, other than the inbuilt ones.  There is
&gt;&gt; no DTD.  (numeric refs remain)
&gt;
&gt; If the inbuilt ones exist, why:
&gt;&gt; 5. Lone inbuilt entites such as &quot;&amp;&quot; in the lexical XML are
&gt;&gt; automatically parsed as &amp;amp; and not an error (#2 above might enable
&gt;&gt; this). Same goes for a lone &quot;&lt;&quot;.
&gt;
&gt; And what does 'lone &quot;&lt;&quot;' mean, anyway?  &lt;element name=&quot;example&quot;&gt;if (A &lt;
&gt; B) &amp;&amp; (B &gt; C) {...}&lt;/element
&gt;
&gt; Abandoning well-formedness in the name of simplicity is almost
&gt; certainly the wrong approach to take.
&gt;
&gt; Without CDATA and entities, how do I supply an example of this syntax
&gt; in the syntax?  &lt;![CDATA[Encode &amp; as &amp;amp;]] and &lt; as &amp;lt;&gt; [xml
&gt; variant 1] == &quot;Encode &amp;amp; as &amp;amp;amp; and &amp;lt; as &amp;amp;lt;&quot; [xml
&gt; variant 2] == &quot;Encode &amp; as &amp;amp;amp; and &lt; as &amp;amp;lt;&quot; [consequence of
&gt; making &amp; == &amp;amp; in this definition?]
&gt;
&gt; That's not simpler, that's more complex, and in theory more forgiving
&gt; of &quot;common errors&quot;.
&gt;
&gt;&gt; 3. PIs, CDATA sections gone
&gt;
&gt; No stylesheets.
&gt;
&gt;&gt; 4. Encoding must be UTF-8 (or some similar rule: its to remove the
&gt;&gt; potential mismatch between the encoding in the prolog and the actual
&gt;&gt; encoding)
&gt;
&gt; &quot;   &quot;
&gt;
&gt; Oh, hell, let's just make 'em all use ASCII, why not?
&gt;
&gt;&gt; been involved with.  I have never, ever, seen 2 prefixes with
&gt;&gt; different namespaces in the same document.  There is no need to map a
&gt;
&gt; Heh.  I have, often enough.
&gt;
&gt;&gt; prefix to a namespace, the prefix provides all the uniqueness
&gt;&gt; necessary within a domain, global uniqueness isn't needed.  This would
&gt;
&gt; ?  So, how big is the domain?
&gt;
&gt;&gt; to make it &quot;hackable&quot; by the masses, keeping mixed content and
&gt;&gt; attributes, the reason why you would use xml in the first place.
&gt;
&gt; Is it?
&gt;
&gt;&gt; The need is there - is there a reason why this can't be done?
&gt;
&gt; Based on the above, I don't think you're going to build momentum.  What
&gt; you want and what I want, for instance, seem to be rather different
&gt; (I'd like to see a less baroque &quot;namespaces in XML&quot;, and XML entity
&gt; definition without DTDs; abandoning well-formedness constraints strikes
&gt; me as a bad idea introducing too much ambiguity; removing choice of
&gt; encoding is equally wrong-headed, I believe, and making XPath simpler
&gt; won't help if the common host languages for XPath are no longer
&gt; referenceable via standard mechanisms such as a stylesheet PI).
&gt;
&gt; Amy!
&gt; -- 
&gt; Amelia A. Lewis                    amyzing {at} talsever.com
&gt; Do you ever feel like putting your fist through a window just so you
&gt; can feel something?
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;




_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314358.html</link>
</item><item>
<title>Re: [xml-dev] hackable xml - 7/26/2010 6:16:00 PM</title>
<description><![CDATA[<pre>Is there a list of types of operation such a community would like to do?
The below example hints that you might be able to come up with a set of
simple shell scripts (maybe implemented in perl/python/etc) that you could
pipe together, perhaps storing intermediate variables in the environment.

So if you had:

&lt;ns1:config xmlns:ns1=&quot;http://somecomp.com&quot;&gt;
  &lt;ns1:foo&gt;abc&lt;/ns1:foo&gt;
&lt;/ns1:config&gt;

xgetnsprefix &quot;http://somecomp.com&quot; ns &lt; in.xml | xchgeval $ns:foo newValue &gt;
out.xml

where  xgetnsprefix extracts the namespace prefix associated with 
&quot;http://somecomp.com&quot; and stores it in the shell variable ns and xchgeval 
changes the value of the specified element.

No prizes for efficiency, but it depends whether human performance or 
computer performance is more important to you.

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;Andrew Welch&quot; &lt;andrew.j.welch@gmail.com&gt;
To: &quot;Richard Salz&quot; &lt;rsalz@us.ibm.com&gt;
Cc: &quot;xml-dev&quot; &lt;xml-dev@lists.xml.org&gt;
Sent: Monday, July 26, 2010 4:21 PM
Subject: Re: [xml-dev] hackable xml



On 26 July 2010 13:53, Richard Salz &lt;rsalz@us.ibm.com&gt; wrote:
&gt; I don't get it -- which community needs this xml-like thing? And why?

The community that just wants to read or write very simple xml files.

Given:

&lt;config xmlns=&quot;http://somecomp.com&quot;&gt;
  &lt;foo&gt;abc&lt;/foo&gt;
&lt;/config&gt;

...and you want to update the value of &lt;foo&gt;, how would you do it?

Or put more realisticly, a colleague of yours knows very little about
XML and all of its related technologies, and asks you how they should
do it.

- XSLT transform
- XQuery update
- JDOM, XOM etc
- SAX parse and generate the events
- some data-binding tool (if an xsd exists)

All fairly straight forward for the xml community, but to anyone else
each of those seem like a massive overkill for such a seemingly simple
task.  Perhaps there is a simple way that I've missed?

The ultimate goal of hackable xml is to make it possible to just do a
string replace of &quot;&lt;foo&gt;abc&lt;/foo&gt;&quot; with &quot;&lt;foo&gt;newValue&lt;/foo&gt;&quot; (which
is often what happens anyway, causing many hours of fun) and then
serialize/reparse without any issues.



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php





_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314359.html</link>
</item><item>
<title>Re: [xml-dev] Understanding XML catalogs:  what they are, why theyare - 7/22/2010 1:23:00 PM</title>
<description><![CDATA[<pre>Both Norm's Java implementation and my .NET implementation (which may have  
fallen off the net) implement 1.1 (although my .NET version skips some DTD  
support that I didn't think .NET users were likely to want).

Cheers, Tony.

On Thu, 22 Jul 2010 13:59:01 +0100, Piotr Ba&#197;„ski &lt;bansp@o2.pl&gt; wrote:

&gt; David Carlisle &lt;&gt; wrote:
&gt;
&gt;&gt; On 22/07/2010 12:54, Costello, Roger L. wrote:
&gt;&gt; &gt; can they be used with&lt;xsl:include&gt;  elements?
&gt;&gt;
&gt;&gt; No
&gt;&gt;
&gt;&gt; They are mainly (perhaps only) applicable to specifying the locations of
&gt;&gt; dtd and external parsed entities, that is the SYSTEM and PUBLIC
&gt;&gt; identifiers defined in the grammar of XML.
&gt;
&gt; XML Catalogs 1(.1) appears to address this by introducing &quot;URI  
&gt; entries&quot;[1]. I'm not sure if there is a freely available tool that  
&gt; implements version 1.1 of the spec[2]. I'd love to know of one that does.
&gt;
&gt; [1]:  
&gt; http://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html#s.uri.ent
&gt;
&gt; [2]: https://bugzilla.gnome.org/show_bug.cgi?id=304818
&gt;
&gt; Best,
&gt;
&gt;   Piotr
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;


-- 
Anthony B. Coates
Director and CTO
Londata Ltd
UK: +44 (20) 8816 7700, US: +1 (239) 344 7700
Mobile/Cell: +44 (79) 0543 9026
Data standards participant: genericode, ISO 20022 (ISO 15022 XML),  
UN/CEFACT, MDDL, FpML, UBL.
http://www.londata.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314332.html</link>
</item><item>
<title>Re: [xml-dev] Understanding XML catalogs:  what they are, why they - 7/21/2010 10:04:00 PM</title>
<description><![CDATA[<pre>* David Carlisle wrote:
&gt;&gt; Notice that I created an external entity, xslt-file, and associated it with the URL, http://www.xfront.com/catalog-test/bookstore.xsl
&gt;&gt;
&gt;&gt;      &lt;!ENTITY xslt-file SYSTEM &quot;http://www.xfront.com/catalog-test/bookstore.xsl&quot;&gt;
&gt;&gt;
&gt;&gt; Then, in the XSLT processing instruction I used the entity:
&gt;&gt;
&gt;&gt;      href=&quot;&amp;xslt-file;&quot;
&gt;
&gt;It's not possible to use enity or character references within a 
&gt;processing instruction.

In this case, you can, see &lt;http://www.w3.org/TR/xml-stylesheet/&gt;.
-- 
Bj&#246;rn H&#246;hrmann &#183; mailto:bjoern@hoehrmann.de &#183; http://bjoern.hoehrmann.de
Am Badedeich 7 &#183; Telefon: +49(0)160/4415681 &#183; http://www.bjoernsworld.de
25899 Dageb&#252;ll &#183; PGP Pub. KeyID: 0xA4357E78 &#183; http://www.websitedev.de/ 

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314320.html</link>
</item><item>
<title>Re: [xml-dev] Why is the &gt; symbol a reserved character? - 7/10/2010 6:11:00 AM</title>
<description><![CDATA[<pre>&gt; On 09/07/2010 13:57, Michael Kay wrote:
&gt;&gt; n attribute values, &gt; is reserved, which is pretty pointless, and this
&gt;&gt; is entirely due to SGML legacy, which allows the quotes around the
&gt;&gt; attribute value to be omitted.
&gt;
&gt; You mean &lt; here rather than &gt; (which can be used in attribute values)

Yes, sorry, got that wrong.

When XSLT serializes, it MUST escape &quot;&lt;&quot; when generating XML, and it 
MUST NOT do so when generating HTML. Wish I could remember why.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314254.html</link>
</item><item>
<title>Re: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 3:58:00 PM</title>
<description><![CDATA[<pre>On 09/07/2010 13:57, Michael Kay wrote:
&gt; n attribute values, &gt; is reserved, which is pretty pointless, and this
&gt; is entirely due to SGML legacy, which allows the quotes around the
&gt; attribute value to be omitted.

You mean  &lt; here rather than &gt; (which can be used in attribute values)
I think the main reason for not allowing &lt; in attribute values is that
it saves explaining over and over again that
title=&quot;&lt;b&gt;this&lt;/b&gt; title&quot;
is the same as
title=&quot;&amp;lt;b&gt;this&amp;lt;/b&gt; title&quot;
rather than having a marked up string in an attribute. making it 
syntactically impossible stops people being lead astray. Although in 
practice it probably just makes people think xml syntax is arcane, and 
stick with html syntax where anything's allowed, but doesn't always mean 
what you expect it to mean.

 &gt; Why is ]]&gt; reserved when you're not in a CDATA section? I don't know
in SGML there were more marked sections than just CDATA (cf INCLUDE and 
IGNORE which are restricted to DTDs in XML) if you know ]]&gt; doesn't 
appear in content then you can safely mark an entire range with a marked 
section and not have the range be unexpectedly terminated. Keeping the 
restriction in XML is pretty odd though:-)

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314250.html</link>
</item><item>
<title>Re: [xml-dev] memory efficiency of xslt wrt to element and attribute - 7/9/2010 3:22:00 PM</title>
<description><![CDATA[<pre>On 09/07/2010 15:17, Nicholas Sushkin wrote:
&gt; My question, is my reasoning still valid or it's been outdated by some
&gt; improvements in memory efficiency of XSLT processors?

I'd be surprised if most xslt processors don't just store each element 
name once and then refer to them so it's just te hnumber of unique 
element names you need be concerned about.

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314249.html</link>
</item><item>
<title>Re: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 3:21:00 PM</title>
<description><![CDATA[<pre>On 09/07/2010 14:09, Michael Glavassevich wrote:
&gt;
&gt; &quot;]]&gt;&quot; --&gt; &quot;]]&amp;gt;&quot;
&gt;
&gt; I guess you could also use a char ref for the ']' to break up the sequence.

or the eminently readable &lt;![CDATA[]]]&gt;]&gt;

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314248.html</link>
</item><item>
<title>Re: [xml-dev] memory efficiency of xslt wrt to element and attribute - 7/9/2010 2:48:00 PM</title>
<description><![CDATA[<pre>I think it's unlikely that using long element names will have a big 
impact on the memory size of the internal trees, unless the 
implementation is very inefficient. However, it may have an appreciable 
effect on parsing time; the &quot;per character&quot; loops in the XML parser can 
account for a significant amount of the total parsing time, and the 
parsing time is often substantial compared with the XSLT processing 
time. It's also likely that somewhere in the system software will be 
doing string comparisons to compare element names.

But as always with performance issues, don't try to make changes until 
you've made enough measurements to know where your bottlenecks are, and 
don't trade usability for performance unless that's what the project 
requirements dictate.

Michael Kay
Saxonica

On 09/07/2010 15:25, David wrote:
&gt; I believe most decent processors will &quot;intern&quot; the element names so 
&gt; they are not duplicated in memory.
&gt; Simply making element names longer only makes the serialized text 
&gt; format longer, not the in memory format (by much).
&gt;
&gt; Now the serialized text format can be important when transmitting the 
&gt; XML text file across some boundry (or disk space),
&gt; as well as the time it takes to originally parse it (number of disk 
&gt; bytes read &amp; size of string compars etc).
&gt;
&gt;
&gt; -------------------------
&gt; David A. Lee
&gt; dlee@calldei.com
&gt; http://www.calldei.com
&gt; http://www.xmlsh.org
&gt;
&gt;
&gt; On 7/9/2010 10:17 AM, Nicholas Sushkin wrote:
&gt;&gt; &quot;Don't abbreviate without necessity&quot; principle has been on my mind 
&gt;&gt; for quite a
&gt;&gt; while. However, I always thought of memory consumption. Say you're
&gt;&gt; transforming an XML file with 1 million P2E elements with XSLT 
&gt;&gt; processor.
&gt;&gt; There is a big difference in memory consumption between the two 
&gt;&gt; element name
&gt;&gt; styles.&lt;P2E&gt;20&lt;/P2E&gt;  vs&lt;price-to-earnings-ratio value=&quot;20&quot;/&gt;  is 5 
&gt;&gt; vs 30
&gt;&gt; characters and, since XSLT builds the whole tree in memory which say 
&gt;&gt; takes 4
&gt;&gt; times the size of the file, about 20Mb vs 120Mb. Why wouldn't you save
&gt;&gt; yourself some memory and trouble?
&gt;&gt;
&gt;&gt; My question, is my reasoning still valid or it's been outdated by some
&gt;&gt; improvements in memory efficiency of XSLT processors?
&gt;&gt;
&gt;&gt; Thanks
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314247.html</link>
</item><item>
<title>[xml-dev] memory efficiency of xslt wrt to element and attribute - 7/9/2010 2:31:00 PM</title>
<description><![CDATA[<pre>&quot;Don't abbreviate without necessity&quot; principle has been on my mind for quite a 
while. However, I always thought of memory consumption. Say you're 
transforming an XML file with 1 million P2E elements with XSLT processor. 
There is a big difference in memory consumption between the two element name 
styles. &lt;P2E&gt;20&lt;/P2E&gt; vs &lt;price-to-earnings-ratio value=&quot;20&quot;/&gt; is 5 vs 30 
characters and, since XSLT builds the whole tree in memory which say takes 4 
times the size of the file, about 20Mb vs 120Mb. Why wouldn't you save 
yourself some memory and trouble?

My question, is my reasoning still valid or it's been outdated by some 
improvements in memory efficiency of XSLT processors?

Thanks
-- 
Nick

On Tuesday, July 06, 2010 19:27:30 Amelia A Lewis wrote:
&gt; On Mon, 05 Jul 2010 15:22:13 -0400, ycao5@scs.carleton.ca wrote:
&gt; &gt;     I have a basic question for xml and xslt. The xml element node
&gt; &gt; 
&gt; &gt; name contains a &quot;/&quot;. For example, an xml element node
&gt; &gt; (price-to-earnings ratio) is represented as P/E. The xml parser will
&gt; &gt; throw an exception for &quot;/&quot; follows P. How to correctly represent the
&gt; &gt; tag name containing &quot;/&quot;?
&gt; 
&gt; While &lt;P/E&gt; is not legal XML, &lt;price-to-earnings&gt; is.  So is
&gt; &lt;price-to-earnings-ratio&gt;.
&gt; 
&gt; dnt abrvt wo ncsty
&gt; 
&gt; Amy!</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201007/msg1000314246.html</link>
</item><item>
<title>Re: [xml-dev] memory efficiency of xslt wrt to element and attribute - 7/9/2010 2:28:00 PM</title>
<description><![CDATA[<pre>I believe most decent processors will &quot;intern&quot; the element names so they 
are not duplicated in memory.
Simply making element names longer only makes the serialized text format 
longer, not the in memory format (by much).

Now the serialized text format can be important when transmitting the 
XML text file across some boundry (or disk space),
as well as the time it takes to originally parse it (number of disk 
bytes read &amp; size of string compars etc).


-------------------------
David A. Lee
dlee@calldei.com
http://www.calldei.com
http://www.xmlsh.org


On 7/9/2010 10:17 AM, Nicholas Sushkin wrote:
&gt; &quot;Don't abbreviate without necessity&quot; principle has been on my mind for quite a
&gt; while. However, I always thought of memory consumption. Say you're
&gt; transforming an XML file with 1 million P2E elements with XSLT processor.
&gt; There is a big difference in memory consumption between the two element name
&gt; styles.&lt;P2E&gt;20&lt;/P2E&gt;  vs&lt;price-to-earnings-ratio value=&quot;20&quot;/&gt;  is 5 vs 30
&gt; characters and, since XSLT builds the whole tree in memory which say takes 4
&gt; times the size of the file, about 20Mb vs 120Mb. Why wouldn't you save
&gt; yourself some memory and trouble?
&gt;
&gt; My question, is my reasoning still valid or it's been outdated by some
&gt; improvements in memory efficiency of XSLT processors?
&gt;
&gt; Thanks
&gt;    

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314245.html</link>
</item><item>
<title>Re: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 1:58:00 PM</title>
<description><![CDATA[<pre>On 09/07/2010 13:42, Costello, Roger L. wrote:
&gt; 5. I am unable to think of an example in which the&gt;  symbol could confuse an XML Parser. Would you provide an example please?
&gt;

what makes you think there is an example?

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314244.html</link>
</item><item>
<title>RE: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 1:45:00 PM</title>
<description><![CDATA[<pre>&gt; what makes you think there is an example?

If there is no example, why is it a reserved symbol?

/Roger

-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk] 
Sent: Friday, July 09, 2010 8:46 AM
To: Costello, Roger L.
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Why is the &gt; symbol a reserved character?

On 09/07/2010 13:42, Costello, Roger L. wrote:
&gt; 5. I am unable to think of an example in which the&gt;  symbol could confuse an XML Parser. Would you provide an example please?
&gt;

what makes you think there is an example?

David

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314243.html</link>
</item><item>
<title>Re: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 1:33:00 PM</title>
<description><![CDATA[<pre>In character data, &gt; isn't reserved, but ]]&gt; is, so it's worth escaping 
 &gt; anyway rather than only looking for those occurrences of &gt; that are 
preceded by ]]. Why is ]]&gt; reserved when you're not in a CDATA section? 
I don't know - arguably for robustness, in case the CDATA opener is 
mistyped. Or perhaps it's some SGML legacy I'm not aware of (there's a 
lot of it around).

In attribute values, &gt; is reserved, which is pretty pointless, and this 
is entirely due to SGML legacy, which allows the quotes around the 
attribute value to be omitted.

Don't look for too much logic here. It's like asking why &quot;a&quot; is where it 
is on the keyboard. There's a historical explanation, but not a rational 
decision-making process.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314242.html</link>
</item><item>
<title>Re: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 1:26:00 PM</title>
<description><![CDATA[<pre>On 09/07/2010 13:42, Costello, Roger L. wrote:

a perhaps more helpful answer

xml doesn't have any &quot;reserved characters&quot; (it does &quot;reserve&quot; the prefix 
xml in any case for possible future use though)

You can use &gt; in attribute values and character data unquoted.
You need some way of quoting the character string ]]&gt; which can't appear 
in character data, but that could be done without using &amp; l t ;

If your question is why is that entity reference pre-defined, probably 
just for symmetry. If you get used to writing tests like a &amp;lt; b then 
it is rather natural to write b &amp;gt; a rather than remember that one is 
allowed and the other isn't.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314241.html</link>
</item><item>
<title>RE: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 1:12:00 PM</title>
<description><![CDATA[<pre>On example is &quot;]]&gt;&quot;. It isn't allowed in the content of an element, so you
have to escape it:

&quot;]]&gt;&quot; --&gt; &quot;]]&amp;gt;&quot;

I guess you could also use a char ref for the ']' to break up the sequence.

[1] http://www.w3.org/TR/REC-xml/#NT-CharData

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

&quot;Costello, Roger L.&quot; &lt;costello@mitre.org&gt; wrote on 07/09/2010 08:53:42 AM:

&gt; &gt; what makes you think there is an example?
&gt;
&gt; If there is no example, why is it a reserved symbol?
&gt;
&gt; /Roger
&gt;
&gt; -----Original Message-----
&gt; From: David Carlisle [mailto:davidc@nag.co.uk]
&gt; Sent: Friday, July 09, 2010 8:46 AM
&gt; To: Costello, Roger L.
&gt; Cc: xml-dev@lists.xml.org
&gt; Subject: Re: [xml-dev] Why is the &gt; symbol a reserved character?
&gt;
&gt; On 09/07/2010 13:42, Costello, Roger L. wrote:
&gt; &gt; 5. I am unable to think of an example in which the&gt;  symbol could
&gt; confuse an XML Parser. Would you provide an example please?
&gt; &gt;
&gt;
&gt; what makes you think there is an example?
&gt;
&gt; David
&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;
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&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.altova.com/list/xml-dev/201007/msg1000314240.html</link>
</item><item>
<title>RE: [xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 12:55:00 PM</title>
<description><![CDATA[<pre>&gt; what makes you think there is an example?

If there is no example, why is it a reserved symbol?

/Roger

-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk] 
Sent: Friday, July 09, 2010 8:46 AM
To: Costello, Roger L.
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Why is the &gt; symbol a reserved character?

On 09/07/2010 13:42, Costello, Roger L. wrote:
&gt; 5. I am unable to think of an example in which the&gt;  symbol could confuse an XML Parser. Would you provide an example please?
&gt;

what makes you think there is an example?

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314238.html</link>
</item><item>
<title>[xml-dev] Why is the &gt; symbol a reserved character? - 7/9/2010 12:50:00 PM</title>
<description><![CDATA[<pre>Hi Folks,

1. I understand why the &lt; symbol in this element's data could confuse an XML Parser --

     &lt;equation&gt;if A &lt; B then&lt;/equation&gt;

-- and therefore it must be escaped:

     &lt;equation&gt;if A &amp;lt; B then&lt;/equation&gt;


2. I understand why the &amp; symbol in this element's data could confuse an XML Parser --

     &lt;Publisher&gt;Harper &amp; Row&lt;/Publisher&gt;

-- and therefore it must be escaped:

     &lt;Publisher&gt;Harper &amp;amp; Row&lt;/Publisher&gt;


3. I understand why the ' symbol in this attribute's data could confuse an XML Parser --

     &lt;House color='It's red!'&gt;

-- and therefore it must be escaped:

     &lt;House color='It&amp;apos;s red!'&gt;


4. I understand why the &quot; symbol in this attribute's data could confuse an XML Parser --

     &lt;House description=&quot;He said: &quot;Wow!&quot;&quot;&gt;

-- and therefore it must be escaped:

     &lt;House description=&quot;He said: &amp;quot;Wow!&amp;quot;&quot;&gt;


5. I am unable to think of an example in which the &gt; symbol could confuse an XML Parser. Would you provide an example please?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314237.html</link>
</item><item>
<title>Re: [xml-dev] Polyglot Markup - serializer questions - 7/8/2010 9:19:00 PM</title>
<description><![CDATA[<pre>Also just found this from Uche Ogbuji explaining how to deal with some 
of the XML/HTML5 boundary issues:

http://www.ibm.com/developerworks/xml/library/x-think45/

-- 
Simon St.Laurent
http://simonstl.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314231.html</link>
</item><item>
<title>Re: [xml-dev] Polyglot Markup - serializer questions - 7/8/2010 7:08:00 PM</title>
<description><![CDATA[<pre>On 08/07/2010 17:37, David wrote:
&gt; Thanks to Twitter ( and @xquery ) I stumbled on this
&gt;
&gt; http://www.w3.org/TR/html-polyglot/
&gt;
&gt; I think the goals are excellent, but I do have some questions for 'the
&gt; experts'.
&gt;
&gt; 1) Why is this useful instead of sticking to xhtml ?

A lot of tools produce xhtml but experience shows that many sites 
(including w3c) then serve the resulting file as text/html (partly no 
doubt because IE doesn't really like xhtml much) this works when you are 
lucky but since the file is then parsed by an html parser rather than an 
xml one there is the possibility of getting a completely different parse 
tree than intended. For example if there are scripts using &lt; or more or 
less any use of empty element syntax. The polyglot document tries to 
steer people to safe constructs that will produce more or less the same 
parse tree whether parsed as html or xhtml.


The Abstract says
&gt; &quot;Polyglot markup that meets these constraints as interpreted as
&gt; compatible, regardless of whether they are processed as HTML or as
&gt; XHTML, per the HTML5 specification&quot;
&gt; But I dont quite get why this is necessary ? I'm sure I'm missing the
&gt; obvious, people dont (usually) write specs just for the fun of it.
&gt;
&gt; 2) New XML serializer implementations ?
&gt; The doc discusses the difference between empty tags which are EMPTY vs
&gt; not. E.g. says to use &lt;br/&gt; but not &lt;p/&gt; (instead use &lt;p&gt;&lt;/p&gt;)
&gt; This would imply (?) that an XML serializer would need to know when its
&gt; OK and not to compress empty tags.

well an xhtm serialiser

&gt; Serializers such as Saxon with html encoding do this but they do it
&gt; differently ... e.g a &lt;br/&gt; in XML becomes &lt;br&gt; in html mode.

It's more like (but different in detail) to xslt 2's xhtml serialisation.

But you can't just meet the constraints by serialisation options, as you 
need to avoid some constructs altogether.

David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314230.html</link>
</item><item>
<title>Re: [xml-dev] Polyglot Markup - serializer questions - 7/8/2010 6:33:00 PM</title>
<description><![CDATA[<pre>On 08/07/2010 17:37, David wrote:
&gt;
&gt; Does following this standard imply that we need new output methods for 
&gt; serializers?

I believe that this serialization method already exists.  If you use 
method =&quot;xhtml&quot; then this does mostly what you describe.

In particular, take a look at this section of the XQuery/XSLT 
serialization spec:

http://www.w3.org/TR/xslt-xquery-serialization-11/#xhtml-output

This mandates that in the XHTML output method elements without an empty 
content model get serialized with their full expansion (eg &lt;p&gt;&lt;/p&gt;) but 
elements with an empty content model are serialized as &lt;br/&gt;.

Thanks for pointing out the HTML Polyglot spec though, I was not aware 
of it.  It would be interesting to see where the XHTML output mode 
differs from this.


Oliver</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201007/msg1000314229.html</link>
</item><item>
<title>Re: [xml-dev] Polyglot Markup - serializer questions - 7/8/2010 6:08:00 PM</title>
<description><![CDATA[<pre>&gt; The doc discusses the difference between empty tags which are EMPTY vs 
&gt; not.  E.g. says to use &lt;br/&gt;  but not &lt;p/&gt; (instead use &lt;p&gt;&lt;/p&gt;)
&gt; This would imply (?) that an XML serializer would need to know when 
&gt; its OK and not to compress empty tags.
&gt; Serializers such as Saxon with html encoding do this but they do it 
&gt; differently ... e.g a &lt;br/&gt; in XML becomes &lt;br&gt;  in html mode.
&gt; Does following this standard imply that we need new output methods for 
&gt; serializers?


This doesn't strike me as very different from what the XHTML output 
method already does. It has hard-coded knowledge of the vocabulary to 
distinguish elements with an empty content model from those that just 
happen to be empty, but one could equally well make the same decision 
based on access to a schema.

Michael Kay
Saxonica

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314228.html</link>
</item><item>
<title>Re: [xml-dev] Polyglot Markup - serializer questions - 7/8/2010 5:50:00 PM</title>
<description><![CDATA[<pre>On 7/8/10 12:37 PM, David wrote:
&gt; Thanks to Twitter ( and @xquery ) I stumbled on this
&gt;
&gt; http://www.w3.org/TR/html-polyglot/
&gt;
&gt; I think the goals are excellent, but I do have some questions for 'the
&gt; experts'.

I'm not an expert, but I am a sort of close observer.

&gt; 1) Why is this useful instead of sticking to xhtml ? The Abstract says
&gt; &quot;Polyglot markup that meets these constraints as interpreted as
&gt; compatible, regardless of whether they are processed as HTML or as
&gt; XHTML, per the HTML5 specification&quot;
&gt; But I dont quite get why this is necessary ? I'm sure I'm missing the
&gt; obvious, people dont (usually) write specs just for the fun of it.

Well, the HTML5 folks did write their own parsing specs:

http://www.w3.org/TR/html5/parsing.html#parsing

for about &quot;the fun of it&quot; so far as I can tell.

I'm taking Polyglot Markup to be pretty much an update equivalent to the 
HTML Compatibility Guidelines from XHTML 1.0:

http://www.w3.org/TR/xhtml1/#guidelines

Although... the DOCTYPE legacy string and obsolete permitted DOCTYPE string:

http://www.w3.org/TR/html5/syntax.html#the-doctype

bring new levels of weird to these stories, something the Polyglot 
document seems to gloss.  (If you thought the XML rules for DOCTYPE were 
a bit difficult to read...)  There are still some large issues with XML 
processing of HTML5 documents containing entities that HTML5 seems to 
assume magically go away.  For my own purposes, I'll be creating an 
HTML5 DTD once the spec is actually cooked.

For the genuinely intrepid, there is also a RELAX NG + Schematron 
definition of the HTML5 vocabulary:

http://syntax.whattf.org/

&gt; 2) New XML serializer implementations ?
&gt; The doc discusses the difference between empty tags which are EMPTY vs
&gt; not. E.g. says to use &lt;br/&gt; but not &lt;p/&gt; (instead use &lt;p&gt;&lt;/p&gt;)
&gt; This would imply (?) that an XML serializer would need to know when its
&gt; OK and not to compress empty tags.
&gt; Serializers such as Saxon with html encoding do this but they do it
&gt; differently ... e.g a &lt;br/&gt; in XML becomes &lt;br&gt; in html mode.
&gt; Does following this standard imply that we need new output methods for
&gt; serializers? Or do we have to force serializers to not do any empty
&gt; element optimization and leave it up to the input code generation/source ?
&gt; I think this might be difficult in something like xquery or xslt using
&gt; dynamic element construction where its not explicit which empty element
&gt; form is used.
&gt; e.g in xquery ... how does the serializer know to expand &lt;p&gt;&lt;/p&gt; but not
&gt; &lt;br/&gt; ?
&gt;
&gt; element { &quot;p&quot; } {}
&gt; element { &quot;br&quot; } {}

This part I've never really understood, but it seems that some browsers 
have had problems dealing with empty tags (&lt;br /&gt;) in certain circumstances.

I do think it's a long-term challenge for serializers, but it hasn't 
stopped me from using ancient tools to create and reprocess HTML5 documents.

I would strongly encourage XML folk to pay attention to HTML5.  We're 
not precisely welcome in the conversation, if HTML5 rhetoric is to be 
taken seriously, but I suspect we might yet have some useful role to 
play improving this.

-- 
Simon St.Laurent
http://simonstl.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314226.html</link>
</item><item>
<title>[xml-dev] Polyglot Markup - serializer questions - 7/8/2010 5:36:00 PM</title>
<description><![CDATA[<pre>Thanks to Twitter ( and @xquery ) I stumbled on this

http://www.w3.org/TR/html-polyglot/

I think the goals are excellent, but I do have some questions for 'the 
experts'.

1) Why is this useful instead of sticking to xhtml ?  The Abstract says 
&quot;Polyglot markup that meets these constraints as interpreted as 
compatible, regardless of whether they are processed as HTML or as 
XHTML, per the HTML5 specification&quot;
But I dont quite get why this is necessary ?  I'm sure I'm missing the 
obvious, people dont (usually) write specs just for the fun of it.

2) New XML serializer implementations ?
The doc discusses the difference between empty tags which are EMPTY vs 
not.  E.g. says to use &lt;br/&gt;  but not &lt;p/&gt; (instead use &lt;p&gt;&lt;/p&gt;)
This would imply (?) that an XML serializer would need to know when its 
OK and not to compress empty tags.
Serializers such as Saxon with html encoding do this but they do it 
differently ... e.g a &lt;br/&gt; in XML becomes &lt;br&gt;  in html mode.
Does following this standard imply that we need new output methods for 
serializers? Or do we have to force serializers to not do any empty 
element optimization and leave it up to the input code generation/source ?
I think this might be difficult in something like xquery or xslt using 
dynamic element construction where its not explicit which empty element 
form is used.
e.g in xquery ... how does the serializer know to expand &lt;p&gt;&lt;/p&gt; but not 
&lt;br/&gt;  ?

    element { &quot;p&quot; } {}
    element { &quot;br&quot; }  {}


-David



-- 
-------------------------
David A. Lee
dlee@calldei.com
http://www.calldei.com
http://www.xmlsh.org</pre>]]></description>
<link>http://www.altova.com/list/xml-dev/201007/msg1000314225.html</link>
</item><item>
<title>[xml-dev] [ANN] Release of XMLmind Document Repository v1.1 - 7/7/2010 7:58:00 AM</title>
<description><![CDATA[<pre>XMLmind is happy to announce the release of
XMLmind Document Repository v1.1.

XMLmind Document Repository, which is Open Source software,
can be freely downloaded from:

http://www.xmlmind.com/docrep/download.shtml
________________________________________________

Release of XMLmind Document Repository v1.1 (July 6, 2010)
----------------------------------------------------------

Made XMLmind Document Repository (XDR for short) as easy to
install and run as a desktop application:

   * Self-contained distribution now includes a private Jetty 7
     Servlet Container.

   * New graphical application xdrcontrol allows to stop,
     configure or reconfigure and start or restart both Jetty
     and the XDR WebApp.

   * Two new applications running in the Web browser allow to
     manage users and groups.

More information in
http://www.xmlmind.com/docrep/changes.html

What is XMLmind Document Repository?
----------------------------------------------------------

XMLmind Document Repository is a Web-based (WebDAV, REST)
document store designed for technical writers, featuring
automatic, transparent, versioning.

This Open Source Servlet-based Web Application is intended
to be the backend component of a future commercial offering.

________________________________________________





_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314205.html</link>
</item><item>
<title>[xml-dev] [2nd CfP] SAC 2011 Track on Coordination Models, Languages - 7/7/2010 7:34:00 AM</title>
<description><![CDATA[<pre>------------------------------------------------------------------------------------------------
CALL FOR PAPERS

Coordination Models, Languages, and Applications (CM)
Special Track at the 26th Symposium on Applied Computing (SAC 2011)
TaiChung, Taiwan
March 21 - 25, 2011

(http://sac2011.apice.unibo.it/)


IMPORTANT DATES

Aug. 24, 2010: Paper submissions
Oct. 12, 2010: Author notification
Nov. 2, 2010: Camera-Ready Copy


For the past twenty-five years, the ACM Symposium on Applied Computing has been a primary gathering forum for applied computer scientists, computer engineers, software engineers, and application developers from around the world.


TRACK ON COORDINATION MODELS, LANGUAGES, AND APPLICATIONS 

Building on the success of the twelfth previous editions (1998-2010), a special track on coordination models, languages and applications will be held at SAC 2011. Over the last decade, we have witnessed the emergence of models, formalisms and mechanisms to describe concurrent and distributed computations and systems based on the concept of coordination. The purpose of a coordination model is to enable the integration of a number of, possibly heterogeneous, components (processes, objects, agents) in such a way that the resulting ensemble can execute as a whole, forming a software system with desired characteristics and functionalities which possibly takes advantage of parallel and distributed systems. The coordination paradigm is closely related to other contemporary software engineering approaches such as multi-agent systems, service-oriented architectures, component-based systems and related middleware platforms. Furthermore, the concept of coordination exists in many other Computer Science areas such as workflow systems, cooperative information systems, distributed artificial intelligence, and internet technologies.

After more than a decade of research, the coordination paradigm is gaining increased momentum in state-of-the-art engineering paradigms such as multi-agent systems and service-oriented architectures: in the first case, coordination abstractions are perceived as essential to design and support the working activities of agent societies; in the latter case, service coordination, orchestration, and choreography are going to be essential aspects of the next generations of systems based on Web services.

The Special Track on Coordination Models, Languages and Applications takes a deliberately broad view of what constitutes coordination. Accordingly, major topics of interest this year will include:

- Novel models, languages, programming and implementation techniques
- Applications of coordination technologies
- Industrial points of view: experiences, applications, open issues
- Internet- and Web-based coordinated systems
- Coordination of multi-agent systems, including mobile agents, intelligent agents, and agent-based simulations
- Coordination in Service-oriented architectures and Web Services 
- Languages for service description and composition 
- Models, frameworks and tools for Group Decision Making 
- Modern Workflow Management Systems and Case-Handling 
- Coordination in Computer Supported Cooperative Work 
- Software architectures and software engineering techniques 
- Configuration and Architecture Description Languages 
- Coordination Middleware and Infrastructures 
- Coordination in GRID systems 
- Self-organization-based approaches to coordination such as those based on swarm and stigmergy 
- Coordination technologies, systems and infrastructures 
- Relationship with other computational models such as object oriented, declarative (functional, logic, constraint), programming or their extensions with coordination capabilities 
- Formal aspects (semantics, reasoning, verification)


PROCEEDINGS

Papers accepted for the Special Track on Coordination Models, Languages and Applications will be published by ACM both in the SAC 2011 proceedings and in the Digital Library.


PAPER SUBMISSION AND FORMAT

All papers should represent original and previously unpublished works that currently are not under review in any conference or journal.

The author(s) name(s) and address(es) must NOT appear in the body of the paper, and self-reference should be in the third person. This is to facilitate blind review. Only the title should be shown at the first page without the author's information.

Submitted papers must be no longer than 6 pages and in the ACM two-column page format (doc template, pdf template, latex template). It will be possible to have up to 2 extra pages in the proceeding at a charge of $80 per page (total 8 pages maximum).

Submission is entirely automated via the STAR Submission System, which is available from the main SAC Web Site:http://www.acm.org/conferences/sac/sac2011/.


PC MEMBERS

Farhad Arbab, CWI Amsterdam and Leiden University (Netherlands)
Marcello Bonsangue, Leiden University (Netherlands)
Rocco De Nicola, University of Firenze (Italy) 
Jose Fiadero, University of Leicester (Italy) 
Keith Harrison-Broninski, Role Modellers Ltd (UK)
Kurt Lichtner, Sybase iAnywhere (Canada)
Henry Muccini, University of l'Aquila (Italy)
Andrea Omicini, University of Bologna (Italy)
Manuel Oriol, University of York (UK)
Razvan Popescu, Trinity College Dublin (Ireland)
Antonio Porto, University of Porto (Portugal)
Rosario Pugliese, University of Florence (Italy)
Alessandro Ricci, University of Bologna (Italy)
Davide Rossi, University of Bologna (Italy)
Yasuyuki Tahara, National Institute of Informatics (Japan)
Carolyn Talcott, SRI International (USA)
Emilio Tuosto, University of Leicester (UK)
Michael Ignaz Schumacher, University of Applied Sciences (Switzerland)
Robert Tolksdorf, Freie Universitaet Berlin (Germany)
Mirko Viroli, University of Bologna (Italy)
George Wells, Rhodes University (South Africa)
Herbert Wiklicky, Imperial College London (UK)
Pawe&#197;‚ T. Wojciechowski, Pozna&#197;„ University of Technology (Poland)


TRACK CO-CHAIRS

Matteo Casadei,
Alma Mater Studiorum - Universita' di Bologna, Italy








_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314204.html</link>
</item><item>
<title>Re: [xml-dev] How to represent P/E correctly? - 7/6/2010 11:32:00 PM</title>
<description><![CDATA[<pre>On Mon, 05 Jul 2010 15:22:13 -0400, ycao5@scs.carleton.ca wrote:
&gt;     I have a basic question for xml and xslt. The xml element node 
&gt; name contains a &quot;/&quot;. For example, an xml element node 
&gt; (price-to-earnings ratio) is represented as P/E. The xml parser will 
&gt; throw an exception for &quot;/&quot; follows P. How to correctly represent the 
&gt; tag name containing &quot;/&quot;?

While &lt;P/E&gt; is not legal XML, &lt;price-to-earnings&gt; is.  So is 
&lt;price-to-earnings-ratio&gt;.

dnt abrvt wo ncsty

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
To be whole is to be part; true voyage is return.
                -- Laia Asieo Odo (Ursula K. LeGuin, &quot;The Dispossessed&quot;)

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314201.html</link>
</item><item>
<title>Re: [xml-dev] How to represent P/E correctly? - 7/6/2010 10:00:00 PM</title>
<description><![CDATA[<pre>On 05/07/2010 20:22, ycao5@scs.carleton.ca wrote:

XML element names can only contain letters and digits and a few special 
characters such as &quot;.&quot;, &quot;-&quot;, and &quot;_&quot;. The &quot;/&quot; character is one of very 
many characters that is not allowed. You will have to choose a different 
element name. There are an infinite number to choose from, and they are 
all equally &quot;correct&quot;. If you are looking for an algorithm that will 
generate a valid element name from any character string, then you could 
consider replacing non-alphanumeric characters with _NNN_ where NNN is 
the numeric value of the Unicode codepoint. It might have been nice if 
the spec designers had allowed numeric character references (&amp;#NNN;) to 
appear in element names, but for some reason they didn't.

Michael Kay
Saxonica

&gt;
&gt; Hello,
&gt;
&gt;     I have a basic question for xml and xslt. The xml element node 
&gt; name contains a &quot;/&quot;. For example, an xml element node 
&gt; (price-to-earnings ratio) is represented as P/E. The xml parser will 
&gt; throw an exception for &quot;/&quot; follows P. How to correctly represent the 
&gt; tag name containing &quot;/&quot;?
&gt;
&gt;     Thank you.
&gt;
&gt; Yang
&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: xml-dev-unsubscribe@lists.xml.org
&gt; subscribe: xml-dev-subscribe@lists.xml.org
&gt; List archive: http://lists.xml.org/archives/xml-dev/
&gt; List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
&gt;
&gt;


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314200.html</link>
</item><item>
<title>Re: [xml-dev] How to represent P/E correctly? - 7/6/2010 9:49:00 PM</title>
<description><![CDATA[<pre>At 2010-07-05 15:22 -0400, ycao5@scs.carleton.ca wrote:
&gt;     I have a basic question for xml and xslt. The xml element node
&gt;name contains a &quot;/&quot;.

This is not possible.  The XML syntax does not support the use of &quot;/&quot; 
in name tokens.  Please see:

   http://www.w3.org/TR/2008/REC-xml-20081126/#NT-Name

&gt;For example, an xml element node
&gt;(price-to-earnings ratio) is represented as P/E. The xml parser will
&gt;throw an exception for &quot;/&quot; follows P.

As it should.

&gt;How to correctly represent the tag name containing &quot;/&quot;?

That is not possible because it isn't correct.

You might consider using a name like &lt;P2E&gt; since it is not legal 
syntax to write &lt;P/E&gt;.

I hope this helps.

. . . . . . Ken

--
XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314199.html</link>
</item><item>
<title>[xml-dev] How to represent P/E correctly? - 7/6/2010 9:09:00 PM</title>
<description><![CDATA[<pre>Hello,

     I have a basic question for xml and xslt. The xml element node  
name contains a &quot;/&quot;. For example, an xml element node  
(price-to-earnings ratio) is represented as P/E. The xml parser will  
throw an exception for &quot;/&quot; follows P. How to correctly represent the  
tag name containing &quot;/&quot;?

     Thank you.

Yang



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.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.altova.com/list/xml-dev/201007/msg1000314198.html</link>
</item>

</channel>
</rss>
