XSLT 将 url 传递到不进行转义的 asp 页面到&,该怎么办?
我有一个问题, 我有一个从网站提供的 URL,格式为:
http://data.dezrez.com/PictureResizer.ASP?PropertyID=99999999&PhotoID=1&AgentID=9999&BranchID=9999& ;amp;width=750&rotation=0
然后我在使用返回代码的 XSL-FO 文件中使用,
<fo:external-graphic movie="auto" clip="auto" content-height="141mm"
content-width="188mm" content-y="0mm" content-x="0mm"
src="http://data.dezrez.com/PictureResizer.ASP?PropertyID=99999999&PhotoID=1&AgentID=9999&BranchID=9999&width=750&rotation=0"
width="188mm" height="113mm" scaling-method="resample-any-method"/>
但是 dezrez 的 ASP 页面无法识别 url,因为它无法理解 &
并将其转义为 &,我无法访问他们的 ASP 页面,需要知道如何处理它才能正常工作。
I have a problem,
I have a URL provided from a website in the form:
http://data.dezrez.com/PictureResizer.ASP?PropertyID=99999999&PhotoID=1&AgentID=9999&BranchID=9999&width=750&rotation=0
i am then using in an XSL-FO file which is using the return code
<fo:external-graphic movie="auto" clip="auto" content-height="141mm"
content-width="188mm" content-y="0mm" content-x="0mm"
src="http://data.dezrez.com/PictureResizer.ASP?PropertyID=99999999&PhotoID=1&AgentID=9999&BranchID=9999&width=750&rotation=0"
width="188mm" height="113mm" scaling-method="resample-any-method"/>
however the ASP page at dezrez is not recognising the url as it cannot understand the &
and escape it to &, I have not access to their ASP page and need to know how to approach it so that it will work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎没有 XSL 方法可以做到这一点,所以我不得不编写一个简单的 servlet,它对 url 进行转义,调用 url,将返回的图像保存为临时文件,并将保存的文件 url 返回到调用进程,如下所示一个 xml 片段
There doesnt seem to be an XSL way to do this, so I had to write a simple servlet which de-escapes the url, calls the url, saves the returned image as a temp file and returns the aved file url to the calling process as an xml snippet