How to dynamically call different xsl file?

boatsonline

New Member
I have three working xsl files, now I simply want to make them work together.Suppose my three xslt are \[code\]cham1.xsl, cham2.xsl, cham3.xsl\[/code\] and my source input \[code\]source.xml\[/code\]. In the top table node of the input, there is an attribute \[code\]outputclass\[/code\]:\[code\] <root outputclass="cham1">\[/code\]What I want is how could I write another stylesheet, that whenever, the \[code\]@outputclass\[/code\] is \[code\]cham1\[/code\], then call \[code\]cham1.xsl\[/code\], if \[code\]@outputclass='cham2'\[/code\], then apply \[code\]cham2.xsl\[/code\] on the source.Wonder if this is feasible in xslt? Thanks!
 
Back
Top