Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 8th, 2008, 03:30 PM
Registered User
 
Join Date: Nov 2008
Location: Lahore, , Pakistan.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solve Linear Equation in XSLT

Hi XML gurus

 I want to know how to solve linear equations using XSLT. I am sending you sample XML below. Please help me or send me link to solve it in XSLT. I want to write XSLT that solves linear equation.



<?xmlversion=”1.0”encoding=”UTF#8722;8”? >
<linearEquationxmlns:xsi=”http://www.w3.org/2001/XMLSchema#8722;instance”
xsi:noNamespaceSchemaLocation=”>
<LHS>
    <row>
        <entry value=”0.0” />
        <entry value=”1.0” />
    </row>
    <row>
        <entry value=”1.0” />
        <entry value=”2.0” />
    </row>
</LHS>
<RHS>
    <entry value=”5.3” />
    <entry value=”2.8” />
</RHS>
</linearEquation>

Reply With Quote
  #2 (permalink)  
Old November 9th, 2008, 06:01 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

This list might be a good place for meeting XML experts, but I don't think you can assume that every XML expert knows how to solve linear equations. I think I once knew, but that was about 40 years ago, and it's not a skill you retain if you don't use it.

If you can tell us the rules you want your transformation to obey, then perhaps we can show you how to express these in XSLT.

It's probably worth studying Dimitre Novatchev's work on FXSL.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
Reply With Quote
  #3 (permalink)  
Old November 10th, 2008, 02:34 PM
Registered User
 
Join Date: Nov 2008
Location: Lahore, , Pakistan.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Hi

 Thank you so much for your reply. Actually I want to write an XSLT stylesheet that solves linear equations using the LUP decomposition method (Thomas Cormen, Charles Leiserson and Ronald
Rivest, Introduction to Algorithms MIT 1994), pp. 749 ).

I already send you the sample XML which i want to convert. Please help me i urgently need some hints, links, clues how to do it. I am good in XML, XSLT and related technology but this linear equation thing is something i have never done before. Looking for quick reply.




Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Adding PHP to the Equation" Gregorio BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 July 5th, 2006 08:59 PM
non-linear y-axis scale for stock charts Alseikhan Excel VBA 0 March 28th, 2006 01:54 PM
Linear programming problem milk_vanilla Excel VBA 5 August 25th, 2005 09:06 AM
Chapter 1 - Adding PHP to the Equation Chudz BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 June 27th, 2005 06:21 PM
Chapter 1 - Adding PHP to the Equation Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 7 June 22nd, 2005 11:32 AM



All times are GMT -4. The time now is 01:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.