Project

Profile

Help

Bug #3925

closed

Validation that succeeds under 9.8 fails under 9.9

Added by Michael Kay about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema-Aware processing
Sprint/Milestone:
-
Start date:
2018-09-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, 9.9
Fix Committed on Branch:
9.8, 9.9
Fixed in Maintenance Release:
Platforms:

Description

With the attached files, Saxon 9.8.0.14 generates the output successfully:

   C:\test>java -jar SaxonEE9-8-0-14J\saxon9ee.jar -config:config.xml -s:test.xml -t -xsl:test.xsl
   Saxon-EE 9.8.0.14J from Saxonica
...
   <?xml version="1.0" encoding="UTF-8"?><title xmlns="test">test</title>Execution time: 387.1993ms
   Memory used: 10,353,184

But 9.9 fails:

   C:\test>java -jar SaxonEE9-9-0-1J\saxon9ee.jar -config:config.xml -s:test.xml -t -xsl:test.xsl
   Saxon-EE 9.9.0.1J from Saxonica
...
   Validation error in test.xml:
     FORG0001: Character data is not allowed: element <title> has an empty content model
     Validating /title[1]
     Currently processing  in file:/C:/test/test.xml
     See http://www.w3.org/TR/xmlschema11-1/#cvc-complex-type clause 2.1
   Error evaluating (xsl:copy-of) in xsl:copy-of/@select on line 8 column 49 of test.xsl:
     XTTE1510: One validation error was reported: Character data is not allowed: element
     <title> has an empty content model
   One validation error was reported: Character data is not allowed: element <title> has an empty content model

Please register to edit this issue

Also available in: Atom PDF