xsl:include problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandra55
    New Member
    • Jun 2007
    • 13

    xsl:include problem

    Hi,

    I need to include different stylesheets in my stylesheet so that I can use their stylesheet. However, as soon as I have my stylesheets in different files, it does not work anymore. But they do work when they are implemented in the same file. So I think there is something wrong with the way I include the files or call them.

    This is how i do it:

    <?xml version="1.0"?>
    <xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>

    <xsl:include href="informati on.xsl" />

    <xsl:template match="/">
    <html>
    <body>
    <xsl:call-template name="informati on" />
    </body>
    </html>
    </template>

    ----------------------------------------------------------------------------------------
    Then in my information.xsl file I have:

    <?xml version="1.0"?>
    <xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>

    <xsl:template name="informati on">
    <p> ...implementati on here... </p>
    </xsl:template>
    _______________ _______________ _______________ _________

    Can anyone help me in this? It would be really appreciated.

    Sandra
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    What processor are you using to run these stylesheets? Are you using an internet browser?

    Comment

    • sandra55
      New Member
      • Jun 2007
      • 13

      #3
      I was using IE 6.0. But now it seems to work. I had to have at least one of the stylesheet implemented in the main stylesheet then the rest of the stylesheets would be included without any problem.

      Comment

      Working...