You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Rob Tice <ro...@fdgroup.com> on 2001/04/09 09:09:23 UTC

Running in a servlet

Hi
I am having trouble with a line of code for a basic DOM implementation of 
an xsl translation on an xml file (althought the code could also be the 
same for a SAX inplementation).

OutputStream responseStream = response.getOutputStream();
Serializer serializer = 
SerializerFactory.getSerializer(OutputProperties.getDefaultMethodPropert  
ies("html"));
			
serializer.setOutputStream(responseStream);
serializer.asDOMSerializer().serialize(domResult.getNode());

The problem that I have is that the system can't find the file 
HTMLEntities.res (for the default HTML settings) as it is looking in my 
base servlet container directory (Tomcat). Obviously when I copy the file 
there I have no problem but this isn't very elegant. I cannot seem to find 
any documentation which gives me a clue . Any help would be appreciated 
(apologies if this is a trivial problem).


Rob Tice



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org