Hi Mustaf,
having a rect element as a child of an image element is not valid  
according to the svg specification, see for 1.1:  
http://www.w3.org/TR/SVG11/struct.html#ImageElement or for 1.2T:  
http://www.w3.org/Graphics/SVG/1.2/rng/Tiny-1.2-20060721/image.rng.

You can place the rect after the image element if you want it to render on  
top of the image.

Cheers
/Erik

On Thu, 15 Nov 2007 06:44:39 +0100, Md.Mustafizur Rahaman  
<[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I saw that the attachment has been removed, so i am pasting my svg file  
> content here
>
> <?xml version="1.0"?>
> <svg width="240px" height="240px" viewBox="0 0 240 240"  
> preserveAspectRatio="xMidYMid"  viewport-fill="yellow"
> version="1.2" xmlns="http://www.w3.org/2000/svg";  
> xmlns:xlink="http://www.w3.org/1999/xlink"; baseProfile="tiny">
>   <desc>This graphic links to an external image
>   </desc>
> <g transform="translate(20,20)">
>  <g transform="scale(1.5,1)">
>   <g transform="rotate(30)">
>   <rect xml:id="rect3" x="20" y="-20" width="20" height="45" fill="blue"  
> fill-opacity=".7" />
>   <g transform="translate(10,30)">
>   <image x="70" y="-70" width="200" height="150" opacity="1"  
> preserveAspectRatio="xMidYMid" viewport-fill-opacity=".7"  
> viewport-fill="rgb(0,250,255)"
>          xlink:href="The_Lonely_Tree_50_STRIP.jpg">
>   <rect xml:id="rect1" x="-50" y="-10" width="60" height="250"  
> fill="rgb(255,0,255)" fill-opacity=".7" />  //This is the rectangle i  
> have doubt about
>   </image>
>    </g>
>   </g>
>  </g>
>   <rect xml:id="rect2" x="0" y="120" width="30" height="70" fill="red"  
> fill-opacity=".7" />
> </g>
> </svg>
>
> Regs.
>
>
> ----- Original Message ----
> From: Md.Mustafizur Rahaman <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, November 15, 2007 11:01:26 AM
> Subject: [svg-developers] Can i specify a rectangle within an image tag
>
> Hi All,
>
> I was wondering whether we can specify a rectangle inside an image tag  
> in a svg file.
>
> The thought came to my mind because, we know that when we specify an  
> image, it creates a new viewport, so i was wondering whether it is  
> possible/legal to render any other basic shape within that image  
> viewport.
>
> May be you can take a look at the attached svg file.My question is "the  
> way i have specified rectangle with id rect1 , it is a valid svg file or  
> not".
>
> Thanks & Regs.
> Mustaf
>
> ____________ _________ _________ _________ _________ _________ _
> Be a better sports nut! Let your teams follow you
> with Yahoo Mobile. Try it now. http://mobile. yahoo.com/ sports;_ylt=  
> At9_qDKvtAbMuh1G 1SQtBI7ntAcJ
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>       
> ____________________________________________________________________________________
> Get easy, one-click access to your favorites.
> Make Yahoo! your homepage.
> http://www.yahoo.com/r/hs
>
> [Non-text portions of this message have been removed]
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to