Discussion:
[xquery-talk] Q: computed element and namespace
Hermann Stamm-Wilbrandt
2014-01-31 08:12:58 UTC
Permalink
Michael Kay
2014-01-31 08:51:50 UTC
Permalink
On 31 Jan 2014, at 08:12, Hermann Stamm-Wilbrandt <***@de.ibm.com> wrote:
William Candillon
2014-01-31 09:17:19 UTC
Permalink
In XQuery 3.0 you could write the following:
element {"a"}{
(
namespace pre { "urn:u" },
element {fn:QName("pre", "pre:b")}{},
element {fn:QName("pre", "pre:c")}{}
)
}
http://try.zorba.io/queries/xquery/OEkkPFKllu7moQ5l6eCBTQ1fiBY%3D
Hermann Stamm-Wilbrandt
2014-01-31 09:41:53 UTC
Permalink
Thanks William!
That does not return what was requested, but changing "pre" to "urn:u" two
times does:
http://try.zorba.io/queries/xquery/BwMzU0SPVdY9X7f5DO42g15Gt94%3D


Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Level 3 support for XML Compiler team and Fixpack team lead
WebSphere DataPower SOA Appliances
https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/
https://twitter.com/HermannSW/
http://stamm-wilbrandt.de/GraphvizFiddle/
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



From: William Candillon <***@gmail.com>

To: Michael Kay <***@saxonica.com>,

Cc: Hermann Stamm-Wilbrandt/Germany/***@IBMDE, "***@x-query.com Talk" <***@x-query.com>

Date: 01/31/2014 10:17 AM

Subject: Re: [xquery-talk] Q: computed element and namespace






In XQuery 3.0 you could write the following:
element {"a"}{
(
namespace pre { "urn:u" },
element {fn:QName("pre", "pre:b")}{},
element {fn:QName("pre", "pre:c")}{}
)
}
http://try.zorba.io/queries/xquery/OEkkPFKllu7moQ5l6eCBTQ1fiBY%3D
William Candillon
2014-01-31 09:43:31 UTC
Permalink
Oups indeed, thank you!

On Fri, Jan 31, 2014 at 10:41 AM, Hermann Stamm-Wilbrandt
Post by Hermann Stamm-Wilbrandt
Thanks William!
That does not return what was requested, but changing "pre" to "urn:u" two
http://try.zorba.io/queries/xquery/BwMzU0SPVdY9X7f5DO42g15Gt94%3D
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt
Level 3 support for XML Compiler team and Fixpack team lead
WebSphere DataPower SOA Appliances
https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/
https://twitter.com/HermannSW/
http://stamm-wilbrandt.de/GraphvizFiddle/
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
Date: 01/31/2014 10:17 AM
Subject: Re: [xquery-talk] Q: computed element and namespace
element {"a"}{
(
namespace pre { "urn:u" },
element {fn:QName("pre", "pre:b")}{},
element {fn:QName("pre", "pre:c")}{}
)
}
http://try.zorba.io/queries/xquery/OEkkPFKllu7moQ5l6eCBTQ1fiBY%3D
Loading...