XSL: how to add pictures referenced by product id in xml?
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 2
- Joined: Tue Jun 30, 2009 8:56 pm
XSL: how to add pictures referenced by product id in xml?
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?

Can I do all this using Oxygen XSL Editor?
-
- 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
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
-
- Posts: 2
- Joined: Tue Jun 30, 2009 8:56 pm
Re: XSL: how to add pictures referenced by product id in xml?
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
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
-
- 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
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service