[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: step-by-step work instructions -- recursiveapply-t

Subject: RE: step-by-step work instructions -- recursiveapply-templ ates to create html table
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Thu, 10 Apr 2003 11:52:52 -0400
examples of work instructions
Americo, thanks for additional explanation.

I still can't get the actual <step> element content to appear in the row
using your code...any hints?

Also, just so you don't think I'm TRYING, I'm on my third XSLT book...but I
can't find examples anywhere to match what I've been asking here.

Thanks again.  Kathy

-----Original Message-----
From: Américo Albuquerque [mailto:aalbuquerque@xxxxxxxxxxxxxxxx]
Sent: Thursday, April 10, 2003 10:34 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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:  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

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.