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)
Compnent XSL
work4u
I am creating a Header component and I have the header.html in my workarea under Includes folder. I would like to use <xsl:include> to include this html instead of having the html in the component itself.
Is this possible, I have tried a few ways but its not working.
Any pointers on how this can be accomplished?
Find more posts tagged with
Comments
AlexC
I would recommend an external that pulls in the HTML file data and inserts it into the component's XML model as CDATA, xsl:include is meant for inclusion of other xsl stylesheets.
New_Report_4.zip
Stokes
I've heard of
<xsl:include>
being used in components, like ones that share or reuse XSL code, so I know it can be done. Never done it myself. When you create a new component, doesn't it include some HTML templates by default? You might look at that and imitate.
If you want to go the Java external route, I've done that recently and could share the code.
Stokes.
reports (41).xls
vpatel
Good point. In the included XSL itself you could have your HTML -- its not necessarily what <xsl:include> is intended for but it is definitely doable.
Good workaround if you dont want to use Java External I guess. Having Java External has its benefits as well -- namely business can swap out the HTML files.
Jcse
Hi
The element is a top-level element that includes the contents of one style sheet into another.
Note:
This element must appear as a child node of or .
So,it is not a good way to include HTML using this , I would suggest to go for Java External As AlexC has suggested.
That would be the better way to do it.