Results 1 to 2 of 2
  1. #1
    mtz1406 is offline Member
    Join Date
    Aug 2008
    Location
    Riyadh - Saudi Arabia
    Posts
    15
    Rep Power
    0

    Default how set xxx.xsl file to transform the xml file in client-side

    hi
    I wrote a servlet that out an xml file.Now I want to set the xxx.xsl file to transform the xml file in client-side[browser].
    just i want to add the bold tag:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" herf="xxx.xsl"?>
    <page>
    </page>
    how?

  2. #2
    Aseem is offline Senior Member
    Join Date
    Mar 2009
    Location
    USA
    Posts
    127
    Rep Power
    0

    Default

    In order for xslt file to display in browser, first time you have to do include stylesheet type and href in XML file, the way u have done.(check herf spelling..shd have been href).
    Then, create a Xslt file and using the match attribute in XSLT file,
    u can display the things u want from XML. U can choose the elements u want from entire XML and display it.

Similar Threads

  1. How to open a file located in server from client side
    By Malathi in forum Web Frameworks
    Replies: 4
    Last Post: 04-20-2009, 10:10 PM
  2. Replies: 2
    Last Post: 10-05-2008, 07:13 PM
  3. Replies: 0
    Last Post: 11-14-2007, 06:30 AM
  4. jsp program for client side printer to print these 2 strings on 3/3
    By for453 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-07-2007, 05:42 PM
  5. Replies: 6
    Last Post: 07-18-2007, 04:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •