Question

I've previously processed XSLT to output single HTML files that were supposed to be viewed in a browser.

Now I was hoping if someone could outline would it be possible to use XML data and XSLT to create separate image files auto magically?

Was it helpful?

Solution

If your XSLT processor supports EXSLT, the exsl:document element will allow you to create multiple output files from a single input file.

AFAIK, only libxslt-based processors support this tag, currently, but this includes PHP 5 and, of course, xsltproc.

EDIT:

As you've found, XSLT 2.0 provides the similar xsl:result-document tag. The XSLT 2.0 processors I'm aware of are Saxon, Altova XML, and Gexslt/Gestalt.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top