• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

XHTML and XSLT

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the difference between XHTML and XSLT ?
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XHTML is purely HTML4.01 rewritten to make HTML documents well formed XML documents.
XSLT is a language to transform XML trees to different XML trees and possibly different rendering outputs e.g. aural, PDF (via XSL-FO) or mobile devices.
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More specifically, XHTML 1.0 is HTML 4.0 in XML. XSLT, on the other hand, is a programming language that transforms XML documents into other documents, whether they are XML, HTML, or text.
XSL Formatting objects (XSL-FO, or simply XSL) is an entirely different animal: it is a markup language for the description of document layouts. You can think of it as Postscript without the programming primitives. It is almost like PDF but of course it is not a final format. PDF is a final format for documents; documents in a final format are not supposed to change much.

------------------
Khun Yee Fung
Author of XSLT: Working with XML and HTML
 
Khun Yee Fung
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot to mention that after you have generated an XSL document, you still have to render it into something much smaller in size. In other words, you want to render the XSL file into a document using a final format (e.g., PDF, PS, ASCII, HTML).
This is analogous to rendering SVG documents into GIF or JPEG images when you have to transmit the images described by the SVG documents over a network.

------------------
Khun Yee Fung
Author of XSLT: Working with XML and HTML
 
lakshmi pramod
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the explanations .
What is Xpath ?
Is XPath and XSLT similar in the sense they have the same purpose or are they complementary to each other?
 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by lakshmi pramod:
Thank you for the explanations .
What is Xpath ?
Is XPath and XSLT similar in the sense they have the same purpose or are they complementary to each other?


XPath: XPath processor is to locate elements in the XML file by path name.
There are a number of free XML parsers as u can run from the command line: Xalan, XT, XML4J, Saxon etc they all serve same purpose, transforming XML document into other document.
So Xpath and XSLT are different.
Hope this helps...
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Help on Xpath

Anil
 
straws are for suckers. tiny ads are for attractive people.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic