RE: SunRise - Valid User Data
Hi Richard, the namespace for the sunShine transformer is: http://cocoon.apache.org/sunshine/1.0 Have a look at http://xml.apache.org/cocoon/developing/webapps/sunshine.html Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 10:27 PM To: C2 Users Subject: Re: SunRise - Valid User Data Hi Guys / Carsten, I still cant get the data on the foo-resource.xml... Here's my sub-sitemap... map:components map:generators default=file/map:generators map:transformers default=xslt map:transformer name=sunShine src=org.apache.cocoon.sunshine.transformation.SunShineTransformer/ /map:transformers . . . map:actions map:action name=sunRise-login src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction/ /map:actions /map:components !-- === Pipelines = -- map:pipelines map:pipeline map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=sunShine / /map:act map:serialize type=xml / /map:match and heres my foo-resource.xml ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/session/1.0; message YOU ARE LOGGED!!!/message session:getxml context=authentication path=/authentication/ID / /document I am not having any error its jujst that the session:getxml is not even changed. The output is thesame as my foo-resource.xml. I dont think that there is a authentication context. Any Ideas? Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SunRise - Valid User Data
Thanks, checking this out. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 11:46 PM Subject: RE: SunRise - Valid User Data Hi Richard, the namespace for the sunShine transformer is: http://cocoon.apache.org/sunshine/1.0 Have a look at http://xml.apache.org/cocoon/developing/webapps/sunshine.html Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 10:27 PM To: C2 Users Subject: Re: SunRise - Valid User Data Hi Guys / Carsten, I still cant get the data on the foo-resource.xml... Here's my sub-sitemap... map:components map:generators default=file/map:generators map:transformers default=xslt map:transformer name=sunShine src=org.apache.cocoon.sunshine.transformation.SunShineTransformer/ /map:transformers . . . map:actions map:action name=sunRise-login src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction/ /map:actions /map:components !-- === Pipelines = -- map:pipelines map:pipeline map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=sunShine / /map:act map:serialize type=xml / /map:match and heres my foo-resource.xml ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/session/1.0; message YOU ARE LOGGED!!!/message session:getxml context=authentication path=/authentication/ID / /document I am not having any error its jujst that the session:getxml is not even changed. The output is thesame as my foo-resource.xml. I dont think that there is a authentication context. Any Ideas? Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SunRise - Valid User Data
Hi Carsten, I am getting an error that the context authentication does not exist this is my xml now... === ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/sunshine/1.0; message YOU ARE LOGGED!!! /message session:getxml context=response path=/authentication/ID / /document = and this is sitemap entries... = map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=sunShine / /map:act !-- map:transform src = foo-resource.xsl/ map:serialize / -- map:serialize type=xml / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match = question: after the map:match pattern=foo-authuser, will there be sax streams coming from foo-user.xml/xsl, then after it was serialized will go the the ... map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ ??? Thanks Carsten!!! - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 11:46 PM Subject: RE: SunRise - Valid User Data Hi Richard, the namespace for the sunShine transformer is: http://cocoon.apache.org/sunshine/1.0 Have a look at http://xml.apache.org/cocoon/developing/webapps/sunshine.html Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 10:27 PM To: C2 Users Subject: Re: SunRise - Valid User Data Hi Guys / Carsten, I still cant get the data on the foo-resource.xml... Here's my sub-sitemap... map:components map:generators default=file/map:generators map:transformers default=xslt map:transformer name=sunShine src=org.apache.cocoon.sunshine.transformation.SunShineTransformer/ /map:transformers . . . map:actions map:action name=sunRise-login src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction/ /map:actions /map:components !-- === Pipelines = -- map:pipelines map:pipeline map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=sunShine / /map:act map:serialize type=xml / /map:match and heres my foo-resource.xml ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/session/1.0; message YOU ARE LOGGED!!!/message session:getxml context=authentication path=/authentication/ID / /document I am not having any error its jujst that the session:getxml is not even changed. The output is thesame as my foo-resource.xml. I dont think that there is a authentication context. Any Ideas? Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SunRise - Valid User Data
-Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:06 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Hi Carsten, I am getting an error that the context authentication does not exist this is my xml now... === ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/sunshine/1.0; message YOU ARE LOGGED!!! /message session:getxml context=response path=/authentication/ID / /document = Ehm, you invoke getxml with context=response. For Cocoon 2.0.x the context name is sunrise! See http://xml.apache.org/cocoon/developing/webapps/sunrise.html HTH Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SunRise - Valid User Data
Richard, from the documentation: sunshine:getxml context=sunRise path=/authentication/ID/ !-- Get the ID -- sunshine:getxml context=sunRise path=/authentication/data/username/ Note the R in sunRise. Matthew -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:44 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Hi Carsten, ah, changed it to... ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/sunshine/1.0; message YOU ARE LOGGED!!! /message session:getxml context=sunrise path=/authentication/ID / /document and i got an error that the context sunrise does not exist.. i still am doing some reading on the url that you gave me. THANKS - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 25, 2002 12:39 AM Subject: RE: SunRise - Valid User Data -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:06 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Hi Carsten, I am getting an error that the context authentication does not exist this is my xml now... === ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/sunshine/1.0; message YOU ARE LOGGED!!! /message session:getxml context=response path=/authentication/ID / /document = Ehm, you invoke getxml with context=response. For Cocoon 2.0.x the context name is sunrise! See http://xml.apache.org/cocoon/developing/webapps/sunrise.html HTH Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SunRise - Valid User Data
Thanks Matthew, just noticed it too... - Original Message - From: Matthew Langham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 25, 2002 12:53 AM Subject: RE: SunRise - Valid User Data Richard, from the documentation: sunshine:getxml context=sunRise path=/authentication/ID/ !-- Get the ID -- sunshine:getxml context=sunRise path=/authentication/data/username/ Note the R in sunRise. Matthew -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:44 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Hi Carsten, ah, changed it to... ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/sunshine/1.0; message YOU ARE LOGGED!!! /message session:getxml context=sunrise path=/authentication/ID / /document and i got an error that the context sunrise does not exist.. i still am doing some reading on the url that you gave me. THANKS - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 25, 2002 12:39 AM Subject: RE: SunRise - Valid User Data -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:06 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Hi Carsten, I am getting an error that the context authentication does not exist this is my xml now... === ?xml version=1.0 ? document xmlns:session=http://cocoon.apache.org/sunshine/1.0; message YOU ARE LOGGED!!! /message session:getxml context=response path=/authentication/ID / /document = Ehm, you invoke getxml with context=response. For Cocoon 2.0.x the context name is sunrise! See http://xml.apache.org/cocoon/developing/webapps/sunrise.html HTH Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SunRise - Valid User Data
Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act map:transform src = foo-resource.xsl/ map:serialize / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SunRise - Valid User Data
Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act map:transform src = foo-resource.xsl/ map:serialize / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SunRise - Valid User Data
You will find the namespace for session:getxml in the documentation (I have to look it up, too) You can put the element in your foo-resource.xml and put the session transformer behind your generator. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:01 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act map:transform src = foo-resource.xsl/ map:serialize / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SunRise - Valid User Data
Thanks. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 1:37 AM Subject: RE: SunRise - Valid User Data You will find the namespace for session:getxml in the documentation (I have to look it up, too) You can put the element in your foo-resource.xml and put the session transformer behind your generator. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:01 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act map:transform src = foo-resource.xsl/ map:serialize / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SunRise - Valid User Data
Hi Carsten, Just to confirm, when you say "and put the session transformer behind your generator.". You mean the map:transformer logger="sitemap.transformer.readDOMsession" name="readDOMsession" src="org.apache.cocoon.transformation.ReadDOMSessionTransformer"/ And it should be coded like this... map:match pattern="foo-protected" map:act type="sunRise-auth" map:parameter name="handler" value="foo-handler"/ map:generate src="foo-resource.xml"/ map:transform type="readDOMsession" / /map:act map:transform src = " "foo-resource.xsl"/<BR"> map:serialize / !-- map:serialize type="xml" / --/map:match Thanks Richard - Original Message - From: "Richard Reyes" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 4:43 PM Subject: Re: SunRise - Valid User Data Thanks. ----- Original Message ----- From: "Carsten Ziegeler" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 1:37 AM Subject: RE: SunRise - Valid User DataYou will find the namespace for session:getxml in the documentation (I have to look it up, too) You can put the element in your foo-resource.xml and put the session transformer behind your generator. Carsten-Original Message----- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:01 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. ----- Original Message ----- From: "Carsten Ziegeler" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformerand some commands like these: session:getxml context="authentication" path="/authentication/ID"/ With the above you get the ID of the user. Try a session:getxml context="authentication" path="/"/ and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 25, 2002 12:48 AMTo: C2 UsersSubject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context="authentication" path="/authentication/ID"/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern="foo-protected" map:act type="sunRise-auth" map:parameter name="handler" value="foo-handler"/ map:generate src="foo-resource.xml"/ /map:act map:transform src =" "foo-resource.xsl"/<BR"> map:serialize / /map:match map:match pattern="foo-authuser" map:generate src="foo-user.xml" / map:transform src="foo-user.xsl" map:parameter name="use-request-parameters" value="true" / /map:transform map:serialize type = "xml" / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SunRise - Valid User Data
No, I meant the session transformer: map:transformer name=session / but this transformer only exists in 2.1-dev. I see you use 2.0.x. It's called sunShine transformer there. Apart from the name your pipeline is ok. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:26 AM To: C2 Users Subject: Re: SunRise - Valid User Data Hi Carsten, Just to confirm, when you say and put the session transformer behind your generator.. You mean the map:transformer logger=sitemap.transformer.readDOMsession name=readDOMsession src=org.apache.cocoon.transformation.ReadDOMSessionTransformer/ And it should be coded like this... map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=readDOMsession / /map:act map:transform src = foo-resource.xsl/ map:serialize / !-- map:serialize type=xml / -- /map:match Thanks Richard - Original Message - From: Richard Reyes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 4:43 PM Subject: Re: SunRise - Valid User Data Thanks. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 1:37 AM Subject: RE: SunRise - Valid User Data You will find the namespace for session:getxml in the documentation (I have to look it up, too) You can put the element in your foo-resource.xml and put the session transformer behind your generator. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:01 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act map:transform src = foo-resource.xsl/ map:serialize / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e
Re: SunRise - Valid User Data
Thanks, I'll check it out. FYI, I'm using binary released C2.0.3 for sdk 1.3... - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 2:38 AM Subject: RE: SunRise - Valid User Data No, I meant the session transformer: map:transformer name=session / but this transformer only exists in 2.1-dev. I see you use 2.0.x. It's called sunShine transformer there. Apart from the name your pipeline is ok. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:26 AM To: C2 Users Subject: Re: SunRise - Valid User Data Hi Carsten, Just to confirm, when you say and put the session transformer behind your generator.. You mean the map:transformer logger=sitemap.transformer.readDOMsession name=readDOMsession src=org.apache.cocoon.transformation.ReadDOMSessionTransformer/ And it should be coded like this... map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=readDOMsession / /map:act map:transform src = foo-resource.xsl/ map:serialize / !-- map:serialize type=xml / -- /map:match Thanks Richard - Original Message - From: Richard Reyes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 4:43 PM Subject: Re: SunRise - Valid User Data Thanks. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 1:37 AM Subject: RE: SunRise - Valid User Data You will find the namespace for session:getxml in the documentation (I have to look it up, too) You can put the element in your foo-resource.xml and put the session transformer behind your generator. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:01 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act map:transform src = foo-resource.xsl/ map:serialize / /map:match map:match pattern=foo-authuser map:generate src=foo-user.xml / map:transform src=foo-user.xsl map:parameter name=use-request-parameters value=true / /map:transform map:serialize type = xml / /map:match Thanks Richard - Please check that your question has not already been answered in the FAQ before posting. http
RE: SunRise - Valid User Data
Yes Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:44 AM To: C2 Users Subject: Fw: SunRise - Valid User Data Hi Carsten, Is it this one??? map:transformer name=sunShine src=org.apache.cocoon.sunshine.transformation.SunShineTransformer/ Thanks a Lot - Original Message - From: Richard Reyes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 5:38 PM Subject: Re: SunRise - Valid User Data Thanks, I'll check it out. FYI, I'm using binary released C2.0.3 for sdk 1.3... - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 2:38 AM Subject: RE: SunRise - Valid User Data No, I meant the session transformer: map:transformer name=session / but this transformer only exists in 2.1-dev. I see you use 2.0.x. It's called sunShine transformer there. Apart from the name your pipeline is ok. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:26 AM To: C2 Users Subject: Re: SunRise - Valid User Data Hi Carsten, Just to confirm, when you say and put the session transformer behind your generator.. You mean the map:transformer logger=sitemap.transformer.readDOMsession name=readDOMsession src=org.apache.cocoon.transformation.ReadDOMSessionTransformer/ And it should be coded like this... map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ map:transform type=readDOMsession / /map:act map:transform src = foo-resource.xsl/ map:serialize / !-- map:serialize type=xml / -- /map:match Thanks Richard - Original Message - From: Richard Reyes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 4:43 PM Subject: Re: SunRise - Valid User Data Thanks. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 1:37 AM Subject: RE: SunRise - Valid User Data You will find the namespace for session:getxml in the documentation (I have to look it up, too) You can put the element in your foo-resource.xml and put the session transformer behind your generator. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:01 AM To: [EMAIL PROTECTED] Subject: Re: SunRise - Valid User Data Thanks for the prompt reply!!! But where would I put these codes I only got foo-resource.xml and foo-resource.xsl files. Can I put them in the xsl file? How about the session:getxml namespace? Thanks Again. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 12:58 AM Subject: RE: SunRise - Valid User Data Yes, to get the information of your user data, you can use the session transformer and some commands like these: session:getxml context=authentication path=/authentication/ID/ With the above you get the ID of the user. Try a session:getxml context=authentication path=// and you see all the information stored for the user. Carsten -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:48 AM To: C2 Users Subject: SunRise - Valid User Data Hi Guys, I am following Matthew Langham's samples on the Sunrise components ( http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunris eComponent s.html ). I am quite sure that I have been able to configure it correctly. The question is how can I access the user data ( located at foo-user.xml ) after the user was authenticated? Will I need to use codes like these.. session:getxml context=authentication path=/authentication/ID/ Below are some snippets from my sitemaps, I have been able to display the content of foo-resource.xml and along with it Ialso want to display the data in foo-user.xml map:match pattern=foo-protected map:act type=sunRise-auth map:parameter name=handler value=foo-handler/ map:generate src=foo-resource.xml/ /map:act
Re: SunRise - Valid User Data
Hi Guys / Carsten, I still cant get the data on the foo-resource.xml... Here's my sub-sitemap... map:components map:generators default="file"/map:generators map:transformers default="xslt" map:transformer name="sunShine" src="org.apache.cocoon.sunshine.transformation.SunShineTransformer"/ /map:transformers . . . map:actions map:action name="sunRise-login" src="org.apache.cocoon.sunshine.sunrise.acting.LoginAction"/ /map:actions /map:components !-- === Pipelines = -- map:pipelines map:pipeline map:match pattern="foo-protected" map:act type="sunRise-auth" map:parameter name="handler" value="foo-handler"/ map:generate src="foo-resource.xml"/ map:transform type="sunShine" / /map:act map:serialize type="xml" / /map:match and heres my foo-resource.xml ?xml version="1.0" ? document xmlns:session="http://cocoon.apache.org/session/1.0" message YOU ARE LOGGED!!!/message session:getxml context="authentication" path="/authentication/ID" / /document I am not having any error its jujst that the session:getxml is not even changed. The output is thesame as my foo-resource.xml. I dont think that there is a authentication context. Any Ideas? Thanks Richard