Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 28633 invoked from network); 19 Feb 2004 15:35:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Feb 2004 15:35:18 -0000 Received: (qmail 75113 invoked by uid 500); 19 Feb 2004 15:35:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 75067 invoked by uid 500); 19 Feb 2004 15:35:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 75037 invoked from network); 19 Feb 2004 15:35:01 -0000 Received: from unknown (HELO smtp02.syd.iprimus.net.au) (210.50.76.52) by daedalus.apache.org with SMTP; 19 Feb 2004 15:35:01 -0000 Received: from lincslaptop (210.50.110.144) by smtp02.syd.iprimus.net.au (7.0.024) id 402CF8700019DBE9 for users@cocoon.apache.org; Fri, 20 Feb 2004 02:35:02 +1100 Message-ID: <062801c3f6fd$e778ac70$1e1a32d2@lincslaptop> From: "Linc" To: References: <05bd01c3f6df$132c5c00$1e1a32d2@lincslaptop> Subject: Re: SVG bug!!! Date: Thu, 19 Feb 2004 23:34:45 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0625_01C3F740.F4C16AF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0625_01C3F740.F4C16AF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I think you will need to use Javascript to get the SVGdocument and then = set the viewBox attribute, I don't have an example at hand but I seem to = remember some posts to the SVG usergroup about this so you may want to = try there. http://groups.yahoo.com/group/svg-developers/ Linc ----- Original Message -----=20 From: beyaNet Consultancy=20 To: users@cocoon.apache.org=20 Sent: Thursday, February 19, 2004 8:05 PM Subject: Re: SVG bug!!! Linc, I think I am coming closer to the answer. If I make a request for the = image outside of the iframe it is loaded into, = (http://www.mysite.com/cocoon/beyarecords/artistImage/1/46.jpg), then = the image changes according to the sizes I give it. If i try and call = the image so that the document which it is called into sits within the = iframe, then no matter what values you give the height and width of the = svg tag no change to the canvas size takes place. Any ideas? Andrew On 19 Feb 2004, at 11:54, Linc wrote: Try just creating the SVG on its own ie. =20 =20 Let me know if this works for you! =20 Linc =20 ----- Original Message ----- From: beyaNet Consultancy=20 To: users@cocoon.apache.org=20 Sent: Thursday, February 19, 2004 5:05 PM Subject: SVG bug!!! Hi, I have, for the last few days now, tried unsuccessfully to change = the canvas size of generated svg images. Is there a bug in SVG or is = there something very simple I am failing to grasp here? 0 0 300 300 data:image/jpeg;base64,Photo1 artist1 many thanks in advance ------=_NextPart_000_0625_01C3F740.F4C16AF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I think you will need to use Javascript = to get the=20 SVGdocument and then set the viewBox attribute, I don't have an example = at hand=20 but I seem to remember some posts to the SVG usergroup about this = so=20 you may want to try = there.
 
http://groups.yaho= o.com/group/svg-developers/
 
Linc
 
----- Original Message -----
From:=20 beyaNet=20 Consultancy
Sent: Thursday, February 19, = 2004 8:05=20 PM
Subject: Re: SVG bug!!!

Linc,
I think I am coming closer to the answer. If I = make a=20 request for the image outside of the iframe it is loaded into, (ht= tp://www.mysite.com/cocoon/beyarecords/artistImage/1/46.jpg),=20 then the image changes according to the sizes I give it. If i try and = call the=20 image so that the document which it is called into sits within the = iframe,=20 then no matter what values you give the height and width of the svg = tag no=20 change to the canvas size takes place. Any ideas?

Andrew
On = 19 Feb=20 2004, at 11:54, Linc wrote:

Try just creating the = SVG=20 on its own = ie.
 
<svg=20 width=3D"100" height=3D"100" viewBox=3D"0 0 50=20 50">
  =20 <rect width=3D"50" = height=3D"50"/>
</svg>
 
Let=20 me know if this works for = you!
 
Linc
 
<= ?param Arial>-----=20 Original Message = -----
From:=20 beyaNet=20 Consultancy =
To:=20 users@cocoon.apache.org=20
Sent:= =20 Thursday, February 19, 2004 5:05 = PM
Subject:=20 SVG bug!!!

Hi,
I have, for = the last=20 few days now, tried unsuccessfully to change the canvas size of = generated=20 svg images. Is there a bug in SVG or is there something very simple = I am=20 failing to grasp here?


<svg:svg width=3D"300" = height=3D"300"=20 y=3D"0" x=3D"0" viewBox=3D"0 35 200 = 200">
<xsp:element=20 name=3D"image">
<xsp:attribute=20 name=3D"x">0</xsp:attribute>
<xsp:attribute=20 name=3D"y">0</xsp:attribute>
<xsp:attribute=20 = name=3D"width">300</xsp:attribute>
<xsp:attribute= =20 = name=3D"height">300</xsp:attribute>
<xsp:attribut= e=20 = name=3D"xlink:href">data:image/jpeg;base64,<xsp:expr>Photo1</= xsp:expr></xsp:attribute>
<xsp:attribute=20 = name=3D"id">artist1</xsp:attribute>
</xsp:element= >
</svg:svg>


many=20 thanks in advance
------=_NextPart_000_0625_01C3F740.F4C16AF0--