|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re[2]: Advise on xsl usage producing very complex html
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@xxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








