This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Advise on xsl usage producing very complex html
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Advise on xsl usage producing very complex html
- From: viewga <viewga at phreaker dot net>
- Date: Wed, 31 Jan 2001 14:31:06 +0200
- Organization: viewga sf
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello all,
I am facing a problem with very complex html formatting which must be
done in xsl. Maybe anyone have an advise on how to separate VERY
complex formatting apart from basic things alike inserting a value-of
node
example:
<!-- quite a very long html block -->
<table ...><tr><td><table ...><tr><td>
<!-- end of a very long html block -->
<xsl:value-of select="some" />
</...>
The first idea I found was to make a set of templates alike
<xsl:template name="tOurDesignersTable">
<xsl:param name="content" />
<!-- quite a very long html block -->
<table ...><tr><td><table ...><tr><td>
<!-- end of a very long html block -->
<xsl:copy-of select="content" />
</xsl:template>
and use like:
<xsl:call-template name="tOurDesignersTable">
<xsl:with-param name="content"><p><xsl:value-of select="some" /></p></xsl:with-param>
</xsl:call-template>
Maybe some other ideas exists ???
--
Best regards,
viewga mailto:viewga@phreaker.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list