W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2020

QName magic on map { 'serialization' : map { 'indent' : true() } }?

From: Martin Honnen <martin.honnen@gmx.de>
Date: Sat, 4 Jul 2020 16:04:59 +0200
To: xproc-dev@w3.org
Message-ID: <d1441de7-1345-c049-ee87-e4075ff31dbd@gmx.de>

I was wondering whether QName "magic" should be applied or at least
would be desirable for using

   <p:inline content-type="application/xml" document-properties="map {
'serialization' : map { 'indent' : true() } }">

Morgana seems to provide the magic for the 'serialization' key of the
outer map but not for the 'indent' key of the inner map so to have
indentation set up I need to write

<p:inline content-type="application/xml" document-properties="map {
'serialization' : map { QName('', 'indent') : true() } }">

I think the spec only talks about the rules for maps without requiring
any recursion on the rule to convert a string key to an xs:QName key in
any outher map values so I think Morgana's behaviour is according to the

But for a pipeline author the QName magic would come in handy if it were
also applied for the 'indent' key of the inner 'serialization' map in
the example or for the keys of the 'serialization` map in general.

Was that ever considered?
Received on Saturday, 4 July 2020 14:05:19 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 4 July 2020 14:05:21 UTC