[
https://issues.apache.org/jira/browse/JENA-474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690275#comment-13690275
]
Andy Seaborne commented on JENA-474:
------------------------------------
Thanks for the details and the analysis.
The rules for valid RDF XML Literals are really rather complicated - all aimed
at making string comparison work (and then only sometimes).
There's a whole spec on it:
http://www.w3.org/TR/xml-c14n
1/ Unused namespaces must be eliminated
2/ Attributes must use "" and not ''
Namespaces and attributes need to be in a specific order as well.
> Valid XML fails to validate as XMLLiteral
> -----------------------------------------
>
> Key: JENA-474
> URL: https://issues.apache.org/jira/browse/JENA-474
> Project: Apache Jena
> Issue Type: Bug
> Components: RIOT
> Reporter: Szabolcs Illes
> Attachments: JenaTest.scala
>
>
> Looks like:
> -XML with single quote in attributes fails riot validation
> -XML with unused namespace declaration fails riot validation
> WARN [main] (JenaHelper.java:360) - Lexical form '<div
> xmlns:u="http://unused.ns">bla</div>' not valid for datatype
> http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
> WARN [main] (JenaHelper.java:360) - Lexical form '<div id='12345'>bla</div>'
> not valid for datatype http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira