Hi,

I have created a URIResolver which seems to work fine, but I keep
getting transform errors from the included xsl file (when there should
not be)

The URIResolver is set to the TransformerFactory:-
TransformerFactory factory = TransformerFactory.newInstance();
 factory.setURIResolver(uriResolver);

The URIResolver resolves a StreamSource form a URL object:-
StreamSource myStreamSource = new StreamSource( url.openStream() );

The file is found and the StreamSource is created without problems, but
when I then get a transform error from the included xsl file:-
Transform error: Characters are not allowed at this point in the
document!

The included xsl file is as follows:-
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:attribute-set name="font">
  <xsl:attribute name="font-name">Arial</xsl:attribute>
  <xsl:attribute name="font-size">14px</xsl:attribute>
  <xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
</xsl:stylesheet>

am I going barmy?

etienne

Reply via email to