W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2012

RE: XPath evaluation - bug in Calabash?

From: Geert Josten <geert.josten@dayon.nl>
Date: Mon, 19 Nov 2012 17:13:44 +0100
Message-ID: <477d6a1f52e690b06d19559ebc561ea4@mail.gmail.com>
To: Romain Deltour <rdeltour@gmail.com>, XProc Dev <xproc-dev@w3.org>
Hmm, interesting. What happens when you put $opt and $var in the xhtml
namespace? :)

> -----Oorspronkelijk bericht-----
> Van: Romain Deltour [mailto:rdeltour@gmail.com]
> Verzonden: maandag 19 november 2012 16:08
> Aan: XProc Dev
> Onderwerp: XPath evaluation - bug in Calabash?
>
> The following XProc pipeline raises an err:XD0023 with Calabash:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <p:declare-step  xmlns="http://www.w3.org/1999/xhtml"
> xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
>
>     <p:option name="opt" required="true"/>
>     <p:output port="result"/>
>
>     <p:variable name="var" select="concat($opt,' ','world')"/>
>
>     <p:add-attribute match="*" attribute-name="text">
>         <p:input port="source">
>             <p:inline>
>                 <message/>
>             </p:inline>
>         </p:input>
>         <p:with-option name="attribute-value" select="$var"/>
>     </p:add-attribute>
>
> </p:declare-step>
>
>
> Weirdly enough, it works when I remove the default namespace. I suspect
it's a
> bug, but maybe I'm missing the obvious. Any idea ?
>
> Thanks,
> Romain.
Received on Monday, 19 November 2012 16:14:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 19 November 2012 16:14:17 GMT