Wrox Programmer Forums > XML > XSLT Converting "TEX" equations in XML to HTML or XHTML
 Register | FAQ | Members List | Calendar | 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 .
November 2nd, 2011, 01:43 AM
Registered User
 Points: 54, Level: 1
 Activity: 0%

Join Date: Nov 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Converting "TEX" equations in XML to HTML or XHTML

Hi,

I am new to this forum. I am facing challenge in converting TEX equations in my source XML to Word Document using XSLT.

My XML is as below:

<EquationSource Format="TEX"><![CDATA[$$\sum\nolimits_{f \in F} {} \sum\nolimits_{g \in F} {{w_{fg}}\left\| {{{\bf{x}}_g} - {{\bf{x}}_f}} \right\|}$$]]></EquationSource>

My expected output is :
http://i42.tinypic.com/35izz8o.jpg

As i am not able to copy the equation here, uploaded in tinypic site with image.

November 2nd, 2011, 05:26 AM
Wrox Author
 Points: 18,274, Level: 58
 Activity: 100%

Join Date: Apr 2004
Posts: 4,932
Thanks: 0
Thanked 282 Times in 277 Posts

You will need to either write or integrate a parser for TEX equations. I wouldn't attempt to write one unless you know the subject extremely well, which I suspect you don't, or you wouldn't be posting here. A quick google showed some interesting lines to pursue, for example

http://tex.stackexchange.com/questio...he-tex-engines
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are Off

 Similar Threads Thread Thread Starter Forum Replies Last Post Converting normal text to UTF values using "character map" ROCXY XSLT 1 June 8th, 2011 02:43 PM MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 02:22 AM Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 05:56 AM

All times are GMT -4. The time now is 04:53 PM.