Page 1 of 1
XSL: how to add pictures referenced by product id in xml?
Posted: Tue Jun 30, 2009 9:09 pm
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?
Re: XSL: how to add pictures referenced by product id in xml?
Posted: Fri Jul 03, 2009 2:51 pm
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
Re: XSL: how to add pictures referenced by product id in xml?
Posted: Fri Jul 03, 2009 3:03 pm
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
Re: XSL: how to add pictures referenced by product id in xml?
Posted: Fri Jul 03, 2009 3:13 pm
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