cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Failed to execute pipeline.
Date Sat, 24 Apr 2004 16:31:19 GMT
Try this:

<?xml version="1.0"?>
<svg xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     width="${svgWidth}" height="${svgHeight}" viewBox="0 0 ${svgWidght} 
${svgHeight}">
<image x="0" y="0" border="0" width="${imgWidth}" height="${imgHeight}" 
xlink:href="data:image/jpeg;${base64}"/>
</svg>

But if you're only doing expression substitution (and not using any 
jx:xxx tags) then you don't have to declare the jx namespace at all.

Chris

beyaNet Consultancy wrote:

> Hi,
> further to my earlier post. I have attached the output I am getting. 
> Could someone please test this file to see whether an image is being 
> generated?
>
> thanks
>
> Peter
>
>
>
>
> On 24 Apr 2004, at 15:40, beyaNet Consultancy wrote:
>
>     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
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message