Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Feb 2008
    Posts
    1
    Member #
    16447
    Hi friends,
    How do I test a XML/xslt file?
    I am a new person to learn XML/xslt. I copied files from book and try to open it.
    But I got message as
    The XML page cannot be displayed

    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. Invalid at the top level of the document. Error processing resource 'file:///C:/JXML.xml'. Line 1, Position 39
    <?xml version="1.0" encoding="UTF-8"?>***************I save XML in local.<?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="test/xml" href="jim.xsl"?>
    <pets>
    <pet type="cat">Max</pet>
    <pet type="parrot">Peter</pet>
    <color>red</color>
    </pet>
    </pets>and jim xslt file as
    <?xml version="1.0" encode="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/Transform">
    <xsl:template match="pet">This is my pet.</xsl:template>
    </xsl:stylesheet>


    Thanks for any help!

    JImmy

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:52 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com