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

Nodelists as values

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 01 Dec 2009 11:24:42 +0000
To: public-xml-processing-model-comments@w3.org
Message-ID: <f5bocmj7x8l.fsf@hildegard.inf.ed.ac.uk>
Hash: SHA1

While we're getting our wishlist out (see Norm's previous posting) for
obscure facilities which we need for pipelines we're writing, I've
finally been converted to the restricting-values-to-strings-is-crazy

My problem:  I have a large complex file (the metadata for the XML
Schema test collection) which includes in some but not all cases a
sequence of elements which carry in their xlink:href attributes the
URIs of schema documents which are needed for the test.

I want to pass these URIs around in a way which will allow them to be
iterated over to produce a sequence of schema documents.

At the moment this is not possible, as far as I can tell (if you can
figure out a workaround, e.g. how to convert a space-separated list of
URIs into a sequence of documents, _please_ let me know).

But if we had nodesets as values, I could just pass the set of
attribute nodes as an option.

But here's why we're _not_ going to do this in V1:  it would take a
substantial amount of work to decide how to get things _back_ from
such values.  Would we allow, e.g.,

 <p:declare-step type="my:demo">
  <p:output name="result" sequence="true" primary="true"/>
  <p:option name="attrSet"/>

  <p:identity select="$attrSet"/>
    <p:with-option name="href" select="."/>

To be useful, such a pipeline would need to be allowed.  But that's
too big a change for this late in the game. . .

- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Tuesday, 1 December 2009 11:25:11 UTC

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