#14 -a option fails if title specified

v6.4
closed
Michael Kay
5
2012-10-08
2001-07-24
Michael Kay
No

The -a option on the command line causes the source
document to be processed using the stylesheet
identified in an <?xml-stylesheet?> processing
instruction within the source document. It should
perform a search that ignores the title, media and
charset pseudo-attributes (though the JAXP interface
allows a more specific search). However, the search
fails if either the title or media pseudo-attributes
are present.

Reported by Sebastian Rahtz [sebastian.rahtz@computing-
services.oxford.ac.uk]

Present in all previous versions (as far as I know).

Source code fixed: change line 420 of
com.icl.saxon.Stylesheet
from
Source style = factory.getAssociatedStylesheet
(sourceInput, "", "", "");
to
Source style = factory.getAssociatedStylesheet
(sourceInput, null, null, null);

MK

Discussion