- Login: mike
- Email: email@example.com
- Registered on: 2012-02-01
- Last connection: 2023-01-31
|Saxon||Manager, Developer, Reporter||2012-02-06|
|W3C QT Specifications||Manager||2019-05-16|
The problem with defining callbacks such as the MessageEmitter and ErrorListener at Configuration level is multi-threading - there's no way to tell which of several concurrent transformations generated the message or the error. That's wh... Open Discussion: RE: XSLT command-line option '-m' - 'From Saxon 11.1 this option has no effect.'
The Saxon 12 docs for the XSLT command-line options state that, for the '-m' option: 'From Saxon 11.1 this option has no effect.'
I used to frequently use this option on the command line as follows:
I find the Wikipedia article
more helpful than the RFCs, though RFC 8089 does clear up a lot of the confusion that existed previously.
Both file:///x/y/z and file:/x/y/z are legal a... Bug #5863: file:/// URIs do not resolve correctlyThe following returns `file:/home/pumba/` where I would expect `file:///home/pumba/`.
As a result, `document('file:/home/pumba/file.xml')` cannot find the document, whereas `document('file:///home/pumba/file.xml')` can.
I decided to bite the bullet: getAllNamespaces() on a wrapped DOM node now looks not only for `xmlns[:x] =uri` attributes, but also checks the namespace bindings in namespace aware ("DOM level 2") element and attribute nodes.
Although... Bug #5859 (Resolved): Handling of undeclared namespaces in a programmatically constructed DOM**Summary**
Saxon crashes if the input is a DOM tree containing namespaced ("DOM level 2") elements or attributes without corresponding namespace declaration attributes.
The java net.sf.saxon.jaxp.Transforme...
Fixed for the 10, 11, and 12 branches.
Tested by the unit test for bug #5859.
I've also made the corresponding change for SaxonCS 11 and 12; although the documentation was less explicit about this case, it makes sense to keep the b... Bug #5862 (Resolved): Predicates.hasLocalName("") doesn't match unnamed nodesThe Javadoc for `Predicates.hasLocalName()` says that if the supplied name is an empty string, the predicate will match nodes having no name (for example a namespace node for the default namespace). This is not the case; the predicate re...
Note, I haven't specifically tested on SaxonCS 11, but the changes to the Java code are exactly the same and I think we can be confident that it will work when transpiled. Bug #5861: xsl:copy-of copy-namespaces="no" fails with various tree modelsNew unit test added to ObjectModelTests.java to test xsl:copy-of with assorted tree models.
The test with copy-namespaces="no" is crashing with the Linked Tree model. The test was prompted by bug #5859 (using the DOM model) and the fa...
I'm seeing one or two failures - notably the DocumentOrder tests - but the XSLT copy-of tests are succeeding so we ca...
Need to check for SaxonCS.
The generic bug #5861 is now fixed, but this test is still failing. That's because the programmatically-constructed DOM has a separate problem: `getAllNamespaces()` on a wrapped DOM element node is only getting the namespaces that are ac... Bug #5859: Qualified namespaces are not copied in StreamResultThe java net.sf.saxon.jaxp.TransformerImpl class has the method transform(Source xmlSource, final Result outputTarget).
Since version 10 in Saxon HE, it no longer properly copies over qualified namespaces from elements that are copied...
Also available in: Atom