logo

New Response

« Return to the main article

You are replying to:

  1. I am attempting to learn/understand how to properly utilize SVG in Notes. I am working on a sample obtained from IBM’s site. Problem is that the example is not helpful on how to integrate SVG with XSL stylesheets in Notes. I am using a page for simplicity. The styleheet (partial) code:

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD SVG 1.1//EN" doctype-system= "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"/>

    <!-- xpaths of note in our input format are: absolute xpath to street features /map/Streets/Feature absolute xpath to Land features /map/Land/Feature absolute xpath to Water features /map/Water/Feature

    Relative xpaths within a feature: name of feature @name points in a feature: point X coords of feature point/@x Y coords of feature point/@y -->

    <!-- our "main routine" --> <xsl:template match="/"> <!-- to save us having to do conversions of units, just set the viewbox so we can directly plot data points. That way the viewer does most of unit conversions. Our max x value is 650, our min x value is 0 Our max y value is 450, our min y value is 0 -->

    ----------------------------------- Data (partial) on a page I am attempting to render via the XSL stylesheet:

    <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href ="Map_XSLSS.xsl"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" >

    <svg xmlns="http://www.w3.org/2000/svg"> <map> <Streets> <Feature name="Beach Ave"> <point x="26" y="0"/> <point x="170" y="200"/> <point x="275" y="280"/> </Feature> <Feature name="Granville St"> <point x="75" y="450"/> <point x="557" y="40"/> ...etc.

    I think my problem is in the stylesheet type declaration on the page that I am rendering. I get a blank page in the browser, so it is rendering without errors at least.

    Render Pass thru and HTML content type are set on the page.

    Any ideas? Thanks Tim

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: