- From: Tobias Reif <tobiasreif@pinkjuice.com>
- Date: Mon, 16 Feb 2004 20:16:08 +0100
- To: Robin Berjon <robin.berjon@expway.fr>
- Cc: "sebastien.hullard" <sebastien.hullard@laposte.net>, www-svg <www-svg@w3.org>
Hi On Mon 2004-02-16 Robin Berjon wrote: > > sebastien.hullard wrote: > >I saw on the SVG 1.1 specification an example that don't work on my > >computer. > > > >It's on item /6.6 Styling with XSL/, the example whith a XSL stylesheet > >and a SVG file. > > > >On my computer, I just see a black square. I work whith Microsoft > >Internet Explorer 6.0 and the SVG Adobe plugin v3.0. > > > >Nobody on the different web forums is able to help me. Can you tell me > >if I make a syntax error or if I have a configuration problem ? > > Styling with XSL is optional, and only in the spec as an example. I > am not aware of any implementation supporting XSL as a styling > language, and thus it doesn't work (unless maybe FOP does it?). Batik Squiggle does. I was able to get it do perform an XSLT transformation and display the result, but only with a Squiggle example and not with the example from the SVG spec; I probably have a typo somewhere, or Squiggle is confused by the source doc being in the SVG namespace. Details below. Tobi ###################################################################### XSLT example from the spec http://www.w3.org/TR/SVG/styling.html#StylingWithXSL $ cat > mystyle.xsl [pasted the XSLT here, then ctrl-d] $ cat > foo.svg [pasted the SVG here, then ctrl-d] [added PI:] $ ed foo.svg 168 1a <?xml-stylesheet href="mystyle.xsl" type="text/xsl"?> . w 222 q $ cat foo.svg <?xml version="1.0" standalone="no"?> <?xml-stylesheet href="mystyle.xsl" type="text/xsl"?> <svg width="10cm" height="5cm" xmlns="http://www.w3.org/2000/svg"> <rect x="2cm" y="1cm" width="6cm" height="3cm"/> </svg> ###################################################################### installation of an XSLT-enabled Squiggle $ cd bulk/run/batik $ mkdir 1_5_built && cd 1_5_built $ wget -q http://www.apache.de/dist/xml/batik/batik-src-1.5.zip [ http://www.apache.org/dist/xml/batik/batik-src-1.5.zip.md5 MD5 (batik-src-1.5.zip) = 94d3e981014a5ed6f8c0e3fd80be3033 ] $ md5sum --check 94d3e981014a5ed6f8c0e3fd80be3033 *batik-src-1.5.zip batik-src-1.5.zip: OK $ jar -xf batik-src-1.5.zip [ did http://koala.ilog.fr/batik/mlists/batik-users/archives/msg02404.html ] $ cd xml-batik/ $ chmod 700 build.sh $ ./build.sh $ ./build.sh dist-zip [in any dir:] $ squiggle ~/bulk/run/batik/1_5_built/xml-batik/batik-1.5/samples/extensions/xsl/data.xml [=> nice pattern, transformation successful] $ squiggle ~/del/del_svg/foo.svg [black rectangle, no transformation; why?] ###################################################################### data/commands/squiggle #!/usr/bin/env sh # todo: support relative paths, as before cd ${HOME}/bulk/run/batik/1_5_built/xml-batik/ ./build.sh squiggle "$@"
Received on Monday, 16 February 2004 14:13:45 UTC