Subject: Re: [xsl] XSL: Transform links and sources to an absolute URL From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 04 Mar 2009 07:49:34 -0500 |
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="http://www.foo.de/test/bar.jpg" 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?
-- XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL: Transform links and sour, Plew | Thread | Re: [xsl] XSL: Transform links and , David Carlisle |
[xsl] XSL: Transform links and sour, Plew | Date | Re: [xsl] XSL: Transform links and , David Carlisle |
Month |