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

Re: SimpleProblem

Subject: Re: SimpleProblem
From: "sanjeev ramachandra" <sanjeev_scifi@xxxxxxxxxxx>
Date: Sun, 26 Mar 2000 18:09:27 CST
Re: SimpleProblem
Eric,

Thanks a lot!! it worked.

I basically have a very big xml structure and that confused me a lot while accessing the values.

Ur help is really appreciated.

Sanjeev



From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: SimpleProblem
Date: Mon, 27 Mar 2000 00:01:13 +0200

Hi,

I hope it's what you mean ;=) but...

-------------- XML --------------
<doc>
<A>
  <B>
    <C>LASTNAME</C>
  </B>
</A>

<AA>
  <BB>
   <CC>MIDDLENAME</CC>
  </BB>
</AA>

<AAA>
  <BBB>FIRSTNAME</BBB>
</AAA>
</doc>
-------------- XSL --------------

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<xsl:variable name="lastname" select="string(/doc/A/B/C)"/>
<xsl:variable name="middlename" select="string(/doc/AA/BB/CC)"/>
<xsl:variable name="firstname" select="string(/doc/AAA/BBB)"/>
<xsl:value-of select="concat('YOURNAME:', $firstname, '-', $middlename,
'-', $lastname)"/>
</xsl:template>

</xsl:stylesheet>
-------------- Result --------------
YOURNAME:FIRSTNAME-MIDDLENAME-LASTNAME


Eric -- ------------------------------------------------------------------------ Eric van der Vlist Dyomedea http://xmlfr.org http://ducotede.com http://dyomedea.com ------------------------------------------------------------------------


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

______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com


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.