Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML 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 October 23rd, 2008, 07:20 AM
Registered User
 
Join Date: Oct 2008
Location: chennai, tamilnadu, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HOW A TEXT CAN BE SUBSCRIPTED IN XML DOCUMENT?

I WANT TO DISPLAY MATHEMATICAL FORMULAS,WHICH INCLUDE MATHAMATICAL NOTATIONS LIKE "SIGMA" "DELTA" AND SO ON, AND ALSO SYMBOLS WITH SUBSCRIPTED TEXTS OR LETTERS,IN XML DOCUMENT.
    MY PROBLEM IS HOW CAN WE RENDER SUBSCRIPTED TEXTS IN XML DOCUMENT.
    FOR Eg.CONSIDER THE FORMULA SHOWN BELOW,IN HTML FORMAT.

    (SIGMA SYMBOL)Ali * Bli /Cli

    PLEASE,TELL HOW THIS CAN BE REPRESENTED IN XML DOCUMENT.
AND ALSO TELL ME HOW CAN A HORIZONTAL RULE BE DRAWN IN XML DOCUMENT


sundara rajan.d
Reply With Quote
  #2 (permalink)  
Old October 23rd, 2008, 08:02 AM
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

You can represent these things any way you like in XML - that's the whole point of XML. For example you could use <subscript>i</subscript> or <index>i</index>. Then your stylesheet controls how this is translated into a concrete rendition in HTML, XSL-FO, or whatever you are using as a display format.

However, rather than designing your own XML vocabulary, it's always better to use one that already exists, and I would have thought the best approach for you is to use the MathML vocabulary. The advantage of this is that you will be able to take advantage of existing software for authoring or displaying MathML. See http://www.w3.org/Math/

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
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
How to Get XML Document from iFrame rvanandel Ajax 6 April 10th, 2009 05:24 AM
document visualization with asp.net (oracle text connect2sandep ASP.NET 2.0 Professional 0 June 20th, 2006 02:26 PM
xml document androger XML 2 November 19th, 2003 05:52 PM
Writing an XML document Ben Horne XML 4 November 13th, 2003 12:22 PM



All times are GMT -4. The time now is 07:08 AM.


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