[Home] [By Thread] [By Date] [Recent Entries]
At 2009-03-04 13:35 +0100, Plew wrote:
Hello Which absolute URL? The ones from the image elements that are absolute, or the absolute URI of the XML file itself? to the relative path`s to prevent errors, when i`m generating HTML on my server with an xslt. Yes, if that is different than the absolute URI of the file itself. For any given node you in the source tree can get the absolute URI of the source base document in XSLT 2 using: document-uri( root( $node ) ) How can I dynamically add this to an src or href? resolve-uri( $relative-uri, $base-uri ) I hope this helps. . . . . . . . . . . . Ken -- 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
|

Cart



