|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL: Transform links and sources to an absolute UR
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






