XSLT multiple outputs using XSLT 1.0

Hello all,
I'm looking for a solution to pretty much the exact problem as described in XSLT Multiple Outputs question, but I'm restricted to xslt 1.0, preferably with no extensions.  My understanding is that result-document is a 2.0 addition.  Does anyone know of a solution that does not use any 2.0 features.

Thanks much.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gertone (Geert Bormans)Information ArchitectCommented:
THere are some extension functions that do the same, at least I know that saxon 6 allows this.
If you really don't want extension functions, all you are left with is running different stylesheets, or the same stylesheet with parameters until you have all the output documents.
So you will have to organise this outside your stylesheet.

Maybe there is an extension function for your processor... which one are you using?
levislAuthor Commented:
Thanks for the quick reply, Gertone.  We're using xalan 2.7.0, and I just confirmed that it's OK to use xalan extensions.  Do you know if xalan supports this?  If you don't know offhand, don't sweat it; I can certainly check that out.  Short answer is "for 1.0 if supported by extensions can use them, otherwise need to handle with multiple stylesheets or with multiple calls to stylesheet using parameters." Is that pretty much right?
Gertone (Geert Bormans)Information ArchitectCommented:
that is pretty much right,
but multiple stylesheets will be complicated (I checked the original question... it would be a fun task)

Having said that, Xalan is OK, it has xalan:write for you

add this namespace and attribute
in the xsl:stylesheet element

and then you can simply use

        <xalan:write file="filename.html">
or make the filename dynamic with attribute value templates
       <xalan:write file="{$myVariable}">

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
levislAuthor Commented:
Thanks,  I'll try that approach and post more questions if I have them.
Gertone (Geert Bormans)Information ArchitectCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.