I'm looking for a possibility of calling a second XSLT from first XSLT.
My XML input looks like
<xml>
<Subject name ="A1" type="a">
<Subject name ="B2" type="b">
<Subject name ="C1" type="c">
<Subject name ="A2" type="a">
<Subject name ="B1" type="b">
<Subject name ="C2" type="c">
<Subject name ="A3" type="a">
</xml>
What I want to do is something like
<xsl>
if type = "a" call "XSL_A" with above XML-Input
if type = "b" call "XSL_B" with above XML-Input
if type = "c" call "XSL_C" with above XML-Input
Do-Something with above XML-Input
<xsl>
Every "sub-xslt" shall take the complete input and do something with it, including creating a special named file.
As searching the web for a solution or a hint hasn't been successful. Is this possible to do? Or even sensible?