[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Advise on xsl usage producing very complex html


Subject: [xsl] Advise on xsl usage producing very complex html
From: viewga <viewga@xxxxxxxxxxxx>
Date: Wed, 31 Jan 2001 14:31:06 +0200

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@xxxxxxxxxxxx




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread