include html file in xslt presentation template
Hi All,
xslt + DCR --generates : footer.html
xslt+ DCR -- generates : header.html
I want to include html files (header.html and footer.html ) in xslt presentation template + DCR (provides the center content) to generate the o/p html file having both header, footer and center content in the HTML o/p.
Please let me know how to get this done in teamsite (formpublisher).
thanks
Comments
-
I never tried it. But use google and see if you can do it
http://stackoverflow.com/questions/5976343/insert-external-file-content-as-html-through-xslt
0 -
try this
<xsl:comment>#include virtual="/directory/included.html"</xsl:comment>
0 -
Can you post your xsl code in short? what's the xslutput?0
-
xsl code ....
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:iw-association="com.interwoven.ui.formspub.utils.AssociationManager"
extension-element-prefixes="iw-association">
<xslutput method="html"/><xsl:template match="/">
<link rel="stylesheet" type="text/css" href="/assets/css/mssb.css"/>
<div class="mb_logo">
<a id="lnkLogo" href="https://google.com/">
<img src="/assets/images/mb_logo.gif" alt="google"
title="google" border="0" /></a>
</div><xsl:apply-templates select="General/generic"/>
<div id="footer">
<span id="contentFooterHtml">
<xsl:comment>#include virtual="/html/footer/cfooter.html" </xsl:comment>
</span>
</div>
</xsl:template><xsl:template match="generic">
<xsl:if test="Headers!='' or header!=''">
<xsl:for-each select="Headers">
<xsl:choose>
<xsl:when test="header-type='header1'">
<div id="pageheader">
<h1><xsl:value-of select="header" disable-output-escaping="yes"/></h1>
</div>
</xsl:when>
<xsl:when test="header-type='header2'">
<h2><xsl:value-of select="header" disable-output-escaping="yes"/></h2>
</xsl:when>
<xsl:when test="header-type='header3'">
<h3><xsl:value-of select="header" disable-output-escaping="yes"/></h3>
</xsl:when>
<xsl:when test="header-type='header4'">
<h4><xsl:value-of select="header" disable-output-escaping="yes"/></h4>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:if><xsl:if test="Paragraphs!='' or paragraph!=''">
<xsl:for-each select="Paragraphs">
<p class="bodytext">
<xsl:value-of select="paragraph" disable-output-escaping="yes"/></p>
</xsl:for-each>
</xsl:if></xsl:template>
</xsl:stylesheet>
0 -
Hi, I suppose it is possible now unless xslt parser in TeamSite can parse the HTML tags.
Below link by Microsoft for reference:
0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 146 General Questions
- 136 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 912 Cloud Fax and Notifications
- 82 Digital Asset Management
- 9.3K Documentum
- 30 eDOCS
- 173 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 6 XM Fax
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.