This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XSLT+XPATH as SVG scripting?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]