jdharsha
asked on
Xsl import
Hello,
I am trying to pick appropriate xsl based on certain condition...following is what I was trying to achieve that and was running into an error. The following might not be a way to do this but I hope I'm able to convey the idea here.
Thanks,
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" xmlns:fos="java.io.FileOut putStream" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:choose>
<xsl:when test="CONDITION">
<xsl:import href = "first.xsl"/>
</xsl:when>
<xsl:otherwise>
<xsl:import href = "second.xsl"/>
</xsl:otherwise>
</xsl:choose>
</xsl:stylesheet>
I am trying to pick appropriate xsl based on certain condition...following is what I was trying to achieve that and was running into an error. The following might not be a way to do this but I hope I'm able to convey the idea here.
Thanks,
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" xmlns:fos="java.io.FileOut
<xsl:choose>
<xsl:when test="CONDITION">
<xsl:import href = "first.xsl"/>
</xsl:when>
<xsl:otherwise>
<xsl:import href = "second.xsl"/>
</xsl:otherwise>
</xsl:choose>
</xsl:stylesheet>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.