[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XPath to match XML from Cocoon Request Generator

Subject: RE: XPath to match XML from Cocoon Request Generator
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 13 May 2003 16:54:38 +0300
cocoon.request
Hi,

> <page>
>   <request xmlns="http://www.apache.org/coccon/requestgenerator/2.0"
>            target="/cocoon/test/request" source="">
>     <requestHeaders>
>   	<header name="accept">image/gif, image/jpeg, ..., */*</header> 
>   	<header name="accept-language">en-gb</header> 
>   	<header name="accept-encoding">gzip, deflate</header> 
>   	<header name="user-agent">Mozilla/4.0 (compatible; MSIE 
> 6.0; Windows
> NT 5.0)</header> 
>   	<header name="host">localhost:8080</header> 
>   	<header name="connection">Keep-Alive</header> 
>     </requestHeaders>
>     <requestParameters /> 
>     <configurationParameters /> 
>   </request>
>   <foo target="bar"/>
> </page>
> 
> I what to access the target attribute of the request element. 
>  I have used:

  /page/x:request/@target

where the prefix x is bound to namespace URI http://www.apache.org/coccon/requestgenerator/2.0.
 
[snip]

> 1) Why is xmlns attribute causing this happening?

See <http://www.w3.org/TR/xpath#node-tests>

  "--except that the default namespace declared with xmlns is not used:--"

Cheers,

Jarno - God Module: Illusion

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.