cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robby.pelss...@vodafone.com
Subject RE: SVG broken images.....HELP!!
Date Tue, 17 Feb 2004 16:42:12 GMT
try adding the namespace....

Example

<xsl:stylesheet xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
  <xsl:template match="/">   
    <svg xmlns:svg="http://www.w3.org/2000/svg" width="520" heigth="300">  
      <g transform="scale({$scalex} {$scaley})">
        <xsl:apply-templates select="chart"/> 
      </g>
    </svg> 
  </xsl:template>

</xsl:stylesheet>


-----Original Message-----
From: news [mailto:news@sea.gmane.org]On Behalf Of Jorg Heymans
Sent: 17mm2004 17:31
To: users@cocoon.apache.org
Subject: Re: SVG broken images.....HELP!!


Do they render correctly in Batik ? Batik comes with an svg image 
viewer, squiggle or something.

If they aren't rendering there then chances are slim cocoon will render 
them (because it uses those libraries).

There can be a million other things otherwise, check error.log or 
core.log for more specific svg rendering error messages.

hth
Jorg

beyaNet Consultancy wrote:
> Steve,
> not having used svg technology before today, could you elaborate further 
> on what you mean? I searched the net for an svg viewPort attribute but 
> only managed to come up with viewBox. Is that what you were making 
> reference to:
> 
> <svg width="300" height="300" viewBox="0 0 300 310"> ?
> 
> If so, the images are still broken!
> 
> many thanks in advance
> On 17 Feb 2004, at 15:52, Steve Schwarz wrote:
> 
>     Hi
>     Don't you need to specify a viewPort attribute in your outermost
>     <svg> element?
>     Steve
> 
> 
>         <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>         xmlns:xlink="http://www.w3.org/1999/xlink"
>          >
>         .........
>         <xsl:template match="artists-photo1">
>         <svg width="300" height="300">
>         <xsl:apply-templates />
>         </svg>
>         </xsl:template>
> 
> 
>     _________________________________________________________________
>     Say "good-bye" to spam, viruses and pop-ups with MSN Premium -- free
>     trial offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
> 
> 
>     ---------------------------------------------------------------------
>     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

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


Mime
View raw message