This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re[2]: Advise on xsl usage producing very complex html
- To: David Carlisle <xsl-list at lists dot mulberrytech dot com>
- Subject: Re[2]: [xsl] Advise on xsl usage producing very complex html
- From: viewga <viewga at phreaker dot net>
- Date: Wed, 31 Jan 2001 16:01:08 +0200
- Organization: viewga sf
- References: <19897860536.20010131143106@phreaker.net><200101311309.NAA17940@nag.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello David,
The problem is that design is made by someone else (design agency) and
when I try to breath life into it I have a messed up xsl with lots of
tables etc ... which is hard to write, test, debug and in future will
be hard to manage. So I want to use some kind of ColdFusion like
templates, hiding design tricks from xsl providing functional
implementation. But thats itself a tricky way cause if in CF one can
write a template which will be used as
<cf_mytemplate param1="val1">content</cf_mytemplate>
in xsl it will be
<xsl:call-template name="mytemplate">
<xsl:with-param name="param1" select="val1"/>
<xsl:with-param name="content">Content</xsl:with-param>
</xsl:call-template>
which is far longer and less readable if compared.
So ... maybe other ideas exists ???
Wednesday, January 31, 2001, 3:09:27 PM, you wrote:
DC> Probably. But you'd have to give some hint about what your input looked
DC> like and what your output should look like.
Don't really understand how this can help, but ... anyway
xml :
<root>
<!--
Wellformed xml coming from java classes, generated from RDBMS
-->
<uid>viewga</uid>
<pwd>****</uid>
<uinfo>
<name>viewga</name><age>who cares</age>
</uinfo>
</root>
result:
<table width, height, bgcolor, cellspacing, cellpadding><tr valign, bgcolor><td>
<table width, height, bgcolor, cellspacing, cellpadding><tr valign, bgcolor><td>
<table width, height, bgcolor,cellspacing,cellpadding>
<tr valign, bgcolor><td valign, bgcolor,align>viewga<!-- xsl:value-of
select="/root/uid" --></td></tr></table></td></tr></table>
and looklike html for rest of nodes
--
Best regards,
viewga mailto:viewga@phreaker.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list