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

RE: applying template in different context

Subject: RE: applying template in different context
From: Marco.Mistroni@xxxxxxxxx
Date: Mon, 13 Sep 1999 14:09:25 +0300
different context
hi,
	i am currently working so i do not have the time to go thru this,
but if you want and advice, in the role tag don't do like 
<role id="pm">
and for the next
<role ce="">

but use a <role> tag which has an attribute called "id" which identifies the
role, so it's simpler...
br
	marco

> -----Original Message-----
> From: EXT Peter-Paul Koch [mailto:ppk@xxxxxxxxxx]
> Sent: 13. September 1999 13:01
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: XSL: applying template in different context
> 
> 
> 
> Hello,
> 
> I'm currently writing my very first XML/XSL page for 
> displaying a file in
> which
> information is gathered about several tasks in a process of designing
> mechanical components. 
> 
> Provisional version: http://www.netlinq.nl/interest/xml/interest.xml
> 
> I have invented an element <task> which contains various data
> fields about the task. I have also a <role> element which 
> contains data
> about the roles in this process (project manager, chief 
> engineer etc., the
> data is their names, email etc.).
> 
> I have written a separate <xsl:template> to display this role 
> information.
> 
> I'm now writing the <xsl:template> for displaying the tasks. 
> Each <task>
> has a <supervisor> and a <performer>, which are roles. My 
> problem is that I
> want to include the complete output of the stylesheet for the 
> correct roles
> in the stylesheet for the task and I can't find out how to do it.
> 
> In the style sheet I'm messing about with <task> and its 
> children, so my
> currentNode is always a <task> or a lower data element. 
> 
> I've now written a script that can read out a single element 
> from a <role>
> (the name), but what I really want to do is take the correct <role> as
> currentNode, apply the template, then revert to the <task> for the
> remainder of
> the task template.
> 
> Is this at all possible? If so, how?
> 
> Also: I can't seem to access the HTML document properly through 
> 
> document.all['div-name'].style 
> 
> Am I required to use the new DOM? Simple HTML pages in IE5 
> can use the old
> IE4 DOM.
> 
> Thanks for any information, and please remember I'm only a beginner so
> don't use too many complex terms. <grin>
> 
> ppk
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.