xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: Custom cursor
Date Thu, 22 Jan 2004 13:22:05 GMT
REH Wolfgang wrote:

> 
> I am trying to assign a custom cursor to an element. If I load a SVG 
> file like:
>  
>  <g style="cursor:url(#magglass)">

> this always results in an error. Batik (I'm using version 1.5) complains 
> about an 'invalid CSS declaration'. But as far as I can see the style 
> attribute for the <g>-element is correct. Opening the file with 
> squiggle shows:

    If you read the SVG specification closely it _requires_ that the
cursor property end with one of the 'identifier' cursors.  So your
specification needs to be something like:

    style="cursor:url(#magglass),crosshair"

> org.w3c.dom.DOMException: file:/D:/Documents/SVG/CursorTest.svg:
> The attribute "style" represents an invalid CSS declaration 
> ("cursor:url(#magglass)").
> Original message:
> A malformed value was assigned to a "cursor" property.
>     at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown 
> Source)
>     at org.apache.batik.css.engine.CSSEngine.getComputedStyle(Unknown 
> Source)
>     at org.apache.batik.bridge.CSSUtilities.getComputedStyle(Unknown 
> Source)
>     at org.apache.batik.bridge.CSSUtilities.convertDisplay(Unknown Source)
>     at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
>     at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
>     at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
>     at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
>  
>  
>     Regards
>         Wolfgang Reh
>  
>  
>  
> * Wolfgang Reh
> 
> *Scheydgasse 41
> 1210 Wien
> 
> mailto:Wolfgang.Reh@alcatel.at
>  




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


Mime
View raw message