How are you creating your StreamSource? If you are supplying a Reader,
be aware that the encoding of the
Reader will be used, not the encoding specified in the XML document.
You should be supplying a stream or a file. If this isn't the problem,
try the transform from the command line and see if that does the trick.
If that works, there is a problem with your java code and you should
probably post it so that we can look at it.
Gary
> -----Original Message-----
> From: Christopher Hull [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 4:50 PM
> To: Gary L Peskin
> Cc: [EMAIL PROTECTED]
> Subject: Re: Problem using DOMSource with tFactory.newTransformer
>
>
>
> 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
> > >
>