<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic xsl:include in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045407#M421121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not entirely sure this is the right forum for this, but then, I'm not entirely sure there is a right forum for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a few XSLT transformations in SE80. All was going well until I realised that I had the same bit of header information in each one, so I decided to split that out and put it in an include, for maintainability's sake. So here's a couple of examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns="http://www.w3.org/1999/xhtml" version="1.0"&amp;gt;
  &amp;lt;xsl:output indent="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" encoding="iso-8859-1" method="xhtml"/&amp;gt;
  &amp;lt;xsl:template match="/"&amp;gt;
    &amp;lt;html xml:lang="en"&amp;gt;
      &amp;lt;xsl:include sap:name="ZXSL_INCLUDE"/&amp;gt;
      &amp;lt;body&amp;gt;
        &amp;lt;div/&amp;gt;
      &amp;lt;/body&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:sap="http://www.sap.com/sapxsl"
               xmlns="http://www.w3.org/1999/xhtml"
               version="1.0"&amp;gt;
  &amp;lt;xsl:output method="xml" encoding="iso-8859-1"/&amp;gt;
  &amp;lt;xsl:template match="/"&amp;gt;
    &amp;lt;head&amp;gt;
      &amp;lt;title&amp;gt;&amp;lt;xsl:value-of select="default/title"/&amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;script type="text/javascript" href="scripts.js" /&amp;gt;
      &amp;lt;link rel="stylesheet" href="default.css" type="text/css" media="all"/&amp;gt;
      &amp;lt;link rel="stylesheet" href="style.css" type="text/css" media="screen"/&amp;gt;
      &amp;lt;!--[if lte IE 7]&amp;gt;
        &amp;lt;link rel="stylesheet" type="text/css" href="ie7.css" /&amp;gt;
      &amp;lt;![endif]--&amp;gt;
      &amp;lt;!--[if lte IE 6]&amp;gt;
        &amp;lt;link rel="stylesheet" type="text/css" href="ie6.css" /&amp;gt;
      &amp;lt;![endif]--&amp;gt;
    &amp;lt;/head&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content of these is not important. The important bit is thus: the '&amp;lt;xsl:include sap:name="ZXSL_INCLUDE"/&amp;gt;' is documented as being supported in SAP Note 451631 and is detailed on help.sap.com as being used as I've described, yet when you do a syntax check it says "unsupported instruction 'xsl:include'", and when you test it, it just ignores the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know (a) if I'm doing something wrong, (b) if this is actually possible and (c) if it is how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2007 08:54:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-06T08:54:47Z</dc:date>
    <item>
      <title>xsl:include</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045407#M421121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not entirely sure this is the right forum for this, but then, I'm not entirely sure there is a right forum for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a few XSLT transformations in SE80. All was going well until I realised that I had the same bit of header information in each one, so I decided to split that out and put it in an include, for maintainability's sake. So here's a couple of examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns="http://www.w3.org/1999/xhtml" version="1.0"&amp;gt;
  &amp;lt;xsl:output indent="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" encoding="iso-8859-1" method="xhtml"/&amp;gt;
  &amp;lt;xsl:template match="/"&amp;gt;
    &amp;lt;html xml:lang="en"&amp;gt;
      &amp;lt;xsl:include sap:name="ZXSL_INCLUDE"/&amp;gt;
      &amp;lt;body&amp;gt;
        &amp;lt;div/&amp;gt;
      &amp;lt;/body&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:sap="http://www.sap.com/sapxsl"
               xmlns="http://www.w3.org/1999/xhtml"
               version="1.0"&amp;gt;
  &amp;lt;xsl:output method="xml" encoding="iso-8859-1"/&amp;gt;
  &amp;lt;xsl:template match="/"&amp;gt;
    &amp;lt;head&amp;gt;
      &amp;lt;title&amp;gt;&amp;lt;xsl:value-of select="default/title"/&amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;script type="text/javascript" href="scripts.js" /&amp;gt;
      &amp;lt;link rel="stylesheet" href="default.css" type="text/css" media="all"/&amp;gt;
      &amp;lt;link rel="stylesheet" href="style.css" type="text/css" media="screen"/&amp;gt;
      &amp;lt;!--[if lte IE 7]&amp;gt;
        &amp;lt;link rel="stylesheet" type="text/css" href="ie7.css" /&amp;gt;
      &amp;lt;![endif]--&amp;gt;
      &amp;lt;!--[if lte IE 6]&amp;gt;
        &amp;lt;link rel="stylesheet" type="text/css" href="ie6.css" /&amp;gt;
      &amp;lt;![endif]--&amp;gt;
    &amp;lt;/head&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content of these is not important. The important bit is thus: the '&amp;lt;xsl:include sap:name="ZXSL_INCLUDE"/&amp;gt;' is documented as being supported in SAP Note 451631 and is detailed on help.sap.com as being used as I've described, yet when you do a syntax check it says "unsupported instruction 'xsl:include'", and when you test it, it just ignores the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know (a) if I'm doing something wrong, (b) if this is actually possible and (c) if it is how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2007 08:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045407#M421121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-06T08:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: xsl:include</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045408#M421122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the reason is xsl:include cannot be inside a template move it above template it iwll be alright.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instea of&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:template match="/"&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;html xml:lang="en"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;xsl:include sap:name="ZXSL_INCLUDE"/&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:include sap:name="ZXSL_INCLUDE"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:template match="/"&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;html xml:lang="en"&amp;gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045408#M421122</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-03-08T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: xsl:include</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045409#M421123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Durairaj, I had actually worked it out for myself, but have some points anyway seeing as technically you were the first to answer the question &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 09:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsl-include/m-p/2045409#M421123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T09:45:31Z</dc:date>
    </item>
  </channel>
</rss>

