cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: sunRise session XPath
Date Mon, 25 Mar 2002 12:52:45 GMT


> -----Original Message-----
> From: Bert Van Kets [mailto:bert@visitronics.be]
> Sent: Monday, March 25, 2002 1:47 PM
> To: cocoon-dev@xml.apache.org
> Subject: sunRise session XPath
> 
> 
> When I try to read nodes from the sunRise session context I I 
> can't got any 
> deeper than the first level.
> 
> When I use this file:
> <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
>    <sunshine:getxml context="sunRise" path="/"/>
> </doc>
> 
>   I get :
> <?xml version="1.0" encoding="UTF-8" ?>
> - <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
> - <authentication>
> <ID>bert</ID>
> <role />
> - <data>
> <name>bert</name>
> <role />
> <ID>bert</ID>
> <user>bert</user>
> <title />
> <firstname />
> <lastname />
> <company />
> <street />
> <zipcode />
> <city />
> <country />
> <phone />
> <fax />
> <email />
> <bankid />
> <bankname />
> <accountid />
> </data>
> <useragent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
> T312461)</useragent>
> <type>sunrise</type>
> <media>html</media>
> </authentication>
> </doc>
> 
> When I request just the ID using
> <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
>    <sunshine:getxml context="sunRise" path="/authentication/ID"/>
> </doc>
> 
> I get
> - <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
> <ID>bert</ID>
> <role />
> - <data>
> <name>bert</name>
> <role />
> <ID>bert</ID>
> <user>bert</user>
> <title />
> <firstname />
> <lastname />
> <company />
> <street />
> <zipcode />
> <city />
> <country />
> <phone />
> <fax />
> <email />
> <bankid />
> <bankname />
> <accountid />
> </data>
> <useragent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
> T312461)</useragent>
> <type>sunrise</type>
> <media>html</media>
> </doc>
> 
> So only the root node from the context is gone.  I was expecting 
> to get the 
> ID of the user, not the whole context.  The sunRise docs specifically 
> states that it must be possible to request the ID of the user by using 
> XPath statements in the sunshine:getxml node.  Am I missing here 
> something 
> or is the session context not treated as XML nodes, but as text?
> 
It is treated as XML and the docs are correct, so this might be a bug.
I will look into the code as soon as I have time, hopefully this week,
but perhaps not before eastern.

Carsten

> Thanks,
> Bert
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message