Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2008, 03:30 PM
Registered User
 
Join Date: Nov 2008
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>

 
Old November 9th, 2008, 06:01 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
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
 
Old November 10th, 2008, 02:34 PM
Registered User
 
Join Date: Nov 2008
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.









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





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