Re: XTAGS Problems with node names that begin with a leading underscore

Kris Schneider <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
That's odd. Are you also using jaxen-1.1-beta-6 (it comes with the dom4j dist)?

Quoting dean allen <[email protected]>:

> Hi Kris ,
> i'm using jdk1.5 and Tomcat 5.5.17.
> I have used xtags-20060829 , dom4j-1.6.1, but don't work.
> 
> This is the error log:
> 10-lug-2007 22.16.43 org.apache.catalina.core.StandardWrapperValve invoke
> GRAVE: Servlet.service() for servlet jsp threw exception
> org.dom4j.InvalidXPathException: Invalid XPath expression: '//_page'. Caused
> by: org.jaxen.dom4j.DocumentNavigator.getInstance()Lorg/jaxen/Navigator;
>         at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362)
>         at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)
>        
>
...............................................................................................
> 
> I have resolved the problem stripping out every occurence of <_tagname> from
> xml output.
> 
> Dean Allen
> 
> 
> 
> 
> ----- Messaggio originale -----
> Da: Kris Schneider <[email protected]>
> A: Tag Libraries Users List <[email protected]>
> Inviato: Martedì 10 luglio 2007, 15:27:32
> Oggetto: Re: XTAGS Problems with node names that begin with a leading
> underscore
> 
> Seems to work for me. Here's my test:
> 
> <%@ page contentType="text/plain" %>
> <%@ taglib prefix="xtags" uri="http://jakarta.apache.org/taglibs/xtags-1.0";
> %>
> 
> <xtags:parse>
>     <Test>
>         <_page>
>             hello
>         </_page>
>     </Test>
> </xtags:parse>
> 
> <xtags:valueOf select="//_page" />
> 
> And the result is:
> 
> hello
> 
> I used xtags-20060829 (most recent build available), dom4j-1.6.1 and
> jaxen-1.1-beta-6 (included with dom4j).
> 
> Quoting Kris Schneider <[email protected]>:
> 
> > What app server and JDK are you using?
> > 
> > I don't have XTags installed, but I'll grab it and see what I get with
> > Tomcat
> > 5.5.23 and JDK 1.5.0_06.
> > 
> > Quoting dean allen <[email protected]>:
> > 
> > > Hi,
> > > i have a problem with node names that begin with a leading
> > > underscore.
> > > 
> > > Given the following XML :
> > > <Test>
> > >     <_page>
> > >         hello
> > >     </_page>
> > > </Test>
> > > 
> > > when i use  follows  tags into jsp page
> > > 
> > > <xtags:variable id="pag" select="//_page"  />
> > > 
> > > <%=pag%>
> > > 
> > > or 
> > > 
> > > <xtags:valueOf select="//_page" />
> > > the result page don't show the relative value.
> > > 
> > > Can you help me?
> > > 
> > > Thank,
> > >             protone
> > 
> > -- 
> > Kris Schneider <mailto:[email protected]>
> > D.O.Tech       <http://www.dotech.com/>
> 
> -- 
> Kris Schneider <mailto:[email protected]>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 
> 
> 
> 
> 
> 
>       ___________________________________ 
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
> http://it.docs.yahoo.com/nowyoucan.html


-- 
Kris Schneider <mailto:[email protected]>
D.O.Tech       <http://www.dotech.com/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.