You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "namedgraph (via GitHub)" <gi...@apache.org> on 2026/09/03 12:48:49 UTC
[I] Validation of (canonical) XMLLiterals [jena]
namedgraph opened a new issue, #4198:
URL: https://github.com/apache/jena/issues/4198
### Version
6.1.0
### Question
It looks like the RDF parsers became more lenient re. `rdf:XMLLiteral` values:
| lexical form | 4.7.0 | 5.6.0 | 6.1.0 |
|---|---|---|---|
| canonical | pass | pass | pass |
| attributes out of alphabetical order | **fail** | pass | pass |
| self-closing `<br/>` | **fail** | pass | pass |
| well-formedness violation (`<span>…</div>`) | fail | fail | fail |
| not XML at all | fail | fail | fail |
Can I somehow re-enable the strict canonical validation or has it been remove completely?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Validation of (canonical) XMLLiterals [jena]
Posted by "namedgraph (via GitHub)" <gi...@apache.org>.
namedgraph commented on issue #4198:
URL: https://github.com/apache/jena/issues/4198#issuecomment-5530170693
Thanks.
OK but if I know what I'm doing and want the proper c14n applied, then Jena doesn't help anymore? I need to do my own validation?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Validation of (canonical) XMLLiterals [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #4198:
URL: https://github.com/apache/jena/issues/4198#issuecomment-5527881472
`rdf:XMLLiteral` was a required built-in in RDF 1.0
It is not in RDF 1.1 - it is a regular datatype and, like regular datatypes "xyz"^^xsd:integer". illegal lexical forms are possible.
The value space is now is a set of DOM [DocumentFragment](https://www.w3.org/TR/dom/#interface-documentfragment) nodes [[DOM4](https://www.w3.org/TR/rdf11-concepts/#bib-DOM4)].
Canonicalization is not required, which is good because people often got it wrong as it has some unexpected requirements and often `rdf:XMLLIterals` in the wild did not have XML exclusive canonicalization applied.
See `XMLLiteralType.xmlLiteralValue`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Validation of (canonical) XMLLiterals [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #4198:
URL: https://github.com/apache/jena/issues/4198#issuecomment-5530422432
I can't find it in the codebase so looks like it.
Maybe somewhere around https://github.com/apache/jena/pull/2431
from
https://github.com/apache/jena/issues/2430
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Validation of (canonical) XMLLiterals [jena]
Posted by "namedgraph (via GitHub)" <gi...@apache.org>.
namedgraph closed issue #4198: Validation of (canonical) XMLLiterals
URL: https://github.com/apache/jena/issues/4198
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org