On 04/09/07, Florent Georges <[EMAIL PROTECTED]> wrote:
> sebb wrote:
>
> > On 04/09/07, Florent Georges wrote:
>
> > >bindings:
> > > u1=uri 1
> > > u2=uri 2
>
> > >expression:
> > > /u1:elem1/u2:elem2
>
> > > to get the deepest element.
>
> > OK, I now understand that XPath
On 04/09/07, Florent Georges <[EMAIL PROTECTED]> wrote:
> sebb wrote:
>
> Hi
>
> > The expression is entered by the user, which is why it is
> > a pain to use the work-round.
>
> Ok, I misunderstood you. In this case, you should ask the user,
> besides the XPath expression, to bound namespace pr
On 03/09/07, Mukul Gandhi <[EMAIL PROTECTED]> wrote:
> Sorry, I misunderstood your question. Now I can see, there is a sample
> ApplyXPathDOM.java bundled with Xalan-J 2.7.0.
>
> This sample tests the DOM L3 XPath API.
Yes
> I can see, that when the XML document doesn't use namespaces, then
> thi
On 03/09/07, Florent Georges <[EMAIL PROTECTED]> wrote:
> sebb wrote:
>
> Hi
>
> > The application is JMeter - we have an XPath extractor
> > which can be used to extract items from an XML document
> > sample - there is no stylesheet involved, just the XML
> > document and the XPath query.
>
> If
Sorry, I misunderstood your question. Now I can see, there is a sample
ApplyXPathDOM.java bundled with Xalan-J 2.7.0.
This sample tests the DOM L3 XPath API.
I can see, that when the XML document doesn't use namespaces, then
this sample works fine, and is infact a very useful utility.
In fact, I
Thanks, but I'm not using a stylesheet,
The application is JMeter - we have an XPath extractor which can be
used to extract items from an XML document sample - there is no
stylesheet involved, just the XML document and the XPath query.
S///
On 03/09/07, Mukul Gandhi <[EMAIL PROTECTED]> wrote:
> Y
You need to provide the namespace declaration,
xmlns:ns="http://biz.aol.com/schema/2006-12-18"; in the stylesheet
also. Then it should work.
For e.g., this stylesheet
http://www.w3.org/1999/XSL/Transform";
xmlns:ns="http://biz.aol.com/schema/2006-12-18";
I'm using xalan-j 2.7.0; testing using the ApplyXPathDOM sample code.
Sample XML document:
===
http://schemas.xmlsoap.org/soap/envelope/";>
http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
http://biz.aol.com/schema/2006-12-18";>
0
===