This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Passing Parameters between stylesheets


You might find the "family tree" example in Chapter 9 of my "XSLT
Programmer's Reference" helpful.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Tanzila
> Mohammad
> Sent: 10 April 2001 16:47
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] Passing Parameters between stylesheets
>
>
>
> I am new to xsl, looking for a little help. I have 2 xsl files both
> representing a table in html. The first represents an
> intermediate output
> and the second more detailed information. The sample xml is
> as follows:
> <PersonRecord>
> 		<Name>----</Name>
> 		<EMail>----</EMail>
>             <ShortDescription>----</ShortDescription>
>             <Organisation>---</Organisation>
> 		<Position>----</Position>
>             <View>View</View>
> </PersonRecord>
>
> html output 1 displays a table as follows:
> name    email    view
> person1  ....    icon
> person2  ....    icon
> etc
>
> html output2 should be displayed when you click on a view icon for a
> particular person
>
> name   personx
> email   -----
> short description ----
> position  -----
>  etc...
>
> At the moment I have the code for the stylesheets but I am
> having problems
> with achieving output 2 without hardcoding it i.e.
> <xsl:for-each select="PersonRecord[Name='Freddie Johnnsen']">
> to get just
> Freddie's result.
>
> It is the passing of parameters via the icon to the new
> stylesheet in a
> generic way to produce the desired output which is problematic.
>
> Thanks
> Tanz
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]