You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by ajay bhadauria <ab...@yahoo.com> on 2011/03/22 16:57:45 UTC
How to create template object from list of XSLTs in Xalan
Hi,
As in the schema factory, we can get the schema object either using one source file or array of source files by using below APIs
schema newSchema( Source schema )
schema newSchema( Source [] schemas )
How do we get the template object from the array of sources (list of xslts) ? Is there a way to construct template object with list of xslts.
Regards
Ajay
Re: How to create template object from list of XSLTs in Xalan
Posted by Michael Ludwig <mi...@gmx.de>.
ajay bhadauria schrieb am 22.03.2011 um 08:57 (-0700):
>
> As in the schema factory, we can get the schema object either using
> one source file or array of source files by using below APIs
> schema newSchema( Source schema )
> schema newSchema( Source [] schemas )
You can load several schemas to build a big schema cache matching a
wide range of docs of different type. The schemas may or may not be
related to each other. You could possibly achieve the same thing by
using <xsd:import> and <xsd:include>.
> How do we get the template object from the array of sources (list of
> xslts) ? Is there a way to construct template object with list of
> xslts.
Don't know, but you can put lots of <xsl:import> and <xsl:include> in
your main stylesheet if you want to assemble a really big XSLT program
that will handle all kinds of stuff.
--
Michael Ludwig