Re: [newbie] wml serializer
Zein Dowe wrote: > I got this one in my Sitemap: > > name="wml" src="org.apache.cocoon.serialization.XMLSerializer"> > -//WAPFORUM//DTD WML 1.1//EN > http://www.wapforum.org/DTD/wml_1.1.xml > ASCII Did you try 'US-ASCII'? > yes > -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: XInclude generated by XSL
Michael Wechner wrote: > Do you use XInclude or CInclude? XInclude. > Did you ever try with > > ? No, not yet. > Although you then need "another" pipeline to generate included.xml. > > Although your original version should work principally. Yes, I hoped so :-| -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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]>
XInclude generated by XSL
Hi, I want to add an xi:include element by XSLT and then use the xinclude transformer to include the referenced XML. So I tried this: with add-navigation.xsl: http://www.w3.org/1999/XSL/Transform"; xmlns:xi="http://www.w3.org/2001/XInclude";> Unfortunately I get an empty file. So I tried to split. which adds the xi:include element. The result is something like http://www.w3.org/2001/XInclude"; href="included.xml"/> When I save this as 'article1.xml' and change the pipeline to I get http://www.w3.org/2001/XInclude"/> as intended. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: How to match jsessionid?
Piroumian Konstantin wrote: >>>Ah! It should be that servlet container simply strips out >>the session Id and >>>provides a clear URL. In this case you should use an action >>to get the >>>session Id from request and use a matcher like: "foo.*". >> >>How is this done? > > > Take a look at other Session* actions in org.apache.cocoon.acting.* package. > You should do something like this in your act() method: > > Map map = new HashMap(1); > map.put("jsessionid", > ObjectModelHelper.getRequest(objectModel).getSession().getId()); > return map; So, it's not possible only with sitemap things and existing Java code, is it? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: How to match jsessionid?
Piroumian Konstantin wrote: >>From: Johannes Koch [mailto:[EMAIL PROTECTED]] >>Piroumian Konstantin wrote: >> >>>>From: Johannes Koch [mailto:[EMAIL PROTECTED]] >>>> >>>>Hi, >>>> >>>>I have URLs like this: >>>>'foo.do;jsessionid=abcdefg?bar=blah' >>>> >>>>When I try to match it with the wildcard matcher >>>> >>>> ... >>>> >>>>{1} is only '.do'. How can I match the jsessionid part? >>> >>> >>>Try this: and use {2}. >> >>I already tried this. But, unfortunately, the URL is not >>matched by this >>pattern. :-( > > > Ah! It should be that servlet container simply strips out the session Id and > provides a clear URL. In this case you should use an action to get the > session Id from request and use a matcher like: "foo.*". How is this done? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: How to match jsessionid?
Piroumian Konstantin wrote: >>From: Johannes Koch [mailto:[EMAIL PROTECTED]] >> >>Hi, >> >>I have URLs like this: >>'foo.do;jsessionid=abcdefg?bar=blah' >> >>When I try to match it with the wildcard matcher >> >> ... >> >>{1} is only '.do'. How can I match the jsessionid part? > > > Try this: and use {2}. I already tried this. But, unfortunately, the URL is not matched by this pattern. :-( Cocoon 2.0.2 -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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]>
How to match jsessionid?
Hi, I have URLs like this: 'foo.do;jsessionid=abcdefg?bar=blah' When I try to match it with the wildcard matcher ... {1} is only '.do'. How can I match the jsessionid part? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: requests with document function
Johannes Koch wrote: > Cocoon 2.0.2/Tomcat 4.0.1/Java1.3.1_01 > In an XSLT stylesheet I have the following template: > > >select="document('http://www.xyz.org/bla.xml')/fasel"/> > > > ... > > > The template is called only once. > > According to the server log, this results in 5 GET requests for 'bla.xml': > 2 for $bar, 2 for $hasGrmpf and 1 for apply-templates. Correction: 6 GET requests: 2 for $bar, 3 for $hasGrmpf and 1 for apply-templates. If I change the template to (without the '/grmpf'), I have 4 requests. I would have expected to have only one request (for the document function). Can somebody explain the six requests? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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]>
requests with document function
Cocoon 2.0.2/Tomcat 4.0.1/Java1.3.1_01 In an XSLT stylesheet I have the following template: http://www.xyz.org/bla.xml')/fasel"/> ... The template is called only once. According to the server log, this results in 5 GET requests for 'bla.xml': 2 for $bar, 2 for $hasGrmpf and 1 for apply-templates. If I change the template to http://www.xyz.org/bla.xml')"/> (without root element at the end of the XPath expression), I have 4 requests. If, additionally, I change it to (without the '/grmpf'), I have 3 requests. I would have expected to have only one request (for the document function). Can somebody explain the five requests? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - 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: FO/PDF Problem
Hi Derek, Derek Hohls schrieb: > > Hi > > I am trying to learn FO, and have started with the IBM developer works > Tutorial; > http://www-106.ibm.com/developerworks/education/transforming-xml/xmltopdf/index.html > the code samples were orginally designed to run under Cocoon 1, but I > thought *should* > work under 2 as well... > > I get the following errors in the log file: > > INFO(2002-05-03) 13:13.53:964 [cocoon.f] > (/cocoon/stepproj/docs/sonnet.pdf) HttpProcessor[8080][3]/FOTreeBuilder: > building formatting object tree > ERROR (2002-05-03) 13:13.53:964 [cocoon.f] > (/cocoon/stepproj/docs/sonnet.pdf) HttpProcessor[8080][3]/FOTreeBuilder: > Unknown formatting object > http://www.w3.org/1999/XSL/Format^sequence-specification > ERROR (2002-05-03) 13:13.53:964 [cocoon.f] > (/cocoon/stepproj/docs/sonnet.pdf) HttpProcessor[8080][3]/FOTreeBuilder: > Unknown formatting object > http://www.w3.org/1999/XSL/Format^sequence-specifier-alternating There are no fo:sequence-specification or fo:sequence-specifier-alternating in the XSLFO namespace. Perhaps they were part of an old working draft. For list of FO elements, have a look at the FO spec. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Cocoon not recognizing Kannel headers
Hi, [EMAIL PROTECTED] schrieb: > > Johannes Koch wrote > > >Cocoon 1.8.2 only uses the User-Agent header for mapping clients to > >device client classes. As the Kannel doesn't add something to the > >client's User-Agent header, you can't recognize the Kannel > > Thanks for the input. > > I have to apologize but I did'nt understand. > > What's this User-agent header? And does it > mean that Nokia, UPSDK and R380 send such > User-Agent headers (whatever it means)? Read about HTTP headers in the HTTP 1.1 specification: <http://www.w3.org/Protocols/rfc2068/rfc2068> Nokia Toolkit 3.0, when using the WAP 1.2.1 Conformance simulator, sends User-Agent: Nokia-MIT-Browser/3.0 > In short what I want is just as > cocoon is able to recognize that the > request is coming from Nokia, UPSDK > or Ericsson R380, which it does - as I told you - by looking at the 'User-Agent' HTTP header. > cocoon should also > be able to recognize that the request > is coming from Kannel. I can make- if > so desired- changes in the coding of > both Cocoon and Kannel (I have the > source code of both available). > > So what modifications should I make > on either side (Kannel or Cocoon) > including any modifications in coding > (if necessary) to make Cocoon > recognize that the request is coming > from Kannel Well, you could make your Kannel to add something to the User-Agent header. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Cocoon not recognizing Kannel headers
[EMAIL PROTECTED] schrieb: >It is very time-consuming to add each and every >phone model in the cocoon.properties and then >restart Apache each time. So I decided to install >Kannel which is supposedly a WAP gateway. My plan >is to write one line in the cocoon.properties file > >browser.1 = wap=kannel > >and then tell all my clients to connect to >my site using the Kannel gateway. > >I tried to add the header X-WAP-Gateway: which >I believe kannel appends to any of its request: >in cocoon.properties but cocoon did not recognize >this header and refused to deliver WAP content > >browser.1=wap=X-WAP-Gateway > >Next I tried: > >browser.1=wap=Kannel/1.0.3 (I have this >version installed) Cocoon 1.8.2 only uses the User-Agent header for mapping clients to device client classes. As the Kannel doesn't add something to the client's User-Agent header, you can't recognize the Kannel. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: deli
andexor schrieb: > > Yes. Hmm, I tried it with User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 2000) Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* and it worked. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: deli
andexor schrieb: > > I tried IE 5.5, SP2, and Netscape 6.2.1 on Windows 2000. > > I'd like to use Deli, if I can. In cocoon.xconf you disabled and enabled and ? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: deli
andexor schrieb: > > I need to call an XSL template with different values for a parameter based on which >browser a user > is using. I have read the Deli Quick Start Guide and the Introduction to Deli. I >followed the > instructions at http://xml.apache.org/cocoon/developing/deli.html carefully, but >there is no > useful output. > > Here's what I get: > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > Test Page for DELI in Cocoon > > It looks like the deli-capabilities parameter is not getting set. What can I do to >fix this? Maybe you use a browser which a) references no UAProf profile and b) is not caught by the legacy mechanism, because there is no profile configured for that browser. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: deli now working!!!
Hi Rainer, [EMAIL PROTECTED] schrieb: > > Hi guys > > for all of you who haven't been successful to get deli running. Here is > what I did. > > you have to switch to the new sitemap processor in cocoon.xconf > > therefore comment the previous processor > > > > and uncomment the new one > > logger="sitemap"/> > > then it should be working. Good luck! thanks :-) -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Deli problems
Hi there, as there are some recent posts about problems with Deli in Cocoon2.0.2/Tomcat4.0.x environments (Yury, 2002-03-27, and Rainer, 2002-04-09), can one of the developers please enlighten us users how to use Deli or tell us that it's not working in C2.0.2. I used Cocoon 2.0.2 with Tomcat 4.0, 4.0.1, 4.0.3, or 4.0.4-b2-01-LE and have the same problems as Yury. -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: XHTML DOCTYPE - "HTML" vs. "html"/Possible solution
[EMAIL PROTECTED] schrieb: > > "Nicola Ken Barozzi" <[EMAIL PROTECTED]> wrote on 05.03.2002 12:08:34: > > > > > Is the main tag in your document "HTML" or "html" ? > > > > Thanks for the answer, but it's "html", and the W3C validator explicitly > comlains about the doctype declaration. If I change "HTML" to "html" in the > doctype decl of the saved copy of the generated XML, it validates OK. It seems that the HTMLSerializer and even the XHTMLSerializer classes in Xerces still have 'HTML' hardcoded :-( -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: Cocoon2: select with 'accepts()'
Sean Malone schrieb: > > You should use > > > > this will be true when you open the url using the Nokia emulator > look at the default selector in sitemap.xmap Sure it is for Nokia emulator. But I _don't_ want to add each and every wap browser's User-Agent to (and forget one or another). So: how can I make Stefano's example working? -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Cocoon2: select with 'accepts()'
Hi there, in [1] Stefano Mazzocchi gives the following example: He uses 'accepts()' in the value for the test attribute. I tried the following with no success (Cocoon 2.0 on Tomcat 4.0, Win NT 4.0 SP6): I used the Nokia Mobile Toolkit. The string 'text/vnd.wap.wml' is part of the Accept Header. But the HTML version was served. What is wrong with my example? [1] http://www.xml.com/lpt/a/2002/02/13/cocoon2.html -- Johannes Koch . IT Developer Pixelpark AG . http://www.pixelpark.com Rotherstraße 8 . 10245 Berlin . Germany phone: +49 30 5058 - 1288 . fax: - 1355 - Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>