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

RE: a question

Subject: RE: [xsl] a question
From: cknell@xxxxxxxxxx
Date: Thu, 04 Nov 2004 11:45:37 -0500
RE:  a question
The precise form of the XPath depends on the document context from which you invoke it.  Let's assume that your document's root element is <lists></lists> and that all the <elementlist></elementlist> are its direct descendants. In this case, 
<xsl:value of select="/lists/elementlist[key='aktif']/value[1]/e" /> will return "KASA".
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Osman Ginar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Sent:     Thu, 4 Nov 2004 18:27:29 +0200
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  [xsl] a question

hi,

i am a newbie on this list. i work with FOP and i must prepare an XSL file for my XML file. My XML file contains two elements with different keys, i.e.:

 <elementlist xsi:type="java:org.exolab.castor.mapping.MapItem">
  <key xsi:type="java:java.lang.String">aktif</key> 
 <value xsi:type="java:com.oreilly.hh.QueryTestXML$XMLDovizElement">
  <a>17100</a> 
  <b>746.00</b> 
  <c>010</c> 
  <d>17130900000.00</d> 
  <e>KASA</e> 
  <f>74854930157246.00</f> 
  <g>1</g> 
  <h>1</h> 
  </value>
     <value>
    .
    .
    .
    </value>

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.