You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Noah Vihinen <nv...@maven.net> on 2004/03/08 14:11:02 UTC
and mutltiple namespaces in XSL doc
I don't think the <x:transform/> tag is behaving correctly with
multiple namespaces. Given the following jsp...
__________________________________________________
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<html>
<head>
<title>JSTL: XML Support -- Transform</title>
</head>
<body bgcolor="#FFFFFF">
<c:set var="xml">
<a><b>header!</b></a>
</c:set>
<c:set var="xsl">
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:log4j="http://www.apache.org">
<xsl:template match="/">
anything
</xsl:template>
</xsl:stylesheet>
</c:set>
<x:transform xml="${xml}" xslt="${xsl}"/>
</body>
</html>
__________________________________________________
I get the follow exception:
javax.servlet.ServletException:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
java.lang.IllegalStateException: can't declare any more prefixes in
this context
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:864)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:800)
org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
__________________________________________________
If I remove the log4j namespace and all references to it everything
works
fine.
I'm using
jakarta taglibs standard 1.1.0
jakarta tomcat 5.0.18
java 1.4.2 (Mac OS X)
Thanks,
Noah
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Noah Vihinen <nv...@maven.net>.
Excellent, I understand now.
So the root problem was a buggy xalan.jar (2.4.1) that came with my
installation of java.
On Mar 9, 2004, at 10:36 AM, Kris Schneider wrote:
> Just to clarify, the reason I'm not having any problems is because I've
> overridden the JDK's version of Xalan (2.4.1) with a new version
> (2.6.0). I
> just wanted to illustrate what's installed with the JDK. By default,
> TC's
> startup script effectively does:
>
> java ... -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed ...
>
> That's why dumping newer stuff into that directory made things better
> for TC.
> Check out:
>
> http://java.sun.com/j2se/1.4.2/docs/guide/standards/index.html
>
> Try running:
>
> java -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
> org.apache.xalan.Version
>
> to see the difference.
>
> Quoting Noah Vihinen <nv...@maven.net>:
>
>> I ran the command and got
>> Xalan Java 2.4.1
>> as well.
>>
>> That's Mac OS X w/ JDK 1.4.2.
>>
>> And I also verified that it's the xalan.jar that is the problem by
>> removing it from the endorsed directory and reproducing the error.
>>
>> So it would seem from my perspective that it's the version of xalan
>> being used. However if Kris isn't having difficulties with the same
>> version of xalan on Windows, then perhaps it's some other strange
>> issue.
>>
>> Thoughts?
>>
>> Noah
>>
>> On Mar 9, 2004, at 9:44 AM, Kris Schneider wrote:
>>
>>> Nope, it's not a TC bug. IIRC, TC only ships with Xerces anyway, not
>>> Xalan. That
>>> means you get the version from your JDK. Try running:
>>>
>>> java org.apache.xalan.Version
>>>
>>> I get:
>>>
>>> Xalan Java 2.4.1
>>>
>>> For Sun's JDK 1.4.2 on WinXP.
>>>
>>> Quoting Noah Vihinen <nv...@maven.net>:
>>>
>>>> I downloaded the latest copy of Xalan-J and copied the following
>>>> jars
>>>> into the $CATALINA_HOME/common/endorsed directory:
>>>>
>>>> xalan.jar
>>>> xercesImpl.jar
>>>> xml-apis.jar
>>>>
>>>> This fixed the problem with multiple namespaces during an
>>>> <x:transform/>. So tomcat ships with bad xml libs. Do you think I
>>>> should submit a bug against Tomcat?
>>>>
>>>> Thanks,
>>>> Noah
>>>>
>>>> On Mar 8, 2004, at 9:00 AM, Kris Schneider wrote:
>>>>
>>>>> Good point. I've got the following from Xalan 2.6.0 installed in
>>>>> $CATALINA_HOME/common/endorsed:
>>>>>
>>>>> xalan.jar
>>>>> xercesImpl.jar
>>>>> xml-apis.jar
>>>>>
>>>>> xml-apis.jar should be the same as xmlParserAPIs.jar that may
>>>>> already
>>>>> be
>>>>> installed.
>>>>>
>>>>> Quoting Martin van Dijken <su...@windgazer.nl>:
>>>>>
>>>>>> Hey Noah,
>>>>>>
>>>>>> What Xml Parser do you use? The standard that comes with 1.4,
>>>>>> Xalan
>>>>>> or
>>>>>> something else entirely? Might be a bug in your XML parser...
>>>>>>
>>>>>> Martin
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Noah Vihinen [mailto:nvihinen@maven.net]
>>>>>>> Sent: maandag 8 maart 2004 14:45
>>>>>>> To: Tag Libraries Developers List
>>>>>>> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
>>>>>>>
>>>>>>>
>>>>>>> I just tried the same jsp in TC 5.0.19 and got the same stack
>>>>>>> trace.
>>>>>>> Anyone have any ideas why this might not be working for me?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Noah
>>>>>>>
>>>>>>> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
>>>>>>>
>>>>>>>> Works for me on TC 5.0.19.
>>>>>>>>
>>>>>>>> Quoting Noah Vihinen <nv...@maven.net>:
>>>>>>>>
>>>>>>>>> I don't think the <x:transform/> tag is behaving correctly with
>>>>>>>>> multiple namespaces. Given the following jsp...
>>>>>>>>> __________________________________________________
>>>>>>>>>
>>>>>>>>> <%@ taglib prefix="c"
>>>>>>> uri="http://java.sun.com/jsp/jstl/core" %> <%@
>>>>>>>>> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
>>>>>>>>>
>>>>>>>>> <html>
>>>>>>>>> <head>
>>>>>>>>> <title>JSTL: XML Support -- Transform</title>
>>>>>>>>> </head>
>>>>>>>>> <body bgcolor="#FFFFFF">
>>>>>>>>>
>>>>>>>>> <c:set var="xml">
>>>>>>>>> <a><b>header!</b></a>
>>>>>>>>> </c:set>
>>>>>>>>>
>>>>>>>>> <c:set var="xsl">
>>>>>>>>> <?xml version="1.0"?>
>>>>>>>>> <xsl:stylesheet
>>>>>>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>>>>>> version="1.0"
>>>>>>>>> xmlns:log4j="http://www.apache.org">
>>>>>>>>>
>>>>>>>>> <xsl:template match="/">
>>>>>>>>> anything
>>>>>>>>> </xsl:template>
>>>>>>>>>
>>>>>>>>> </xsl:stylesheet>
>>>>>>>>> </c:set>
>>>>>>>>>
>>>>>>>>> <x:transform xml="${xml}" xslt="${xsl}"/>
>>>>>>>>>
>>>>>>>>> </body>
>>>>>>>>> </html>
>>>>>>>>> __________________________________________________
>>>>>>>>>
>>>>>>>>> I get the follow exception:
>>>>>>>>>
>>>>>>>>> javax.servlet.ServletException:
>>>>>>>>> javax.xml.transform.TransformerConfigurationException:
>>>>>>>>> javax.xml.transform.TransformerException:
>>>>>>>>> java.lang.IllegalStateException: can't declare any more
>>>>>>> prefixes in
>>>>>>>>> this context
>>>>>>>>>
>>>>>>>>>
>>>>>>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(P
>>>>>>> ag
>>>>>>> eC
>>>>>>>>> o
>>>>>>>>> nt
>>>>>>>>> extImpl.java:864)
>>>>>>>>>
>>>>>>>>>
>>>>>>> org.apache.jasper.runtime.PageContextImpl.handlePageException(Pag
>>>>>>> eC
>>>>>>> on
>>>>>>>>> t
>>>>>>>>> ex
>>>>>>>>> tImpl.java:800)
>>>>>>>>>
>>>>>>>>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
>>>>>>>>>
>>>>>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:
>>>>>>>>> 133)
>>>>>>>>>
>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>>>>>>
>>>>>>>>>
>>>>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWra
>>>>>>> pp
>>>>>>> er
>>>>>>>>> .
>>>>>>>>> ja
>>>>>>>>> va:311)
>>>>>>>>>
>>>>>>>>>
>>>>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
>>>>>>> va
>>>>>>> :
>>>>>>>>> 301)
>>>>>>>>>
>>>>>>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
>>>>>>>>> 248)
>>>>>>>>>
>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>>>>>>
>>>>>>>>> __________________________________________________
>>>>>>>>>
>>>>>>>>> If I remove the log4j namespace and all references to it
>>>>>>> everything
>>>>>>>>> works fine.
>>>>>>>>>
>>>>>>>>> I'm using
>>>>>>>>> jakarta taglibs standard 1.1.0
>>>>>>>>> jakarta tomcat 5.0.18
>>>>>>>>> java 1.4.2 (Mac OS X)
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Noah
>>>>>>>>
>>>>>>>> --
>>>>>>>> Kris Schneider <ma...@dotech.com>
>>>>>>>> D.O.Tech <http://www.dotech.com/>
>>>>>
>>>>> --
>>>>> Kris Schneider <ma...@dotech.com>
>>>>> D.O.Tech <http://www.dotech.com/>
>>>
>>> --
>>> Kris Schneider <ma...@dotech.com>
>>> D.O.Tech <http://www.dotech.com/>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Kris Schneider <kr...@dotech.com>.
Just to clarify, the reason I'm not having any problems is because I've
overridden the JDK's version of Xalan (2.4.1) with a new version (2.6.0). I
just wanted to illustrate what's installed with the JDK. By default, TC's
startup script effectively does:
java ... -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed ...
That's why dumping newer stuff into that directory made things better for TC.
Check out:
http://java.sun.com/j2se/1.4.2/docs/guide/standards/index.html
Try running:
java -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
org.apache.xalan.Version
to see the difference.
Quoting Noah Vihinen <nv...@maven.net>:
> I ran the command and got
> Xalan Java 2.4.1
> as well.
>
> That's Mac OS X w/ JDK 1.4.2.
>
> And I also verified that it's the xalan.jar that is the problem by
> removing it from the endorsed directory and reproducing the error.
>
> So it would seem from my perspective that it's the version of xalan
> being used. However if Kris isn't having difficulties with the same
> version of xalan on Windows, then perhaps it's some other strange
> issue.
>
> Thoughts?
>
> Noah
>
> On Mar 9, 2004, at 9:44 AM, Kris Schneider wrote:
>
> > Nope, it's not a TC bug. IIRC, TC only ships with Xerces anyway, not
> > Xalan. That
> > means you get the version from your JDK. Try running:
> >
> > java org.apache.xalan.Version
> >
> > I get:
> >
> > Xalan Java 2.4.1
> >
> > For Sun's JDK 1.4.2 on WinXP.
> >
> > Quoting Noah Vihinen <nv...@maven.net>:
> >
> >> I downloaded the latest copy of Xalan-J and copied the following jars
> >> into the $CATALINA_HOME/common/endorsed directory:
> >>
> >> xalan.jar
> >> xercesImpl.jar
> >> xml-apis.jar
> >>
> >> This fixed the problem with multiple namespaces during an
> >> <x:transform/>. So tomcat ships with bad xml libs. Do you think I
> >> should submit a bug against Tomcat?
> >>
> >> Thanks,
> >> Noah
> >>
> >> On Mar 8, 2004, at 9:00 AM, Kris Schneider wrote:
> >>
> >>> Good point. I've got the following from Xalan 2.6.0 installed in
> >>> $CATALINA_HOME/common/endorsed:
> >>>
> >>> xalan.jar
> >>> xercesImpl.jar
> >>> xml-apis.jar
> >>>
> >>> xml-apis.jar should be the same as xmlParserAPIs.jar that may already
> >>> be
> >>> installed.
> >>>
> >>> Quoting Martin van Dijken <su...@windgazer.nl>:
> >>>
> >>>> Hey Noah,
> >>>>
> >>>> What Xml Parser do you use? The standard that comes with 1.4, Xalan
> >>>> or
> >>>> something else entirely? Might be a bug in your XML parser...
> >>>>
> >>>> Martin
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: Noah Vihinen [mailto:nvihinen@maven.net]
> >>>>> Sent: maandag 8 maart 2004 14:45
> >>>>> To: Tag Libraries Developers List
> >>>>> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
> >>>>>
> >>>>>
> >>>>> I just tried the same jsp in TC 5.0.19 and got the same stack
> >>>>> trace.
> >>>>> Anyone have any ideas why this might not be working for me?
> >>>>>
> >>>>> Thanks,
> >>>>> Noah
> >>>>>
> >>>>> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
> >>>>>
> >>>>>> Works for me on TC 5.0.19.
> >>>>>>
> >>>>>> Quoting Noah Vihinen <nv...@maven.net>:
> >>>>>>
> >>>>>>> I don't think the <x:transform/> tag is behaving correctly with
> >>>>>>> multiple namespaces. Given the following jsp...
> >>>>>>> __________________________________________________
> >>>>>>>
> >>>>>>> <%@ taglib prefix="c"
> >>>>> uri="http://java.sun.com/jsp/jstl/core" %> <%@
> >>>>>>> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
> >>>>>>>
> >>>>>>> <html>
> >>>>>>> <head>
> >>>>>>> <title>JSTL: XML Support -- Transform</title>
> >>>>>>> </head>
> >>>>>>> <body bgcolor="#FFFFFF">
> >>>>>>>
> >>>>>>> <c:set var="xml">
> >>>>>>> <a><b>header!</b></a>
> >>>>>>> </c:set>
> >>>>>>>
> >>>>>>> <c:set var="xsl">
> >>>>>>> <?xml version="1.0"?>
> >>>>>>> <xsl:stylesheet
> >>>>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >>>>> version="1.0"
> >>>>>>> xmlns:log4j="http://www.apache.org">
> >>>>>>>
> >>>>>>> <xsl:template match="/">
> >>>>>>> anything
> >>>>>>> </xsl:template>
> >>>>>>>
> >>>>>>> </xsl:stylesheet>
> >>>>>>> </c:set>
> >>>>>>>
> >>>>>>> <x:transform xml="${xml}" xslt="${xsl}"/>
> >>>>>>>
> >>>>>>> </body>
> >>>>>>> </html>
> >>>>>>> __________________________________________________
> >>>>>>>
> >>>>>>> I get the follow exception:
> >>>>>>>
> >>>>>>> javax.servlet.ServletException:
> >>>>>>> javax.xml.transform.TransformerConfigurationException:
> >>>>>>> javax.xml.transform.TransformerException:
> >>>>>>> java.lang.IllegalStateException: can't declare any more
> >>>>> prefixes in
> >>>>>>> this context
> >>>>>>>
> >>>>>>>
> >>>>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(Pag
> >>>>> eC
> >>>>>>> o
> >>>>>>> nt
> >>>>>>> extImpl.java:864)
> >>>>>>>
> >>>>>>>
> >>>>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageC
> >>>>> on
> >>>>>>> t
> >>>>>>> ex
> >>>>>>> tImpl.java:800)
> >>>>>>>
> >>>>>>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
> >>>>>>>
> >>>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:
> >>>>>>> 133)
> >>>>>>>
> >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>>>>>>
> >>>>>>>
> >>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapp
> >>>>> er
> >>>>>>> .
> >>>>>>> ja
> >>>>>>> va:311)
> >>>>>>>
> >>>>>>>
> >>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> >>>>> :
> >>>>>>> 301)
> >>>>>>>
> >>>>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> >>>>>>>
> >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>>>>>>
> >>>>>>> __________________________________________________
> >>>>>>>
> >>>>>>> If I remove the log4j namespace and all references to it
> >>>>> everything
> >>>>>>> works fine.
> >>>>>>>
> >>>>>>> I'm using
> >>>>>>> jakarta taglibs standard 1.1.0
> >>>>>>> jakarta tomcat 5.0.18
> >>>>>>> java 1.4.2 (Mac OS X)
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Noah
> >>>>>>
> >>>>>> --
> >>>>>> Kris Schneider <ma...@dotech.com>
> >>>>>> D.O.Tech <http://www.dotech.com/>
> >>>
> >>> --
> >>> Kris Schneider <ma...@dotech.com>
> >>> D.O.Tech <http://www.dotech.com/>
> >
> > --
> > Kris Schneider <ma...@dotech.com>
> > D.O.Tech <http://www.dotech.com/>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Noah Vihinen <nv...@maven.net>.
I ran the command and got
Xalan Java 2.4.1
as well.
That's Mac OS X w/ JDK 1.4.2.
And I also verified that it's the xalan.jar that is the problem by
removing it from the endorsed directory and reproducing the error.
So it would seem from my perspective that it's the version of xalan
being used. However if Kris isn't having difficulties with the same
version of xalan on Windows, then perhaps it's some other strange
issue.
Thoughts?
Noah
On Mar 9, 2004, at 9:44 AM, Kris Schneider wrote:
> Nope, it's not a TC bug. IIRC, TC only ships with Xerces anyway, not
> Xalan. That
> means you get the version from your JDK. Try running:
>
> java org.apache.xalan.Version
>
> I get:
>
> Xalan Java 2.4.1
>
> For Sun's JDK 1.4.2 on WinXP.
>
> Quoting Noah Vihinen <nv...@maven.net>:
>
>> I downloaded the latest copy of Xalan-J and copied the following jars
>> into the $CATALINA_HOME/common/endorsed directory:
>>
>> xalan.jar
>> xercesImpl.jar
>> xml-apis.jar
>>
>> This fixed the problem with multiple namespaces during an
>> <x:transform/>. So tomcat ships with bad xml libs. Do you think I
>> should submit a bug against Tomcat?
>>
>> Thanks,
>> Noah
>>
>> On Mar 8, 2004, at 9:00 AM, Kris Schneider wrote:
>>
>>> Good point. I've got the following from Xalan 2.6.0 installed in
>>> $CATALINA_HOME/common/endorsed:
>>>
>>> xalan.jar
>>> xercesImpl.jar
>>> xml-apis.jar
>>>
>>> xml-apis.jar should be the same as xmlParserAPIs.jar that may already
>>> be
>>> installed.
>>>
>>> Quoting Martin van Dijken <su...@windgazer.nl>:
>>>
>>>> Hey Noah,
>>>>
>>>> What Xml Parser do you use? The standard that comes with 1.4, Xalan
>>>> or
>>>> something else entirely? Might be a bug in your XML parser...
>>>>
>>>> Martin
>>>>
>>>>> -----Original Message-----
>>>>> From: Noah Vihinen [mailto:nvihinen@maven.net]
>>>>> Sent: maandag 8 maart 2004 14:45
>>>>> To: Tag Libraries Developers List
>>>>> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
>>>>>
>>>>>
>>>>> I just tried the same jsp in TC 5.0.19 and got the same stack
>>>>> trace.
>>>>> Anyone have any ideas why this might not be working for me?
>>>>>
>>>>> Thanks,
>>>>> Noah
>>>>>
>>>>> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
>>>>>
>>>>>> Works for me on TC 5.0.19.
>>>>>>
>>>>>> Quoting Noah Vihinen <nv...@maven.net>:
>>>>>>
>>>>>>> I don't think the <x:transform/> tag is behaving correctly with
>>>>>>> multiple namespaces. Given the following jsp...
>>>>>>> __________________________________________________
>>>>>>>
>>>>>>> <%@ taglib prefix="c"
>>>>> uri="http://java.sun.com/jsp/jstl/core" %> <%@
>>>>>>> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
>>>>>>>
>>>>>>> <html>
>>>>>>> <head>
>>>>>>> <title>JSTL: XML Support -- Transform</title>
>>>>>>> </head>
>>>>>>> <body bgcolor="#FFFFFF">
>>>>>>>
>>>>>>> <c:set var="xml">
>>>>>>> <a><b>header!</b></a>
>>>>>>> </c:set>
>>>>>>>
>>>>>>> <c:set var="xsl">
>>>>>>> <?xml version="1.0"?>
>>>>>>> <xsl:stylesheet
>>>>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>>>> version="1.0"
>>>>>>> xmlns:log4j="http://www.apache.org">
>>>>>>>
>>>>>>> <xsl:template match="/">
>>>>>>> anything
>>>>>>> </xsl:template>
>>>>>>>
>>>>>>> </xsl:stylesheet>
>>>>>>> </c:set>
>>>>>>>
>>>>>>> <x:transform xml="${xml}" xslt="${xsl}"/>
>>>>>>>
>>>>>>> </body>
>>>>>>> </html>
>>>>>>> __________________________________________________
>>>>>>>
>>>>>>> I get the follow exception:
>>>>>>>
>>>>>>> javax.servlet.ServletException:
>>>>>>> javax.xml.transform.TransformerConfigurationException:
>>>>>>> javax.xml.transform.TransformerException:
>>>>>>> java.lang.IllegalStateException: can't declare any more
>>>>> prefixes in
>>>>>>> this context
>>>>>>>
>>>>>>>
>>>>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(Pag
>>>>> eC
>>>>>>> o
>>>>>>> nt
>>>>>>> extImpl.java:864)
>>>>>>>
>>>>>>>
>>>>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageC
>>>>> on
>>>>>>> t
>>>>>>> ex
>>>>>>> tImpl.java:800)
>>>>>>>
>>>>>>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
>>>>>>>
>>>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:
>>>>>>> 133)
>>>>>>>
>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>>>>
>>>>>>>
>>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapp
>>>>> er
>>>>>>> .
>>>>>>> ja
>>>>>>> va:311)
>>>>>>>
>>>>>>>
>>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
>>>>> :
>>>>>>> 301)
>>>>>>>
>>>>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>>>>>>>
>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>>>>
>>>>>>> __________________________________________________
>>>>>>>
>>>>>>> If I remove the log4j namespace and all references to it
>>>>> everything
>>>>>>> works fine.
>>>>>>>
>>>>>>> I'm using
>>>>>>> jakarta taglibs standard 1.1.0
>>>>>>> jakarta tomcat 5.0.18
>>>>>>> java 1.4.2 (Mac OS X)
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Noah
>>>>>>
>>>>>> --
>>>>>> Kris Schneider <ma...@dotech.com>
>>>>>> D.O.Tech <http://www.dotech.com/>
>>>
>>> --
>>> Kris Schneider <ma...@dotech.com>
>>> D.O.Tech <http://www.dotech.com/>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Kris Schneider <kr...@dotech.com>.
Nope, it's not a TC bug. IIRC, TC only ships with Xerces anyway, not Xalan. That
means you get the version from your JDK. Try running:
java org.apache.xalan.Version
I get:
Xalan Java 2.4.1
For Sun's JDK 1.4.2 on WinXP.
Quoting Noah Vihinen <nv...@maven.net>:
> I downloaded the latest copy of Xalan-J and copied the following jars
> into the $CATALINA_HOME/common/endorsed directory:
>
> xalan.jar
> xercesImpl.jar
> xml-apis.jar
>
> This fixed the problem with multiple namespaces during an
> <x:transform/>. So tomcat ships with bad xml libs. Do you think I
> should submit a bug against Tomcat?
>
> Thanks,
> Noah
>
> On Mar 8, 2004, at 9:00 AM, Kris Schneider wrote:
>
> > Good point. I've got the following from Xalan 2.6.0 installed in
> > $CATALINA_HOME/common/endorsed:
> >
> > xalan.jar
> > xercesImpl.jar
> > xml-apis.jar
> >
> > xml-apis.jar should be the same as xmlParserAPIs.jar that may already
> > be
> > installed.
> >
> > Quoting Martin van Dijken <su...@windgazer.nl>:
> >
> >> Hey Noah,
> >>
> >> What Xml Parser do you use? The standard that comes with 1.4, Xalan or
> >> something else entirely? Might be a bug in your XML parser...
> >>
> >> Martin
> >>
> >>> -----Original Message-----
> >>> From: Noah Vihinen [mailto:nvihinen@maven.net]
> >>> Sent: maandag 8 maart 2004 14:45
> >>> To: Tag Libraries Developers List
> >>> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
> >>>
> >>>
> >>> I just tried the same jsp in TC 5.0.19 and got the same stack
> >>> trace.
> >>> Anyone have any ideas why this might not be working for me?
> >>>
> >>> Thanks,
> >>> Noah
> >>>
> >>> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
> >>>
> >>>> Works for me on TC 5.0.19.
> >>>>
> >>>> Quoting Noah Vihinen <nv...@maven.net>:
> >>>>
> >>>>> I don't think the <x:transform/> tag is behaving correctly with
> >>>>> multiple namespaces. Given the following jsp...
> >>>>> __________________________________________________
> >>>>>
> >>>>> <%@ taglib prefix="c"
> >>> uri="http://java.sun.com/jsp/jstl/core" %> <%@
> >>>>> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
> >>>>>
> >>>>> <html>
> >>>>> <head>
> >>>>> <title>JSTL: XML Support -- Transform</title>
> >>>>> </head>
> >>>>> <body bgcolor="#FFFFFF">
> >>>>>
> >>>>> <c:set var="xml">
> >>>>> <a><b>header!</b></a>
> >>>>> </c:set>
> >>>>>
> >>>>> <c:set var="xsl">
> >>>>> <?xml version="1.0"?>
> >>>>> <xsl:stylesheet
> >>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >>> version="1.0"
> >>>>> xmlns:log4j="http://www.apache.org">
> >>>>>
> >>>>> <xsl:template match="/">
> >>>>> anything
> >>>>> </xsl:template>
> >>>>>
> >>>>> </xsl:stylesheet>
> >>>>> </c:set>
> >>>>>
> >>>>> <x:transform xml="${xml}" xslt="${xsl}"/>
> >>>>>
> >>>>> </body>
> >>>>> </html>
> >>>>> __________________________________________________
> >>>>>
> >>>>> I get the follow exception:
> >>>>>
> >>>>> javax.servlet.ServletException:
> >>>>> javax.xml.transform.TransformerConfigurationException:
> >>>>> javax.xml.transform.TransformerException:
> >>>>> java.lang.IllegalStateException: can't declare any more
> >>> prefixes in
> >>>>> this context
> >>>>>
> >>>>>
> >>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC
> >>>>> o
> >>>>> nt
> >>>>> extImpl.java:864)
> >>>>>
> >>>>>
> >>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
> >>>>> t
> >>>>> ex
> >>>>> tImpl.java:800)
> >>>>>
> >>>>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
> >>>>>
> >>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> >>>>>
> >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>>>>
> >>>>>
> >>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> >>>>> .
> >>>>> ja
> >>>>> va:311)
> >>>>>
> >>>>>
> >>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> >>>>> 301)
> >>>>>
> >>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> >>>>>
> >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>>>>
> >>>>> __________________________________________________
> >>>>>
> >>>>> If I remove the log4j namespace and all references to it
> >>> everything
> >>>>> works fine.
> >>>>>
> >>>>> I'm using
> >>>>> jakarta taglibs standard 1.1.0
> >>>>> jakarta tomcat 5.0.18
> >>>>> java 1.4.2 (Mac OS X)
> >>>>>
> >>>>> Thanks,
> >>>>> Noah
> >>>>
> >>>> --
> >>>> Kris Schneider <ma...@dotech.com>
> >>>> D.O.Tech <http://www.dotech.com/>
> >
> > --
> > Kris Schneider <ma...@dotech.com>
> > D.O.Tech <http://www.dotech.com/>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Noah Vihinen <nv...@maven.net>.
I downloaded the latest copy of Xalan-J and copied the following jars
into the $CATALINA_HOME/common/endorsed directory:
xalan.jar
xercesImpl.jar
xml-apis.jar
This fixed the problem with multiple namespaces during an
<x:transform/>. So tomcat ships with bad xml libs. Do you think I
should submit a bug against Tomcat?
Thanks,
Noah
On Mar 8, 2004, at 9:00 AM, Kris Schneider wrote:
> Good point. I've got the following from Xalan 2.6.0 installed in
> $CATALINA_HOME/common/endorsed:
>
> xalan.jar
> xercesImpl.jar
> xml-apis.jar
>
> xml-apis.jar should be the same as xmlParserAPIs.jar that may already
> be
> installed.
>
> Quoting Martin van Dijken <su...@windgazer.nl>:
>
>> Hey Noah,
>>
>> What Xml Parser do you use? The standard that comes with 1.4, Xalan or
>> something else entirely? Might be a bug in your XML parser...
>>
>> Martin
>>
>>> -----Original Message-----
>>> From: Noah Vihinen [mailto:nvihinen@maven.net]
>>> Sent: maandag 8 maart 2004 14:45
>>> To: Tag Libraries Developers List
>>> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
>>>
>>>
>>> I just tried the same jsp in TC 5.0.19 and got the same stack
>>> trace.
>>> Anyone have any ideas why this might not be working for me?
>>>
>>> Thanks,
>>> Noah
>>>
>>> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
>>>
>>>> Works for me on TC 5.0.19.
>>>>
>>>> Quoting Noah Vihinen <nv...@maven.net>:
>>>>
>>>>> I don't think the <x:transform/> tag is behaving correctly with
>>>>> multiple namespaces. Given the following jsp...
>>>>> __________________________________________________
>>>>>
>>>>> <%@ taglib prefix="c"
>>> uri="http://java.sun.com/jsp/jstl/core" %> <%@
>>>>> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
>>>>>
>>>>> <html>
>>>>> <head>
>>>>> <title>JSTL: XML Support -- Transform</title>
>>>>> </head>
>>>>> <body bgcolor="#FFFFFF">
>>>>>
>>>>> <c:set var="xml">
>>>>> <a><b>header!</b></a>
>>>>> </c:set>
>>>>>
>>>>> <c:set var="xsl">
>>>>> <?xml version="1.0"?>
>>>>> <xsl:stylesheet
>>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>> version="1.0"
>>>>> xmlns:log4j="http://www.apache.org">
>>>>>
>>>>> <xsl:template match="/">
>>>>> anything
>>>>> </xsl:template>
>>>>>
>>>>> </xsl:stylesheet>
>>>>> </c:set>
>>>>>
>>>>> <x:transform xml="${xml}" xslt="${xsl}"/>
>>>>>
>>>>> </body>
>>>>> </html>
>>>>> __________________________________________________
>>>>>
>>>>> I get the follow exception:
>>>>>
>>>>> javax.servlet.ServletException:
>>>>> javax.xml.transform.TransformerConfigurationException:
>>>>> javax.xml.transform.TransformerException:
>>>>> java.lang.IllegalStateException: can't declare any more
>>> prefixes in
>>>>> this context
>>>>>
>>>>>
>>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC
>>>>> o
>>>>> nt
>>>>> extImpl.java:864)
>>>>>
>>>>>
>>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
>>>>> t
>>>>> ex
>>>>> tImpl.java:800)
>>>>>
>>>>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
>>>>>
>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>>>>>
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>>
>>>>>
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
>>>>> .
>>>>> ja
>>>>> va:311)
>>>>>
>>>>>
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
>>>>> 301)
>>>>>
>>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>>>>>
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>>
>>>>> __________________________________________________
>>>>>
>>>>> If I remove the log4j namespace and all references to it
>>> everything
>>>>> works fine.
>>>>>
>>>>> I'm using
>>>>> jakarta taglibs standard 1.1.0
>>>>> jakarta tomcat 5.0.18
>>>>> java 1.4.2 (Mac OS X)
>>>>>
>>>>> Thanks,
>>>>> Noah
>>>>
>>>> --
>>>> Kris Schneider <ma...@dotech.com>
>>>> D.O.Tech <http://www.dotech.com/>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
RE: and mutltiple namespaces in XSL doc
Posted by Kris Schneider <kr...@dotech.com>.
Good point. I've got the following from Xalan 2.6.0 installed in
$CATALINA_HOME/common/endorsed:
xalan.jar
xercesImpl.jar
xml-apis.jar
xml-apis.jar should be the same as xmlParserAPIs.jar that may already be
installed.
Quoting Martin van Dijken <su...@windgazer.nl>:
> Hey Noah,
>
> What Xml Parser do you use? The standard that comes with 1.4, Xalan or
> something else entirely? Might be a bug in your XML parser...
>
> Martin
>
> > -----Original Message-----
> > From: Noah Vihinen [mailto:nvihinen@maven.net]
> > Sent: maandag 8 maart 2004 14:45
> > To: Tag Libraries Developers List
> > Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
> >
> >
> > I just tried the same jsp in TC 5.0.19 and got the same stack
> > trace.
> > Anyone have any ideas why this might not be working for me?
> >
> > Thanks,
> > Noah
> >
> > On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
> >
> > > Works for me on TC 5.0.19.
> > >
> > > Quoting Noah Vihinen <nv...@maven.net>:
> > >
> > >> I don't think the <x:transform/> tag is behaving correctly with
> > >> multiple namespaces. Given the following jsp...
> > >> __________________________________________________
> > >>
> > >> <%@ taglib prefix="c"
> > uri="http://java.sun.com/jsp/jstl/core" %> <%@
> > >> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
> > >>
> > >> <html>
> > >> <head>
> > >> <title>JSTL: XML Support -- Transform</title>
> > >> </head>
> > >> <body bgcolor="#FFFFFF">
> > >>
> > >> <c:set var="xml">
> > >> <a><b>header!</b></a>
> > >> </c:set>
> > >>
> > >> <c:set var="xsl">
> > >> <?xml version="1.0"?>
> > >> <xsl:stylesheet
> > >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0"
> > >> xmlns:log4j="http://www.apache.org">
> > >>
> > >> <xsl:template match="/">
> > >> anything
> > >> </xsl:template>
> > >>
> > >> </xsl:stylesheet>
> > >> </c:set>
> > >>
> > >> <x:transform xml="${xml}" xslt="${xsl}"/>
> > >>
> > >> </body>
> > >> </html>
> > >> __________________________________________________
> > >>
> > >> I get the follow exception:
> > >>
> > >> javax.servlet.ServletException:
> > >> javax.xml.transform.TransformerConfigurationException:
> > >> javax.xml.transform.TransformerException:
> > >> java.lang.IllegalStateException: can't declare any more
> > prefixes in
> > >> this context
> > >>
> > >>
> > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC
> > >> o
> > >> nt
> > >> extImpl.java:864)
> > >>
> > >>
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
> > >> t
> > >> ex
> > >> tImpl.java:800)
> > >>
> > >> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
> > >>
> > >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> > >>
> > >> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > >>
> > >>
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> > >> .
> > >> ja
> > >> va:311)
> > >>
> > >>
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> > >> 301)
> > >>
> > >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> > >>
> > >> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > >>
> > >> __________________________________________________
> > >>
> > >> If I remove the log4j namespace and all references to it
> > everything
> > >> works fine.
> > >>
> > >> I'm using
> > >> jakarta taglibs standard 1.1.0
> > >> jakarta tomcat 5.0.18
> > >> java 1.4.2 (Mac OS X)
> > >>
> > >> Thanks,
> > >> Noah
> > >
> > > --
> > > Kris Schneider <ma...@dotech.com>
> > > D.O.Tech <http://www.dotech.com/>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Noah Vihinen <nv...@maven.net>.
I'm using the standard xml parser that comes with tomcat - I believe
it's xerces.
Noah
On Mar 8, 2004, at 8:50 AM, Martin van Dijken wrote:
> Hey Noah,
>
> What Xml Parser do you use? The standard that comes with 1.4, Xalan or
> something else entirely? Might be a bug in your XML parser...
>
> Martin
>
>> -----Original Message-----
>> From: Noah Vihinen [mailto:nvihinen@maven.net]
>> Sent: maandag 8 maart 2004 14:45
>> To: Tag Libraries Developers List
>> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
>>
>>
>> I just tried the same jsp in TC 5.0.19 and got the same stack
>> trace.
>> Anyone have any ideas why this might not be working for me?
>>
>> Thanks,
>> Noah
>>
>> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
>>
>>> Works for me on TC 5.0.19.
>>>
>>> Quoting Noah Vihinen <nv...@maven.net>:
>>>
>>>> I don't think the <x:transform/> tag is behaving correctly with
>>>> multiple namespaces. Given the following jsp...
>>>> __________________________________________________
>>>>
>>>> <%@ taglib prefix="c"
>> uri="http://java.sun.com/jsp/jstl/core" %> <%@
>>>> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
>>>>
>>>> <html>
>>>> <head>
>>>> <title>JSTL: XML Support -- Transform</title>
>>>> </head>
>>>> <body bgcolor="#FFFFFF">
>>>>
>>>> <c:set var="xml">
>>>> <a><b>header!</b></a>
>>>> </c:set>
>>>>
>>>> <c:set var="xsl">
>>>> <?xml version="1.0"?>
>>>> <xsl:stylesheet
>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>> version="1.0"
>>>> xmlns:log4j="http://www.apache.org">
>>>>
>>>> <xsl:template match="/">
>>>> anything
>>>> </xsl:template>
>>>>
>>>> </xsl:stylesheet>
>>>> </c:set>
>>>>
>>>> <x:transform xml="${xml}" xslt="${xsl}"/>
>>>>
>>>> </body>
>>>> </html>
>>>> __________________________________________________
>>>>
>>>> I get the follow exception:
>>>>
>>>> javax.servlet.ServletException:
>>>> javax.xml.transform.TransformerConfigurationException:
>>>> javax.xml.transform.TransformerException:
>>>> java.lang.IllegalStateException: can't declare any more
>> prefixes in
>>>> this context
>>>>
>>>>
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC
>>>> o
>>>> nt
>>>> extImpl.java:864)
>>>>
>>>>
>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
>>>> t
>>>> ex
>>>> tImpl.java:800)
>>>>
>>>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
>>>>
>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>>>>
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>
>>>>
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
>>>> .
>>>> ja
>>>> va:311)
>>>>
>>>>
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
>>>> 301)
>>>>
>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>>>>
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>>>
>>>> __________________________________________________
>>>>
>>>> If I remove the log4j namespace and all references to it
>> everything
>>>> works fine.
>>>>
>>>> I'm using
>>>> jakarta taglibs standard 1.1.0
>>>> jakarta tomcat 5.0.18
>>>> java 1.4.2 (Mac OS X)
>>>>
>>>> Thanks,
>>>> Noah
>>>
>>> --
>>> Kris Schneider <ma...@dotech.com>
>>> D.O.Tech <http://www.dotech.com/>
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
RE: and mutltiple namespaces in XSL doc
Posted by Martin van Dijken <su...@windgazer.nl>.
Hey Noah,
What Xml Parser do you use? The standard that comes with 1.4, Xalan or
something else entirely? Might be a bug in your XML parser...
Martin
> -----Original Message-----
> From: Noah Vihinen [mailto:nvihinen@maven.net]
> Sent: maandag 8 maart 2004 14:45
> To: Tag Libraries Developers List
> Subject: Re: <x:transform/> and mutltiple namespaces in XSL doc
>
>
> I just tried the same jsp in TC 5.0.19 and got the same stack
> trace.
> Anyone have any ideas why this might not be working for me?
>
> Thanks,
> Noah
>
> On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
>
> > Works for me on TC 5.0.19.
> >
> > Quoting Noah Vihinen <nv...@maven.net>:
> >
> >> I don't think the <x:transform/> tag is behaving correctly with
> >> multiple namespaces. Given the following jsp...
> >> __________________________________________________
> >>
> >> <%@ taglib prefix="c"
> uri="http://java.sun.com/jsp/jstl/core" %> <%@
> >> taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
> >>
> >> <html>
> >> <head>
> >> <title>JSTL: XML Support -- Transform</title>
> >> </head>
> >> <body bgcolor="#FFFFFF">
> >>
> >> <c:set var="xml">
> >> <a><b>header!</b></a>
> >> </c:set>
> >>
> >> <c:set var="xsl">
> >> <?xml version="1.0"?>
> >> <xsl:stylesheet
> >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0"
> >> xmlns:log4j="http://www.apache.org">
> >>
> >> <xsl:template match="/">
> >> anything
> >> </xsl:template>
> >>
> >> </xsl:stylesheet>
> >> </c:set>
> >>
> >> <x:transform xml="${xml}" xslt="${xsl}"/>
> >>
> >> </body>
> >> </html>
> >> __________________________________________________
> >>
> >> I get the follow exception:
> >>
> >> javax.servlet.ServletException:
> >> javax.xml.transform.TransformerConfigurationException:
> >> javax.xml.transform.TransformerException:
> >> java.lang.IllegalStateException: can't declare any more
> prefixes in
> >> this context
> >>
> >>
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC
> >> o
> >> nt
> >> extImpl.java:864)
> >>
> >>
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
> >> t
> >> ex
> >> tImpl.java:800)
> >>
> >> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
> >>
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> >>
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>
> >>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> >> .
> >> ja
> >> va:311)
> >>
> >>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> >> 301)
> >>
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> >>
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>
> >> __________________________________________________
> >>
> >> If I remove the log4j namespace and all references to it
> everything
> >> works fine.
> >>
> >> I'm using
> >> jakarta taglibs standard 1.1.0
> >> jakarta tomcat 5.0.18
> >> java 1.4.2 (Mac OS X)
> >>
> >> Thanks,
> >> Noah
> >
> > --
> > Kris Schneider <ma...@dotech.com>
> > D.O.Tech <http://www.dotech.com/>
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Noah Vihinen <nv...@maven.net>.
I just tried the same jsp in TC 5.0.19 and got the same stack trace.
Anyone have any ideas why this might not be working for me?
Thanks,
Noah
On Mar 8, 2004, at 8:24 AM, Kris Schneider wrote:
> Works for me on TC 5.0.19.
>
> Quoting Noah Vihinen <nv...@maven.net>:
>
>> I don't think the <x:transform/> tag is behaving correctly with
>> multiple namespaces. Given the following jsp...
>> __________________________________________________
>>
>> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
>> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
>>
>> <html>
>> <head>
>> <title>JSTL: XML Support -- Transform</title>
>> </head>
>> <body bgcolor="#FFFFFF">
>>
>> <c:set var="xml">
>> <a><b>header!</b></a>
>> </c:set>
>>
>> <c:set var="xsl">
>> <?xml version="1.0"?>
>> <xsl:stylesheet
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>> xmlns:log4j="http://www.apache.org">
>>
>> <xsl:template match="/">
>> anything
>> </xsl:template>
>>
>> </xsl:stylesheet>
>> </c:set>
>>
>> <x:transform xml="${xml}" xslt="${xsl}"/>
>>
>> </body>
>> </html>
>> __________________________________________________
>>
>> I get the follow exception:
>>
>> javax.servlet.ServletException:
>> javax.xml.transform.TransformerConfigurationException:
>> javax.xml.transform.TransformerException:
>> java.lang.IllegalStateException: can't declare any more prefixes in
>> this context
>>
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCo
>> nt
>> extImpl.java:864)
>>
>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont
>> ex
>> tImpl.java:800)
>>
>> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
>>
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
>> ja
>> va:311)
>>
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
>> 301)
>>
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>
>> __________________________________________________
>>
>> If I remove the log4j namespace and all references to it everything
>> works
>> fine.
>>
>> I'm using
>> jakarta taglibs standard 1.1.0
>> jakarta tomcat 5.0.18
>> java 1.4.2 (Mac OS X)
>>
>> Thanks,
>> Noah
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
Re: and mutltiple namespaces in XSL doc
Posted by Kris Schneider <kr...@dotech.com>.
Works for me on TC 5.0.19.
Quoting Noah Vihinen <nv...@maven.net>:
> I don't think the <x:transform/> tag is behaving correctly with
> multiple namespaces. Given the following jsp...
> __________________________________________________
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
>
> <html>
> <head>
> <title>JSTL: XML Support -- Transform</title>
> </head>
> <body bgcolor="#FFFFFF">
>
> <c:set var="xml">
> <a><b>header!</b></a>
> </c:set>
>
> <c:set var="xsl">
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
> xmlns:log4j="http://www.apache.org">
>
> <xsl:template match="/">
> anything
> </xsl:template>
>
> </xsl:stylesheet>
> </c:set>
>
> <x:transform xml="${xml}" xslt="${xsl}"/>
>
> </body>
> </html>
> __________________________________________________
>
> I get the follow exception:
>
> javax.servlet.ServletException:
> javax.xml.transform.TransformerConfigurationException:
> javax.xml.transform.TransformerException:
> java.lang.IllegalStateException: can't declare any more prefixes in
> this context
>
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
> extImpl.java:864)
>
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
> tImpl.java:800)
> org.apache.jsp.transform_jsp._jspService(transform_jsp.java:81)
>
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:311)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 301)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> __________________________________________________
>
> If I remove the log4j namespace and all references to it everything
> works
> fine.
>
> I'm using
> jakarta taglibs standard 1.1.0
> jakarta tomcat 5.0.18
> java 1.4.2 (Mac OS X)
>
> Thanks,
> Noah
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org