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
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
Comment