|
Rank: Advanced Member
Joined: 3/8/2011 Posts: 45
|
Hi all,
I have following directory structure
d:/reports/report.html d:/reports/extra_data/diagram1.pdf
What I'm trying is to embed PDF diagram inside HTML report using <object> tag.
Withing StyleVision template I'm trying to do it using user-defined element : object data="extra_data/diagram1.pdf" height="500" type="application/pdf" width="500"
The problem is that above working only if I use full path i.e. object data="d:/reports/extra_data/diagram1.pdf" height="500" type="application/pdf" width="500"
I would prefer using relative path though. I don't know how get current OS directory (d:/reports/) and concat 'extra_data/diagram1.pdf' .
Is there any other solution?
Thanks
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
There is an XPath function resolve-uri which should do the thing:
resolve-uri( 'extra_data/diagram1.pdf' )
|
|
Rank: Advanced Member
Joined: 3/8/2011 Posts: 45
|
Thanks, Vlad.
|
|
guest |