-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I've a question regarding href's in the image tag of SVG's. Is there a way to 
access the actual sitemap context from an svg?

Example Sitemap:
<map:pipeline>
        <map:match pattern="resources/**">
                <map:mount check-reload="yes" src="resources/" uri-prefix="resources" 
/>
        </map:match>
        <map:match pattern="resize/**">
                <map:generate src="dummy.xml" />
                <map:transform src="resizer.xsl">
                        <map:parameter name="uri" value="{1}" />
                </map:transform>
                <map:serialize type="svg2jpeg" />
        </map:match>
</map:pipeline>

Example resizer.xsl:
  <xsl:param name="uri" select="''" />
  <xsl:template match="/">
        <svg viewpoint="0 0 320 240" width="320" height="240">
          <image width="320" height="240" xlink:href="cocoon:{$uri}"/>
        </svg>
</xsl:template>

The example above doesn't work. Using file:// is no problem, but I want to use 
it with dynamically created content, so I can't access the filesystem 
directly.

Thanks in advance
        Torsten Knodt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9SDHOvxZktkzSmiwRAsotAKCYbqxxRNPSpECNqPz5cUR2vvE7DwCffYcG
rohTz1KgS4ihUGwr513Z0cQ=
=80Qr
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to