cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanne de Roever" <sa...@newfoundland.nl>
Subject Re: xsp:element root element bug?-> solved! Thanks Vadim.
Date Thu, 12 Sep 2002 14:33:24 GMT
Hi Vadim,

Thanks, that worked!
A already had an alternate solution using a fake <root>
element which was stripped by an xsl transformation.

This is better though!

Kind regards,

Sanne

----- Original Message -----
From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
To: <cocoon-users@xml.apache.org>
Sent: Thursday, September 12, 2002 4:02 PM
Subject: Re: xsp:element root element bug?


> Sanne de Roever wrote:
>
> >Hi,
> >
> >I've been using the xsp:element, and xsp:attribute tags with succes when
> >creating svg.
> >But now I would like to wrap the root element svg in such a tag, so I can
> >adjust the width and height.
> >The could/should be like this:
> >
> ><?xml version="1.0"?>
> ><xsp:page language="java"
> > xmlns:xsp="http://apache.org/xsp"
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> >
> >
> ><xsp:element name="svg">
> >
>
> Use <svg> here:
>
>
> <svg>
>
> > <xsp:attribute name="width">500</xsp:attribute>
> > <xsp:attribute name="height">500</xsp:attribute>
> > <xsp:element name="path">
> >  <xsp:attribute name="fill">none</xsp:attribute>
> >  <xsp:attribute name="d">M 100,200 z</xsp:attribute>
> > </xsp:element>
> > <xsp:element name="text">
> >  <xsp:attribute name="transform">matrix(1 0 0 1 0 26)</xsp:attribute>
> >  Hello world
> > </xsp:element>
> >
> </svg>
>
> ></xsp:page>
> >
>
> Vadim
>
>
>
> >My own svg is more complex, but the bottom line is that using an
xsp:element
> >tag for a root element doesn't work.
> >
> >Could this be a bug?
> >
> >Regards,
> >
> >Sanne
> >
> >
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message