Hi,
I am getting the following error:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.w3c.dom.DOMException: The current document is unable to create an element of the requested type (namespace: http://www.w3.org/2000/svg, name: html).

My pipe is:

<map:match pattern="svg1">
<map:generate type="jxt" src="jx/svg.jxt"/>
<map:serialize type="svg2jpeg"/>
</map:match>

and my svg.jxt code is:

<?xml version="1.0"?>
<html
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
xmlns="http://www.w3.org/2000/svg"
>


<svg width="${svgWidth}" height="${svgHeight}" viewBox="0 0 ${svgWidth} ${svgHeight}" xmlns:xlink="http://www.w3.org/1999/xlink">
<image x="0" y="0" border="0" width="${imgWidth}" height="${imgHeight}" xlink:href="data:image/jpeg;${base64}"/>
</svg>
</html>

I know the error is being caused by the <html> tags, but is there any solution for this using JXT???

Peter

Reply via email to