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

Subject: RE: [xsl] step-by-step work instructions -- recursive apply-templ ates to create html table
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Thu, 10 Apr 2003 13:16:35 -0400
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@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 10, 2003 10:34 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] step-by-step work instructions -- recursive
apply-templ ates to create html table


Hi


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> Kathy Burke
> Sent: Wednesday, April 09, 2003 8:04 PM
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> 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


Current Thread