[phpXML] Re: [phpXML] Re: [phpXML] Need example for 'context'
Brought to you by:
bs_php,
nigelswinson
From: <tom...@di...> - 2001-10-08 17:01:58
|
Nigel, I'e just tested your supposition - voila ;-) Using for example: Expression: "/surname" Context: "/government[1]/person[3]" Provides a working answer. Though I was a bit surprised that, since there was only a single node for 'government', "context" still required the "/government[1]" syntax. Many thanks for the hint - I never would have guessed that the [1] was needed to define a singular node Tom At 03:58 PM 7/4/01 +0000, Ni...@Sw... wrote: >Try using a context of /government[1] > >The context (I think) has to be a COMPLETE address. Not just an XPath >address that evaluates to only one node. > >I haven't tested this, but I think this is right. > >Nigel > >----- Original Message ----- >From: <tom...@di...> >To: <us...@li...> >Sent: Wednesday, July 04, 2001 2:29 PM >Subject: [phpXML] Need example for 'context' > > > > Hello all, > > > > I need a very specific example for the use of 'context' in the original > > distro examples. > > > > What are inputs that show a highlighted result ? > > "XPath Expression:" > > "XPath Context:" > > > > E.g. what input for each field in the form testsuite.php (processing the > > 'government.xml' file) > > > > Whaterver combination I use (just one example) > > Example (my entries) > > XPath Expression: file://prename > > XPath Context: /government/person > > - I get no result highlighted > > > > Many thanks, > > Tom > > > > > > -- > > This message has been sent through the <phpXML/> user discussion list. > To unsubscribe, please visit > https://sslsites.de/mailinglisten/user/us...@li.../ > > > > >-- >This message has been sent through the <phpXML/> user discussion list. To >unsubscribe, please visit >https://sslsites.de/mailinglisten/user/us...@li.../ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |