#395 Transform with -v -a gives spurious warnings

v8.5
closed
5
2012-10-08
2005-08-17
Michael Kay
No

When running a transformation with the -v and -a
options set (DTD validation, and stylesheet taken from
the <?xml-stylesheet?> processing instruction), the
stylesheet is parsed with DTD validation enabled,
resulting in spurious "recoverable errors". These can
safely be ignored.

Source fix: in net.sf.saxon.event.PIGrabber, line 139,
after

Source s = uriResolver.resolve(href, baseURI);

add

if (s instanceof SAXSource) {

((SAXSource)s).setXMLReader(config.getStyleParser());
}

Michael Kay

Discussion

  • Kevin Rodgers

    Kevin Rodgers - 2005-08-18

    Logged In: YES
    user_id=662991

    This fix requires an additional import:

    import javax.xml.transform.sax.SAXSource;

    --
    Kevin Rodgers

     
  • Michael Kay

    Michael Kay - 2005-08-26

    Logged In: YES
    user_id=251681

    The same warnings occur when -v is used (without -a) and the
    stylesheet contains xsl:include or xsl:import declarations:
    the processor attempts to apply DTD validation to the
    included or imported stylesheet modules.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks