> Scott Boag wrote:
>
> Carsten, I think we have found two problems in the sample you sent us.
>
> 1) xpath = "*[local-name()='sitemap' and namespace-uri
> ='http://apache.org/cocoon/sitemap/1.0']";  should probably be xpath = "
> *[local-name()='sitemap' and namespace-uri()
> ='http://apache.org/cocoon/sitemap/1.0']";
>
Yes, you're right. This was a simple typo. The other tests I did had
the brackets.

> 2) You need to call dfactory.setNamespaceAware(true);  It is a requirement
> for Xalan that namespace processing be turned on, and that the input DOM
> conform to DOM2 standards.
>
Great. That solves the problem. I thought (until today) that the default
for this is true, but now I know: false is the correct value.

Thanks for helping!

Carsten

> If we do these two things, the test seems to return the correct results.
>
> -scott
>
>
>
>
>
>
>                     "Carsten
>
>                     Ziegeler"            To:
> <[EMAIL PROTECTED]>, "Scott_Boag@lotus. com"
>                     <cziegeler@su        <[EMAIL PROTECTED]>
>
>                     ndn.de>              cc:
>
>                                          Subject:     AW: Need
> Cocoon2 test with latest Xalan CVS
>                     07/02/01
>
>                     03:19 AM
>
>                     Please
>
>                     respond to
>
>                     cocoon-dev
>
>
>
>
>
>
>
>
>
> Hi Scott,
>
> that's really no problem to test this in cycles.
>
> But, the latest cvs is not working properly. It doesn't throw an
> exception any more, that's fixed. But the result is empty!
>
> I finally had time to make a simple test case for you. Attached
> is a small java class and a sample xml file. Tthe class is derived
> from the ApplyXPath example. It reads an xml file specified by
> the command line and applies a fixed XPath using namespaces.
> The result of the XPath is empty when the "namespace-uri()" function
> is used.
>
> I hope this helps in finding the problems,
>
> Carsten
>
> > Scott Boag wrote:
> >
> > Carsten,  I think I just checked in a fix that will solve this.
>  Sorry to
> > make you go through these cycles, but can you try again?
> >
> > -scott
> >
> >
> >
> >
> >
> >
> >                     "Carsten
> >
> >                     Ziegeler"            To:
> > <[EMAIL PROTECTED]>, "Cocoon-Dev@Xml. Apache. Org"
> >                     <cziegeler@su
> > <[EMAIL PROTECTED]>
> >                     ndn.de>              cc:
> >
> >                                          Subject:     AW: Need
> > Cocoon2 test with latest Xalan CVS
> >                     06/29/01
> >
> >                     10:23 AM
> >
> >                     Please
> >
> >                     respond to
> >
> >                     cocoon-dev
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Scott Boag wrote:
> > >
> > > Without more information we can't be sure, but we think we may have
> > > replicated and fixed this problem.  By any chance was the
> > context node in
> > > this case a DocumentFragment?
> > >
> > Yes, sorry I forgot to tell this...it is a DocumentFragment.
> >
> > > Please try again to see if the problem is fixed yet.
> >
> > No, it is still the same exception.
> >
> > Regards
> >
> > Carsten
> > >
> > > -scott
> > >
> > >
> > >
> > >
> > >
> > >
> > >                     "Carsten
> > >
> > >                     Ziegeler"            To:
> > > <[EMAIL PROTECTED]>, "Scott_Boag@lotus. com"
> > >                     <cziegeler@su        <[EMAIL PROTECTED]>
> > >
> > >                     ndn.de>              cc:
> > >
> > >                                          Subject:     AW: Need
> > > Cocoon2 test with latest Xalan CVS
> > >                     06/27/01
> > >
> > >                     05:52 AM
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi Scott,
> > >
> > > I just tested the latest Xalan2 cvs version for the XPath problem,
> > > I reported yesterfay.
> > > It does not work, here is the complete exception:
> > >
> > > javax.xml.transform.TransformerException: Unknown error in XPath
> > >         at org.apache.xpath.XPath.execute(XPath.java:339)
> > >         at org.apache.xpath.XPathAPI.eval(XPathAPI.java:276)
> > >         at
> > org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:163)
> > >         at
> org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:124)
> > >         at
> org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:104)
> > >         at
> > > de.sundn.prod.sunshine.xml.XMLUtil.selectSingleNode(XMLUtil.java:102)
> > > ---------
> > > java.lang.ArrayIndexOutOfBoundsException
> > >         at
> > > org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.
> > > java:568)
> > >         at org.apache.xpath.XPathContext.getDTM(XPathContext.java:181)
> > >         at
> > >
> org.apache.xpath.axes.LocPathIterator.setRoot(LocPathIterator.java:360)
> > >         at
> > > org.apache.xpath.axes.WalkingIteratorSorted.setRoot(WalkingIterato
> > > rSorted.ja
> > >
> > > va:53)
> > >         at
> > >
> org.apache.xpath.axes.LocPathIterator.execute(LocPathIterator.java:242)
> > >         at org.apache.xpath.XPath.execute(XPath.java:316)
> > >         at org.apache.xpath.XPathAPI.eval(XPathAPI.java:276)
> > >         at
> > org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:163)
> > >         at
> org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:124)
> > >         at
> org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:104)
> > >         at
> > > de.sundn.prod.sunshine.xml.XMLUtil.selectSingleNode(XMLUtil.java:102)
> > >
> > > If you need more information, please let me know.
> > >
> > > Carsten
> > >
> > > > -----Ursprungliche Nachricht-----
> > > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Gesendet: Mittwoch, 27. Juni 2001 08:11
> > > > An: '[EMAIL PROTECTED]'
> > > > Betreff: Need Cocoon2 test with latest Xalan CVS
> > > >
> > > >
> > > > Would any of you kind Cocoon souls mind trying the Xalan from the
> > latest
> > > > CVS code?  I think I fixed a major problem tonight that I am hoping
> > will
> > > > clear up some of the problems with Cocoon.
> > > >
> > > > Also, incremental two-threaded mode is now off by default.
> > You need to
> > > > call transformerFactory.setAttribute
> > > > ("http://xml.apache.org/xalan/features/incremental";,
> Boolean.TRUE) to
> > > turn
> > > > it on.  You might want to make this option visible from the Cocoon
> > > > configuration level.  (This can only be controlled right now at a
> > global
> > > > level).
> > > >
> > > > If it helps for me to send you a jar, just let me know.
> > > >
> > > > -scott
> > > >
> > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, email: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> (See attached file: classes.zip)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to