Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2004, 01:33 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML Parsing error: require </META>

I am having a peculiar problem viewing a web page generated with XSLT with the Firefox browser.

I have the simplest of XSLT stylesheets.

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xap="entrust/xap/7.0">
  <xsl:output method="html" encoding="UTF-8"/>
  <xsl:template match="/">
    <html>
      <head>
        <title>This is the title</title>
      </head>
      <body>
        <h1>This is a header</h1>
        <h2>This is another header</h2>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

This XSLT is being run by a servlet. When the page is returned, I get the error "XML Parsing Error: mismatched tag. Expected: </META>."

If I view source, I see the following:

<html xmlns:xap="entrust/xap/7.0">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EMS Admin - POC</title>
</head>
<body>
<h1>EMS Admin - POC</h1>
<h2>About</h2>
</body>
</html>

Since this is HTML output, the unclosed META tag should be OK. If I save this HTML to a file, I can view it no problem.

I suspect this is a Firefox problem, but I thought I would check here to see if I am doing something wrong.

Thanks

Dave I
 
Old August 6th, 2004, 01:58 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Scratch that question. It was a problem with my particular browser installation, which was also showing peculiarities on other sites. I reinstalled Firefox and the error went away.

Thanks

Dave I






Similar Threads
Thread Thread Starter Forum Replies Last Post
<meta> tag is appearing in xml file saurabh_inblore XSLT 2 April 24th, 2006 11:56 PM
How to insert <META> tag using XSLT on client? Abdul Hameed XSLT 2 September 19th, 2004 12:24 PM
How to dynamically insert <META> tag in .HTML? Abdul Hameed Javascript 1 August 11th, 2004 10:03 AM
How to insert <META> Tag using XSLT on client Abdul Hameed XML 0 August 10th, 2004 11:34 PM
how to dynamically insert <META> tag in .html Abdul Hameed XSLT 1 August 10th, 2004 03:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.