This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Advise on xsl usage producing very complex html


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]