Results 1 to 4 of 4

Thread: How to make the XML to XHTML Transformation

  1. #1
    Join Date
    Jan 2009
    Posts
    48

    How to make the XML to XHTML Transformation

    Hi,

    Can any one suggest me what all things I have to consider while transforming the content from the XML to XHTML and if also possible please provide me the example or Two.

    Thanks in Advance.

  2. #2
    Join Date
    Mar 2008
    Posts
    258

    Re: How to make the XML to XHTML Transformation

    Extensible Stylesheet Language Transformation (XSLT), a powerful language for working with data in Extensible Markup Language (XML) documents.Extensible Stylesheet Language Transformation (XSLT) is a powerful language for manipulating the data in Extensible Markup Language (XML) documents. To manipulate the data - in other words, to transform the XML document - you use an XSLT stylesheet, which contains the rules you've set up for transforming an XML document.

  3. #3
    Join Date
    Oct 2008
    Posts
    167

    Re: How to make the XML to XHTML Transformation

    Below I show you a simple XHTML input document and an XSLT stylesheet to transform it to a new XHTML document. In this example we want to keep everything in the input document but we also want to add a CSS stylesheet to the head section and a navigation menu to the top of the body section.

    Code:
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> [2]
    <html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
      <head>
        <title>Test document</title>
      </head>
      <body>
        <h1>Test document</h1>
        <p>This paragraph indicates the rest of the document.</p>
      </body>
    </html>

  4. #4
    Join Date
    Jan 2009
    Posts
    48

    Re: How to make the XML to XHTML Transformation

    That's awesome, now I wish I didn't take the day off today. So you are saying importNode will make it so when I append the xml node, which is xhtml, it will treat it as html and display properly in the page? If so, that's gonna make things way easier.

Similar Threads

  1. JKsf and xhtml
    By Sargam in forum Software Development
    Replies: 5
    Last Post: 23-07-2010, 06:09 AM
  2. Don't know about the advantages of XHTML
    By Sarfaraj Khan in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 01:43 PM
  3. How to use List in XHTML
    By Gyan Guru in forum Guides & Tutorials
    Replies: 2
    Last Post: 03-07-2009, 02:14 PM
  4. How to make the operator of the type of transformation?
    By Damin in forum Software Development
    Replies: 5
    Last Post: 13-01-2009, 11:02 PM
  5. Differences between XHTML and PHP
    By JTD in forum Software Development
    Replies: 1
    Last Post: 22-11-2008, 02:42 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,252,854.94994 seconds with 17 queries