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

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 16:42:56 +0000
Message-ID: <88b533b90911120842g22fe2005w56d110f053462fdc@mail.gmail.com>
To: xproc-dev@w3.org

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

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:with-param name="preserve_newline" select="false()"/>

      <p:input port="parameters">

Thanks Much


Received on Thursday, 12 November 2009 16:43:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:06 UTC