Plew
2009-03-04 12:35:27 UTC
Hello
this is my first post here, so i hope somebody can help me?
I have an XML file like this, with relative and absolute URL`s
<images>
<img src="Loading Image...
" alt="" width="800"
height="600" />
<img src="/test/bar.jpg" alt="" width="800" height="600" />
</images>
<links>
<a href="www.foo.de">...hi there</a>
<a href="/test/test.html">bar</a>
</links>
..and know I need a way to append the absolute URL to the relative
path`s to prevent errors, when i`m generating HTML on my server with an
xslt.
Whats the best way? Pass a parameter with the URL to the XSLT? How can I
dynamically add this to an src or href?
I`m using Saxon with XSLT 2.0.
greetings Stefan
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-***@lists.mulberrytech.com>
--~--
this is my first post here, so i hope somebody can help me?
I have an XML file like this, with relative and absolute URL`s
<images>
<img src="Loading Image...
height="600" />
<img src="/test/bar.jpg" alt="" width="800" height="600" />
</images>
<links>
<a href="www.foo.de">...hi there</a>
<a href="/test/test.html">bar</a>
</links>
..and know I need a way to append the absolute URL to the relative
path`s to prevent errors, when i`m generating HTML on my server with an
xslt.
Whats the best way? Pass a parameter with the URL to the XSLT? How can I
dynamically add this to an src or href?
I`m using Saxon with XSLT 2.0.
greetings Stefan
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-***@lists.mulberrytech.com>
--~--