The declaration looks okay, though you should use the well-known URI
for the JSTL taglib instead of using a relative path to a TLD:

 <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>

As for the error, it's unclear without more information why the
declaration would be giving you that problem.  Note that JSTL does require
a JSP 1.2 container, so you might get unusual errors if you try to use it
on a JSP 1.1 container.  Try a page with the declaration alone (no
comments) to ensure that that's really the cause of the problem.

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com

On Tue, 30 Jul 2002, Sharkey, Margaret C wrote:

> Thanks - it's not quite working, but I'm getting closer than I was! 
> 
> The error that I am getting is this:
> 
> javax.servlet.ServletException:
> javax.xml.transform.TransformerConfigurationException:
> javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
> Content is not allowed in prolog.
> 
> ... from the declaration only (everything else is commented out): 
> 
> <%@ taglib uri="/WEB-INF/tld/x.tld" prefix="xsl" %>
> 
> When I take out the declaration, everything else works fine.
> 
> Any ideas? Thanks again.
> 
> -----Original Message-----
> From: Shawn Bayern [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 11:31 AM
> To: Tag Libraries Users List
> Subject: Re: xsl taglibs
> 
> 
> On Tue, 30 Jul 2002, Sharkey, Margaret C wrote:
> 
> > Is the XSL taglib still supported? It looks as though it is still
> > using xalan 1, which is no longer supported. I have been trying to use
> > it to no avail. Is there anyone out there who has another version?
> 
> No, it's not still supported.  If you use JSP 1.2, it's recommended you
> upgrade to JSTL (the "Standard Taglib").  If you use JSP 1.1, you may use
> XTags.
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to