Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to include content from another DCR or generated html file in a XSLT PT
gauri
Hi,
I am working on Teamsite 6.7.1 on unix. I am using XSLT-based presentation templates.
I am not able to resolve following issue. Pl. let me know if anyone has solution for this.
- I am creating a home page (html) that has main content
- Header and Footer are created as separate html pages (using separate set of DCT and PT). Header and footer are captured as html fragments.
- I want to include header and footer html fragments into the home page programatically by wtiring some code in the PT for home page.
Due to some technical constraints, I cannot use include statements for header and footer. I want to insert the html fragments directly into the home page output html file.
I could see some thread having the solution in Perl. But, I cannot use Perl-based PTs.
I could think of following options, but unable to get those work as I am new to XSLT PTs.
1) Read header and footer DCRs in XSLT PT for home page.
Tried using tag for including the DCRs. But, the DCRs do not have .xml extension. I have copied the xml file at the same location where the PT is present. But, unable to get it work.
2) Include generated htmls for header and footer into PT for home page
Not aware of how to do it using XSLT
3) Generate an xml output file for both header and footer and read that in the home page's XSLT template and retrieve the content.
Not able to get it work. I have copied the xml file at the same location where the PT is present. But, unable to get it work.
Pl. let me know if anyone has references to XSLT PT documentation and examples. (I have XSLT examples that are available in Teamsite installation )
Regards,
Gauri
Find more posts tagged with
Comments
There are no comments yet