Generating multi-part HTML with XSL?

P

Peter Caspers

Hi,

I have an XML-file out of which I generate a HTML-file with an XSL. It
seems that it is only possible to generate one single HTML-file and
not multiple files e.g. in order to distribute different chapters of a
book in their own *.html - files. Is that true or is there some way to
do that?

Thanks in advance! P.Caspers
 
J

Johannes Koch

Peter said:
Hi,

I have an XML-file out of which I generate a HTML-file with an XSL. It
seems that it is only possible to generate one single HTML-file and
not multiple files e.g. in order to distribute different chapters of a
book in their own *.html - files. Is that true

That is true for XSLT 1.0. It will probably change with XSLT 2.0
or is there some way to
do that?

Some XSLT engines (e.g. Saxon, Xalan) have an extension mechanism to do
what you want. Have a look at your XSLT engine's documentation.
 
D

Dimitre Novatchev

Peter Caspers said:
Hi,

I have an XML-file out of which I generate a HTML-file with an XSL. It
seems that it is only possible to generate one single HTML-file and
not multiple files e.g. in order to distribute different chapters of a
book in their own *.html - files. Is that true or is there some way to
do that?

Read about the exsl:document extension element and use it with an XSLT
processor, which implements this.


http://www.exslt.org/exsl/elements/document/index.html

AFAIK Saxon, libxslt and .Net EXSLT implement exsl:document (the .Net
implementation by Oleg Tkachenko requires XHTML output instead of HTML).


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top