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

multiple XML tags -> single output

Subject: multiple XML tags -> single output
From: Zack Brown <zbrown@xxxxxxxxxxxxx>
Date: Wed, 27 Dec 2000 14:55:53 -0800 (PST)
cliff andreas
Hi,

Please forgive the very basic question. I'm just getting started with XSL,
going through the online docs and specs and whatever I can find, but it is
slow going. I'm really enjoying
http://nwalsh.com/docs/tutorials/xsl/xsl/slides.html

I have an XML document that has something like this:

-----------------------------------
<title>A Name</title>

<misctags>stuff</misctags>

<issue num="10" date="2000/11/11"/>
------------------------------------

i.e. the <title> and <issue> tags are separated by other tags. My XSL file
currently contains something like this:

----------------------------------
    <xsl:template match="title">
        <h1>
            <xsl:value-of select="."/>
        </h1>
    </xsl:template>
----------------------------------

which outputs

--------------------------
        <h1>
            A Name
        </h1>
--------------------------

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>
--------------------------

I'm not quite sure how to do it.

Is this sort of question welcome? If so, I may have others...

Be well,
Zack

-- 
Zack Brown, Linuxcare, Inc.
tel: 1-415-354-4878x284, fax: 1-415-701-7457
zbrown@xxxxxxxxxxxxx, http://www.linuxcare.com/
Linuxcare. Support for the revolution.


 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.