This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT+XPATH as SVG scripting?
- From: Max Froumentin <mf at w3 dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 01 Jun 2002 15:50:26 +0200
- Subject: Re: [xsl] XSLT+XPATH as SVG scripting?
- Organization: W3C
- References: <9B66BBD37D5DD411B8CE00508B69700F024A7682@pborolocal.rnib.org.uk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
DPawson@rnib.org.uk writes:
> Functionally the prime usages seem to be animation,
> addition and removal (or hiding) of some element
> of the SVG document.
Most of this can indeed be done in SMIL animation, in a simpler way
than using Javascript (see examples below), or introducing XSLT
constructs. But I suspect fewer SVG developers are familiar with
declarative animation than with JavaScript, and I suspect using
XSLT/XPath constructs there wouldn't make Javascript programmers
change their mind so easily.
<!-- animate -->
<animate id="move3" begin="move2.end" xlink:href="#m"
attributeName="x" attribut eType="XML" dur="2s" from="45" to="55"
fill="freeze" restart="never"/>
<!-- hide -->
<set xlink:href="#N" begin= "move2.end+2s" dur="indefinite"
attributeType="CSS" attributeName="visibility" to="hidden"
restart="never"/>
Max.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list