XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 5th, 2003, 08:43 AM
todds21 todds21 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 todds21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question XSLT help with variable

Here is the XML that I am getting passed to me and what I need to do is be able to create 2 separate variables out of each ADORNMENT element.

<ATTRIBUTE_VALUE attribute_key="price adornment">
<PRICE_ADORNMENTS>
<ADORNMENT pos="position1" name="Price 1">299.99</ADORNMENT>
<ADORNMENT pos="position2" name="Price 2">500</ADORNMENT>
</PRICE_ADORNMENTS>
</ATTRIBUTE_VALUE>



I have created a variable called priceAdornment and am able to output the contents of the ADORNMENTS.....my output is 299.99 500.

<xsl:variable name="priceAdornment"><xsl:apply-templates select='ATTRIBUTE_VALUE[@attribute_key="price adornment"]/PRICE_ADORNMENTS'/></xsl:variable>



What I need to be able to do is create a variable for position1 name and value so that I have 2 differnt variable created that represent this element.

Can I create a variable that is populated with Price 1 and another tag poulated with 299.99?


Thanks

Reply With Quote
  #2  
Old August 5th, 2003, 05:39 PM
mrusaw's Avatar
mrusaw mrusaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Dallas, Texas
Posts: 138 mrusaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to mrusaw Send a message via Yahoo to mrusaw
No. Once you have set a variable's value, you cannot change or modify that value!

Try looking at using the <xsl:with-param>.
__________________
mr...

mike.rusaw@realpage.com
RalPage, Inc.

"I have made this letter longer than usual, only because I have not had the time to make it shorter." - Blaise Paschal

Last edited by mrusaw : August 5th, 2003 at 05:42 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XSLT help with variable


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway