[Bug 29611] New: xml-to-json-D-507 expects the wrong result

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29611

            Bug ID: 29611
           Summary: xml-to-json-D-507 expects the wrong result
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Here are the relevant inputs:

   <test-case name="xml-to-json-D-507">
      <description>Valid input - maps</description>
      <created by="Michael Kay" on="2016-04-22"/>
      <environment ref="xml-to-json-D"/>
      <dependency type="spec" value="XP31+ XQ31+"/>
      <test>xml-to-json(//*:template[@name="t507"]/*:variable/*)</test>
      <result>
         <assert-eq>'{"\n":"1","\n":"2"}'</assert-eq>
      </result>
   </test-case>

   <environment name="xml-to-json-D">
      <source role="." file="xml-to-json/xml-to-json-D.xsl">
        ...
      </source>
   </environment>

xml-to-json/xml-to-json-D.xsl
    ...

    <xsl:template name="t507">
        <xsl:variable name="in"><j:map><j:string key='\"' escaped-key=" true
">1</j:string><j:string key='\"' escaped-key=" false
">0</j:string></j:map></xsl:variable>
        <t><xsl:sequence select="xml-to-json($in)"/></t>
    </xsl:template>

    ...

Notice it expects:

    '{"\n":"1","\n":"2"}'

I think it should expect:

    '{"\"":"1","\\\"":"0"}'

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 5 May 2016 21:52:53 UTC