[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

Subject: Re[2]: Advise on xsl usage producing very complex html
From: viewga <viewga@xxxxxxxxxxxx>
Date: Wed, 31 Jan 2001 16:01:08 +0200
cellpadding tr
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.