W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > December 2010

Re: Document Templating Steps updated

From: Florent Georges <fgeorges@fgeorges.org>
Date: Mon, 20 Dec 2010 01:13:42 +0100
Message-ID: <AANLkTikcT4BGuBK7ij5UCZb5subAFUEJsYahscBK2WHk@mail.gmail.com>
To: Norman Walsh <ndw@nwalsh.com>
Cc: public-xml-processing-model-comments@w3.org
On 19 December 2010 21:19, Norman Walsh wrote:

  Hi,

> I've updated the note

>  http://www.w3.org/XML/XProc/docs/template-note.html

  I was a bit worried that "inside an XPath expression, strings
quoted by single (') or double (") quotes are treated literally",
as this seemed to require an implementation to fully parse XPath
expressions while searching the template for expressions.

  But it seems your state machine handles all cases correctly,
even double-escaped quotes within XPath strings.

  Congrats!  That's going to be a very useful step!  Especially
the fact that nodes are not atomized when the expression appears
within element content.  By the way, how are handled whitespaces
in the following template?:

    <p:document-template>
       <p:input port="template">
          <p:inline>
             <root> {
                /some/sub/tree
             }
             </root>
          </p:inline>
       </p:input>
       ...
    </p:document-template>

  Is there a text node with one space right after the opening
root tag, and a text node with one linefeed and whitespaces right
before the closing root tag?

  Regards,

-- 
Florent Georges
http://fgeorges.org/
Received on Monday, 20 December 2010 00:14:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 December 2010 00:14:36 GMT