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

p:inline and ignore whitespaces

From: Florent Georges <fgeorges@fgeorges.org>
Date: Mon, 3 Nov 2008 01:27:39 +0100
Message-ID: <ebaca5bf0811021627i5fe19c5dg3ee4f51fecbcd5ce@mail.gmail.com>
To: "XProc Comments" <public-xml-processing-model-comments@w3.org>

  Hi,

  I don't remember to have seen this question before.  Did you
consider for p:inline a mechanism like the whitespaces handling in
XSLT?  I can imagine use of p:inline to store input of a step directly
into the pipeline definition, while wanting to properly indent the
inline document, even if the document should not contain those
whitespace.

  For instance, if I give the following input:

    <p:inline>
       <dummy/>
    </p:inline>
    <p:inline>
       <foobar/>
    </p:inline>

to an XSLT step that contains the following template rule:

    <xsl:template match="/">
       <xsl:copy-of select="collection()"/>
    </xsl:template>

the result is (the '|' character shows the column 0):

    |
    |            <dummy/>
    |
    |            <foobar/>
    |

  That is, an text node, then an element node, then a text node...  I
wonder if it is really what is wanted, instead of simply a sequence of
two element nodes:

    |<dummy/><foobar/>

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Monday, 3 November 2008 00:28:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC