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

Re: How to pass a boolean value true or false using with-param when the required param type is xs:boolean;

From: Alex Muir <alex.g.muir@gmail.com>
Date: Thu, 12 Nov 2009 17:17:19 +0000
Message-ID: <88b533b90911120917g4dd70b78wfead38d519d94e8a@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: xproc-dev@w3.org
Toman,

I get the same error message with that statement.

Description:  Required type is xs:boolean; supplied value has type xs:string

Alex

On Thu, Nov 12, 2009 at 5:00 PM, <Toman_Vojtech@emc.com> wrote:

>  Alex,
>
> It seems to me that the problem is that there is no implicit readable port
> to which the p:with-param can connect to - and therefore you get a static
> error. Try this:
>
> <p:with-param name="preserve_newline" select="false()">
>   <p:empty/>
> </p:with-param>
>
> Regards,
> Vojtech
>
>  ------------------------------
> *From:* xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] *On
> Behalf Of *Alex Muir
> *Sent:* Thursday, November 12, 2009 5:43 PM
> *To:* xproc-dev@w3.org
> *Subject:* How to pass a boolean value true or false using with-param when
> the required param type is xs:boolean;
>
> Hi
>
> In the following xproc the <p:with-param name="preserve_newline"
> select="false()"/> gives me an error message
>
>  "Description:  Required type is xs:boolean; supplied value has type
> xs:string"
>
> because the style sheet is expecting
>
> <xsl:param name="preserve_newline" as="xs:boolean"/>.
>
> It's funny to be asking this question but how do I specify the boolean
> value false in the xproc with-param ? I tried false, false() and 0 but there
> all treated as strings giving the same error message.
>
>    <p:xslt name="DoSomething">
>       <p:input port="source"/>
>       <p:input port="stylesheet">
>         <p:document href="doSomething.xsl"/>
>       </p:input>
>
>       <p:with-param name="preserve_newline" select="false()"/>
>
>       <p:input port="parameters">
>         <p:empty/>
>       </p:input>
>     </p:xslt>
>
>
> Thanks Much
>
> --
>
> Alex
> https://sites.google.com/a/utg.edu.gm/alex
>
>


-- 

Alex
https://sites.google.com/a/utg.edu.gm/alex
Received on Thursday, 12 November 2009 17:18:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 November 2009 17:18:07 GMT