IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

HTML <object> tag in user-defined element Options · View
micky
Posted: Tuesday, May 19, 2015 2:26:33 PM
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
vlad
Posted: Tuesday, May 19, 2015 4:50:02 PM
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' )
micky
Posted: Friday, May 22, 2015 8:00:37 AM
Rank: Advanced Member

Joined: 3/8/2011
Posts: 45
Thanks, Vlad.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.