This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: multiple XML tags -> single output
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] multiple XML tags -> single output
- From: zbrown at linuxcare dot com
- Date: Wed, 27 Dec 2000 15:58:11 -0800
- References: <008801c0705c$7915fc40$7847000a@kmccarthy.corp.drugstore.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Wed, Dec 27, 2000 at 03:26:43PM -0800, Kevin McCarthy wrote:
> >What I'd like is to also use information from <issue> in that output, so as
> >to get something like
> >
> >-------------------------
> > <h1>
> > A Name #10 For 2000/11/11
> > </h1>
> >--------------------------
>
> Hey Zach,
>
> I think you'd want to do something like this:
>
> <xsl:template match="title">
> <h1>
> <xsl:value-of select="."/><xsl:value-of select="issue/@num"
> /><xsl:value-of select="issue/@date" />
> </h1>
> </xsl:template>
Hmm, I actually tried that first, and it didn't work. Maybe the <issue> tag
needs to be processed first somewhere?
Zack
>
>
> -Kevin
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
--
--
Zack Brown, Linuxcare, Inc.
tel: 1-415-354-4878x284, fax: 1-415-701-7457
zbrown@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list