Link to home
Start Free TrialLog in
Avatar of jdharsha
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.FileOutputStream" 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>
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial