Results 1 to 3 of 3

Thread: Display HTML in XSL Style Sheet

  1. #1
    Join Date
    Feb 2009
    Posts
    62

    Display HTML in XSL Style Sheet

    Hi,

    I am writing a stylesheet to get "anyname" to be filled in the input text field tag
    < input type="text" name="anyname" size="2"/>.

    How can it be done in stylesheet ? And also let me know How to Display HTML in XSL style sheet?

    Please help.

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: Display HTML in XSL Style Sheet

    Here is the XML file that we want to display...

    You may install the latest version of the MS XML parser from the following:
    http://msdn.microsoft.com/xml/default.asp

    • Run the Msxmlwr.exe file that you downloaded.
    • Run the Xmlinst.exe file that is saved under the Winnt\System32 folder.


    Code:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="testHTML.xsl"?>
    <TABLE>
       <ROW>
          <F1>Next one should be in H1 heading</F1>
          <F2><H1>This is a H1 heading</H1></F2>
       </ROW>
       <ROW>
          <F1>Next one should be Italic</F1>
          <F2><I>I am italic</I></F2>
       </ROW>
       <ROW>
          <F1>Next one is a link</F1>
          <F2>Goto <A HREF="http://www.microsoft.com">Microsoft</A></F2>
       </ROW>
    </TABLE>

  3. #3
    Join Date
    Oct 2008
    Posts
    167

    Re: Display HTML in XSL Style Sheet

    Try adding xsl:output (http://w3schools.com/xsl/el_output.asp)

    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" media-type="text/html"/>
    <xsl:template match="/">

Similar Threads

  1. How to remove HTML tags from Excel Sheet
    By Jaques Strapp in forum MS Office Support
    Replies: 3
    Last Post: 25-01-2012, 07:50 PM
  2. Cannot view XML input using style sheet
    By Frieda in forum Software Development
    Replies: 2
    Last Post: 03-12-2010, 04:55 AM
  3. Style HTML Elements With Specific Attributes
    By Bigga Lexx in forum Software Development
    Replies: 5
    Last Post: 02-02-2010, 04:45 AM
  4. How to create Good style sheet
    By JEROLD12 in forum Software Development
    Replies: 5
    Last Post: 25-12-2009, 11:51 PM
  5. How to change style sheet for iframe?
    By Jaishree in forum Software Development
    Replies: 2
    Last Post: 20-06-2009, 12:49 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,711,641,925.19480 seconds with 17 queries