[Bug 28439] [XT30TS] error-1620a

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

Abel Braaksma <abel.braaksma@xs4all.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
After some trial and error, I came up with the following query:

/cat:test-set/cat:test-case
  [cat:result[assert-serialization
    [not(@method) or @method='xml']
    [
      (not(@file) and not(contains(., '?xml')))
      or not(contains(unparsed-text(@file), '<?xml'))
    ]
  ]]
[cat:test/cat:stylesheet
  [doc(@file)/(xsl:stylesheet|xsl:transform)
  [
    empty(xsl:output | .//xsl:result-document) or
    (xsl:output | .//xsl:result-document)[@method='xml' or empty(@method)]
      [normalize-space(@omit-xml-declaration)=('no', 'false', '0')]
  ]]
]

While I am not 100% sure the query is correct for all cases, it showed me three
tests that were a candidate for incorrect settings:

include-0101
output-0312
output-0313

For all three cases these were false negatives. The test was about testing
import precedence and the effective setting of omit-xml-declaration was true.

I'll resolve this bug as fixed, please reopen if you think the query above is
wrong and/or if you find other tests that have the wrong serialized output as a
result of the xml declaration.

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

Received on Wednesday, 15 April 2015 18:04:50 UTC