XSL: how to add pictures referenced by product id in xml?

Here should go questions about transforming XML with XSLT and FOP.
BertG
Posts: 2
Joined: Tue Jun 30, 2009 8:56 pm

XSL: how to add pictures referenced by product id in xml?

Post by BertG »

Hi! We need to create a HTML preview for translating a complicated catalog with hundreds of pictures. The source is xml, we even have a .xsl. But the .xsl does not display the pictures (which we also have). The xml contains the product ids, the picture file names correspond to the product id. Is there a way to map the product ids to the file names and display the pictures within the rendering loop? Additional requirement: the path to the image files should be relative to the xml location as we cannot expect the translators having the same folder structure (this is the easiest task :)
Can I do all this using Oxygen XSL Editor?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XSL: how to add pictures referenced by product id in xml?

Post by sorin_ristache »

Hello,

Oxygen XSL Editor can help you with developing an XSLT stylesheet that generates the HTML pages for viewing the images from the XML source file. The XSL editor provides help for writing the stylesheet and the XSLT debugger which contains both a Text preview output view and an XHTML preview output view helps you to debug runtime problems of the XSLT stylesheet. The location of the image files is not important as long as the image file paths inserted in the result HTML files are correct (relative paths or full paths).


Regards,
Sorin
BertG
Posts: 2
Joined: Tue Jun 30, 2009 8:56 pm

Re: XSL: how to add pictures referenced by product id in xml?

Post by BertG »

Hello Sorin,

Thank you very much for these guidelines! For me the most important thing was to know that such things are possible at all and whether Oxygen supports this. I do not have time to try this out immediately but it sounds logical and understandable. If there are still open issues I will post them here.

Kind regards,
Bert
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XSL: how to add pictures referenced by product id in xml?

Post by sorin_ristache »

You may want to check out the XSLT Input view which helps you to insert quickly in the XSLT stylesheet correct and context dependent XPath expressions and the video demonstration for the XSLT debugger.


Regards,
Sorin
Post Reply