Excellent, that got me half way there.  Now all 8 bit (standard text)
xsl sheets work again, but unicode stylesheets still complain of a
missing version attribute.

setUnicodeAware(true)??... :-)

I do have <?xml encoding="UTF-8?> at the head of my document.
When I parse the doc, I can navigate the nodes and print the tree just fine.
I can even see my process instructions, so the builder appears to be
able to 
handle double byte source data.

XSL is the only entity that is confused.


Gary L Peskin wrote:
> 
> Be sure that you setNamespaceAware(true) on DocumentBuilderFactory
> before creating your DocumentBuilder.  In other words, you need to be
> sure that namespace support is on when you build your DOM.
> 
> Gary
> 
> > -----Original Message-----
> > From: Christopher Hull [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 20, 2001 4:29 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Problem using DOMSource with tFactory.newTransformer
> >
> >
> >
> > Simply, when I pass a DOM, newTransformer complains that the
> > stylesheet does not have a version attribute when it does.
> > When I pass in a StreamSource, everything works, but the
> > StrreamSource doesn't appear to deal with unicode properly
> > (that is, stylesheets saved as unicode don't appear to work).
> >
> > Using XalanJ 2_0_0
> >
> > Any ideas?
> > Thanks;
> > -Chris
> >

Reply via email to