Hello Lee,

This problem has been fixed (see http://restlet.tigris.org/issues/show_bug.cgi?id=316) and is available in the svn repository.

best regards,
Thierry Boileau
I'm not sure if this is a bug or a feature but...

In the org.restlet.resource.DomRepresentation class, the write method is
stripping out any doctype associated with the original Document object.  This is
due to the usage of the internal identity transform being used. I discovered it
while playing around with an XSLT transform chain that generated a Document that
I used to create a DomRepresentation.  I couldn't figure out WHY my doctype was
missing on the final output.  A bit of debugging and research later the culprit
was found.

So,  Is this a bug or a feature?

The problem code is one lines 151-153 in the SVN trunk right now:

TransformerFactory.newInstance().newTransformer().transform(
                    new DOMSource(getDocument()),
                    new StreamResult(outputStream));

This creates a simple identity transform since no XSL Source was specified.


Reply via email to