XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Joe RobeSubject: img relative path problem
Author: Joe Robe
Date: 11 Jan 2007 03:14 PM
Hi,

following the example of how to make a static page dynamic I assigned my image url as:

src="../ShowImage.aspx?{a:BasicPropertyInfo/a:VendorMessages/a:VendorMessage[@Title='ImageURL']/a:SubSection/a:Paragraph[1]/a:URL}

However when I transform the url is:

file:///C:/Programming/Webprojects/ReceptiveServices/ShowImage.aspx?ChoiceHotels&ImageID=6bf69a28-44a9-41b2-99fa-98f1bd51ea18

How do I get the correct relative URL instead of file://

I did set in the scenario manager the BaseURL for HTML resolution but it did not change anything

(it should be ../ShowImage.aspx?ChoiceHotels&ImageID=6bf69a28-44a9-41b2-99fa-98f1bd51ea18)

Joe



Posttop
Minollo I.Subject: img relative path problem
Author: Minollo I.
Date: 11 Jan 2007 04:28 PM
If your XSLT is creating a src attribute with value "../ShowImage.aspx?{a:BasicPropertyInfo/a:VendorMessages/a:VendorMessage[@Title='ImageURL']/a:SubSection/a:Paragraph[1]/a:URL}", that's what it will be created; there is no way your XSLT will change ../ in any other PATH.

Some further processing/interpretation of the XSLT result must be changing "../" into "file:///C:/Programming/Webprojects/ReceptiveServices/"

Maybe you can attach the XSLT+XML documents you are using to verify what's going on?

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.