Hey everyone,
I'm executing an XSLT using saxon that works fine when I test my app in
local but that crashes when running live on the GAE. I have seen posts that
claim Saxon works on the GAE, but no working code. I've asked the same
question on the Gaelyk list
(http://groups.google.com/group/gaelyk/browse_thread/thread/c52109fe69611f70)
and Saxon list and the error doesn't seem to come from either.
The code looks like:
def translator = params.translator ?: "'The received
translation was null.'"
def input = params.input ?: "'The received input was null.'"
def StringWriter sw = new StringWriter()
def Processor proc = new Processor(false)
def XsltCompiler comp = proc.newXsltCompiler()
def Serializer out = new Serializer()
def XsltExecutable exp = comp.compile(new StreamSource(new
StringReader(translator)))
def XdmNode source = proc.newDocumentBuilder().build(new
StreamSource(new StringReader(input)))
out.setOutputProperty(Serializer.Property.METHOD, "xml")
out.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION,
"yes")
out.setOutputProperty(Serializer.Property.INDENT, "yes")
out.setOutputWriter(sw);
def XsltTransformer trans = exp.load()
trans.schemaValidationMode
trans.setInitialContextNode(source)
trans.setDestination(out)
trans.transform()
result = sw.toString()
And I get the following error: http://pastebin.com/h559rYzk
Any tip/idea where that could come from would be welcome :) Also, if
somebody knows of another library that allows XSLT2 on the GAE please let me
know.
All the best,
Pierre
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.