xsl-list
[Top] [All Lists]

RE: step-by-step work instructions -- recursive apply-templ ates to create html table

2003-04-10 10:16:35
americo, please disregard my last post...I finally discovered I had some
empty templates at the bottom which were overriding yours...the code you
sent me is BEAUTIFUL...I am now an xml convert...

thank you, thank you!

Kathy

-----Original Message-----
From: Américo Albuquerque 
[mailto:aalbuquerque(_at_)viseu(_dot_)ipiaget(_dot_)pt]
Sent: Thursday, April 10, 2003 10:34 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] step-by-step work instructions -- recursive
apply-templ ates to create html table


Hi


-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Kathy Burke
Sent: Wednesday, April 09, 2003 8:04 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] step-by-step work instructions --
recursive apply-templ ates to create html table


I've added my actual source to the bottom. I've been studying
it, don't understand it all...but it is cool. Re: non step
childs, still trying to figure out WHERE to process them, for
example, I want to put any WCNs in the same row as the step
but with a bgcolor or different font, hrefs need to be a
link, etc. For now, I'm still trying to get all the elements
to show up where I need them.

You don't need a specific place to put your non step childs, just add the
needed templates to handle them and the xslt processor will do the rest.

To place to child on the same row you'll have to call their template
inside the same <tr>
   <table>
    <tr>
     <xsl:apply-templates select="step | WCN"/>
    </tr>
   </table>
  or
   <table>
    <tr>
     <xsl:apply-templates select="step"/>
     <xsl:apply-templates select="WCN"/>
    </tr>
   </table>

It will depend on what you are trying to do

I also recommend for you to read some books about xslt, the xslt list site
(http://www.mulberrytech.com/xsl/xsl-list/) has some nice recommendations
you might want to check



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



<Prev in Thread] Current Thread [Next in Thread>