A simple version of what I have it this:
Code:
<xsl:variable name="generic-common-xsd" select="document('../XSD/Common/NMIE-Generic-Common.xsd')"></xsl:variable>
<!-- Do some processing in the root XML document, then at some point
I need to process something in the other XML document -->
<xsl:element name="Value">
<xsl:apply-templates select="$generic-common-xsd/xs:simpleType[@name='$TypeVal']" mode="Type"></xsl:apply-templates>
</xsl:element>
<xsl:template match="xs:simpleType" mode="Type">
<xsl:element name="Domain"></xsl:element>
</xsl:template>
Basically, for ease of re-use, I have separated my schemas across multiple files.
What I have above is not working.
Is this even possible?
------------------------
GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876
Michael Hare