Comment 6 for bug 1167641

Revision history for this message
Chris Hillery (ceejatec) wrote :

Sorin - it appears that the change you made to the FOTS driver does not actually do what you said it does, or at least that is not what is reported in the driver output:

3687: <test-case xmlns="http://www.w3.org/2010/09/qt-fots-catalog" name="numberformat87" result="pass" info="Test case failed but it is marked with EXPECTED_FOTS_FAILURE in test/fots/CMakeLists.txt">
3687: <environment>
3687: <decimal-format xmlns:a="http://a.ns/" name="a:test" decimal-separator="," grouping-separator="."/>
3687: </environment>
3687: <test><![CDATA[format-number(12.34, '0.000,00', 'Q{http://a.ns/}test ')]]></test>
3687: <result>
3687: <assert-string-value>0.012,34</assert-string-value>
3687: </result>
3687: <fots:info>
3687: <fots:query><![CDATA[
3687: import module namespace xqxq = 'http://www.zorba-xquery.com/modules/xqxq';
3687:
3687: variable $queryID := xqxq:prepare-main-module
3687: (
3687: '
3687: xquery version "3.0";
3687: declare base-uri "file:///home/ceej/zo/src/build/test/fots/2011/QT3-test-suite/fn/format-number.xml";
3687: declare decimal-format a:test decimal-separator="," grouping-separator="." ;
3687: format-number(12.34, ''0.000,00'', ''Q{http://a.ns/}test '')
3687: '
3687:
3687: );

Note that the "declare decimal-format" in the generated query still says "a:test". It appears that this is why the test is currently failing, at least.

Can you verify/fix the FOTS driver behaviour?