Rank: Newbie
Groups: Registered
Joined: 5/7/2015(UTC) Posts: 7  Location: TOURS
|
All my images are in a global ressource folder, and path in an attribute of a xml-data-source...how can I call my image with a xpath/xquery expression, in the "Image Source" field of my control ?...It's seem to be easy, but... :-(
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 9/15/2014(UTC) Posts: 133  Was thanked: 18 time(s) in 18 post(s)
|
Hi X.MAQUET, Quote:...and path in an attribute of a xml-data-source If you have the full file path in an attribute, you can simply drag&drop the attribute from the XML-data-source onto the image control and it will be taken as "Image Source" url at runtime. Quote:how can I call my image with a xpath/xquery expression, in the "Image Source" field of my control ?... If you want to use an xpath/xquery expression as image url, you can select the "Image Source" property in the "Styles&Properties" window and press the "XPath" button in the toolbar of that window (instead of using the "..." beside the "Image Source" property to open the file dialog). Hope this help, but I'm not quite sure why you need the global resources. In case the described solutions are not enough and you additionally need global resources, please tell us a bit more what you would like to solve.
Altova MobileTogether Experts
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 5/7/2015(UTC) Posts: 7  Location: TOURS
|
Hi ! It's all right now !! I had a mistake in the path of my images...the image is contained in in folder named like the image (.../image.png/image.png)
My project : - my sources are made of xml files(for the text) and images, wich describe a specific contain - i want to transform my sources in a MTD solution, to show the contain on mobiles ; I want the contain persist on mobile, because the users will be out of network lots of time...
thanks a lot, and sorry for my english...mapped from french ;-)
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 9/15/2014(UTC) Posts: 133  Was thanked: 18 time(s) in 18 post(s)
|
Hi X.MAQUET,
For completeness: In case you want to combine global resource folders with XPath, you can do so by specifying an XPath, which evaluates to an Altova global resource URL, e.g.: XPath: "altova://folder_resource/AliasName/MyImage.png" where altova://folder_resource/ must be the prefix for folder resources and AliasName is the alias name of your global resource folder/base URL.
Altova MobileTogether Experts
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 5/7/2015(UTC) Posts: 7  Location: TOURS
|
Hi,
Can I use this, to load a default file in a data source ? :
"altova://folder_resource/FusilAssaut/$moduleUri/sp:module/@sc:refUri"
where "$moduleUri/sp:module/@sc:refUri" is an URL for my Global resource folder (ie : "FA_Fusil d'Assaut/module A/module_A.xml")
when I run the simulated workflow...all is crashed.
|
|
|
|
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.