Hi
This error comes when the XML being loaded doesn't have valid XML and
has some data which is not enclosed between tags.
You have not given the contents of your XSL file.
May be the problem is there.

Thanks & Regards
Gurvinder Singh
Development Expert - Amdocs Cyprus
+357.2588.6917 (desk)
+357.2588.6920 (fax)

AMDOCS > INTEGRATED CUSTOMER MANAGEMENT

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Edward King
Sent: Wednesday, September 07, 2005 10:15 AM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: org.xml.sax.SAXParseException:Content is not allowed in prolog.

I have follow code,but it raise error in IE page:
java.lang.NullPointerException
org.apache.taglibs.standard.tag.common.xml.TransformSupport.doEndTag(Tra
nsformSupport.java:195)

and raise error in Tomcat5.59:
org.xml.sax.SAXParseException:Content is not allowed in prolog.


rolodex.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<rolodex>
   <contact>
      <firstName>Anna</firstName>
      <lastName>Keeney</lastName>
      <company>BSC, Inc.</company>
      <email>[EMAIL PROTECTED]</email>
      <phone type="work">716-873-9644</phone>
      <phone type="home">716-834-8772</phone>
   </contact>
</rolodex>


example.jsp
<html>
   <head>
      <title>Performing XSLT Transformations</title>
   </head>
   <body>
      <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
      <%@ taglib uri='http://java.sun.com/jsp/jstl/xml'  prefix='x' %>
      <c:import var='rolodex_xml' url='rolodex.xml'/>
      <c:import var='rolodex_xsl' url='rolodex.xsl'/>
       <x:transform xml='${rolodex_xml}' xslt='${rolodex_xsl}'/>
   </body>
</html>

Why raise above error? How to solve it?

Thanks

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to