Debugging the sitemap
Hallo! Is it possible to somehow generate debugging statements for the sitemap? E.g. I am having doubts which map:when branch is used after a browser selector -- Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Special characters in JavaScript Strings
Hallo! I have to use a JavaScript confirm-box on one of my pages. Unfortunately I have to use special characters - German Umlaute - The problem is that at some point the umlaute get Transformed into entities, and the confirm-box text is not treated like HTML, so I get kouml;nnen instead of können displayed. From the xsl: ?xml version=1.0 encoding=UTF-8? head meta http-equiv=Content-Type content=text/html; charset=UTF-8/ . script language=JavaScript type=text/javascript var warningText = Ihre Login-Angaben waren zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten Fehleintrag gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben, können Sie es sich per E-Mail zuschicken lassen. Möchten Sie Ihr Passwort beantragen?; function warn() { var mailPassword = confirm(warningText); if (mailPassword) { window.location.href = l11; } } From the sidemap: /map:transformers map:serializers default=html encodingUTF-8/encoding /map:serializers The problem persists when I use the i18n transformer: var warningText = i18n:text i18n:key=EL50Ihre Login-Angaben waren zwei Mal falsch. Bitte beachten Sie, dass Ihr Konto nach dem dritten Fehleintrag gesperrt wird.\n Falls Sie Ihr Passwort vergessen haben, können Sie es sich per E-Mail zuschicken lassen. Möchten Sie Ihr Passwort beantragen?/i18n:text I would be grateful for any ideas. Thanks, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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: whitespace
Hallo Arje! Many thanks for your great advise. It worked perfectly for us, it saved our day! Greetings Hans Arjé Cahn wrote: Hans, Change the HTML serializer in the sitemap to this: map:serializers default=html map:serializer name=html mime-type=text/html; charset=UTF-8 logger=sitemap.serializer.html src=org.apache.cocoon.serialization.HTMLSerializer !-- [AC] this is necessary to deliver the correct output. It will make sure that there are no extra linefeeds inserted in the code. -- doctype-public-//W3C//DTD HTML 4.0 Transitional//EN /doctype-public doctype-systemhttp://www.w3.org/TR/REC-html40/loose.dtd /doctype-system omit-xml-declarationtrue/omit-xml-declaration encodingUTF-8/encoding indent1/indent /map:serializer /map:serializers Maybe you can leave out encoding, the doctype's and the mime-type headers in your case. I needed them for a specific behaviour. Configuring the HTML serializer like this will keep Cocoon from inserting linefeeds. Good luck Arjé Cahn - Content Management Department Hippo Webworks Grasweg 35 1031 HW Amsterdam The Netherlands Tel +31 (0)20 6345173 Fax +31 (0)20 6345179 arje(at)hippo(dot)nl / www.hippo.nl -Oorspronkelijk bericht- Van: Hans-Michael Rupp [mailto:[EMAIL PROTECTED]] Verzonden: 05 June 2002 15:15 Aan: [EMAIL PROTECTED] Onderwerp: whitespace Hi We are trying to transform a jsp based application with a fairly complicated html design into a XML/XSP/XSLT based application. One problem we have is that the page design (which we cannot easily change) is severely disrupted by extra whitespace added during the transformation processes in Cocoon. E.g. div class=blaa href=blaimg src=blubber //a/div is transformed to div class=blaa href=blaimg src=blubber //a /div which on some pages has catastrophic consequences for the layout. We have already used xsl:strip-space elements=* / xsl:output indent=no / in our stylesheets without any effect. Is there any way to preserve the whitespace exactly the way we want it? Many thanks, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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] - 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] -- Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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]
whitespace
Hi We are trying to transform a jsp based application with a fairly complicated html design into a XML/XSP/XSLT based application. One problem we have is that the page design (which we cannot easily change) is severely disrupted by extra whitespace added during the transformation processes in Cocoon. E.g. div class=blaa href=blaimg src=blubber //a/div is transformed to div class=blaa href=blaimg src=blubber //a /div which on some pages has catastrophic consequences for the layout. We have already used xsl:strip-space elements=* / xsl:output indent=no / in our stylesheets without any effect. Is there any way to preserve the whitespace exactly the way we want it? Many thanks, Hans Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - 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]