xsp to generate html tag containing html tag?
Title: xsp to generate html tag containing html tag? Hi I have a xsp for generating html page. In the xsp page there is some java processing calling some external call to fetch a piece of xhtml and I want to directly output this from my xsp. However, xsp has to contain a root tag and currently I am having something like: html xsp:logic java processing etc. // dom document Document result = /xsp:logic xsp:exprresult/xsp:expr /html but the Document result contains the root tag html already ... so ending up with 2 html tags - one containing the other one. How should I proceed from here (efficiently)? A.T. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
cocoon and svg rasteriser
Title: cocoon and svg rasteriser Hi I am using cocoon 2.0.3. I have a transform to a xml file which contains a xlink to an cocoon pipeline for static images but it does not get rendered into jpeg. image xsl:attribute namespace=http://www.w3.org/1999/xlink name=xlink:hrefcocoon:///svgdiagram/xsl:value-of select=/page/extra/svgbackgroundimage//xsl:attribute /image So I have a pipeline for serving /svgdiagram/something.jpg but the above doesn't work... am I using cocoon:// correctly here? Thanks AT This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
RE: cocoon and svg rasteriser
Title: RE: cocoon and svg rasteriser yeah I found that extra / but still it doesn't work, thanks. I just wonder if I can resolve/expand this url: cocoon://svgdiagram/image.jpg via java in my xsp to the full one... http://server:port/cocoon/svgdiagram/image.jpg using come java call by passing in cocoon://svgdiagram/image.jpg as an argument? Then I will have the full url in my xsl transform. It is because the rasteriser only works if that link is a full http url! Cheers AT -Original Message- From: Steve Schwarz [mailto:[EMAIL PROTECTED]] Sent: 15 December 2003 18:11 To: [EMAIL PROTECTED] Subject: RE: cocoon and svg rasteriser Hi, Unless I'm missing something, it looks like you've got one too many / in your cocoon: statement. How's about: cocoon://svgdiagram/ HTH, Steve I am using cocoon 2.0.3. I have a transform to a xml file which contains a xlink to an cocoon pipeline for static images but it does not get rendered into jpeg. image xsl:attribute namespace=http://www.w3.org/1999/xlink name=xlink:hrefcocoon:///svgdiagram/xsl:value-of select=/page/extra/svgbackgroundimage//xsl:attribute /image So I have a pipeline for serving /svgdiagram/something.jpg but the above doesn't work... am I using cocoon:// correctly here? _ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
right to left language - e.g. arabic, hebrew
Title: right to left language - e.g. arabic, hebrew Hi I am using cocoon 2.0.3 to render utf-8 pages for many differnt languages. How would I add support for right to left languages? Basically I need something to reorder the td tags for tables so that items will become going from right to left ... similary for those align attributes from right to left. etc. Is there such a transform available in cocoon just before i serialise my xml into html? (I have many nested tables... so I don't want to write my codes but simply transform the final output...) What I am thinking of having a flag to switch this feature on and off. Any info would be appreciated because I know little on this right to left language issue. Also since the page is in utf-8 encoding is there a way to tell the browser to flow from right to left by default? Cheers AT This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
XSP making call to fetch html to include for final output?
Title: XSP making call to fetch html to include for final output? Hi I am thinking of writing an xsp page and internally it will try to make a POST request (hiding from the user that we are donig this...) to another web server to fetch a html page and serialises this back as my own html. Could this be done? The returned html from the foreign server is only html and not xhtml and how would I include it in XSP as part of the xml? Any html to xhtml converter in cocoon or even from java api itself? Btw, i am using cocoon 2.0.3. Cheers AT This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
RE: javascript serializer?
Title: RE: javascript serializer? I am trying to setup a full pipeline... so the script is generated depending on some values from database. Anyway I have just done a quick test to use text serialization and it seems to work. Thanks for your help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 29 October 2003 14:32 To: [EMAIL PROTECTED] Subject: Re: _javascript_ serializer? what' your needs ? 1. to read _javascript_ from a source .js 2. to produce your _javascript_ through a pipeline (generation, transformation, serialization if you want jsut to read a .js use map:read -- stavros On Wed, 29 Oct 2003, Tsui, Alban wrote: Hi I am trying to set up a pipeline to generate a _javascript_ file. What serializer do I use? Text? I am using cocoon 2.0.3. Cheers Alban Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
how to mount subsitemap based on request parameters?
Title: how to mount subsitemap based on request parameters? hi I am having an url something like: http://server/cocoon?p1=x=y=z How do I define a pipeline in my main sitemap to determine which subsite map it should go to depending on the first parameter p1 and then passing all request parameters onto the subsitemap for handling? For example: map:match pattern=p1=* map:mount uri-prefix= src="" check-reload=yes/ /map:match I know the above won't work but I am just trying to demonstratte my requirement. Any help would be appreciated and I am using cocoon2.0.3. Cheers Alban Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
cocoon url redirection using action?
Title: cocoon url redirection using action? Hi I want to do some redirection using map:mathc pattern=gateway map:act type=xsp-action src=""> map:redirect-to uri={gatewayredirectURL}/ /map:act /map:match Assuming the redirect url is generated by my action as above, would it automatically redirect all the queryparameters (POSTed) along to the redirect url? Or do I need to do something special in the action codes to pass along the posted query parameters? What I have in mind is that I have a url like: cocoon/gateway and a form is posted to this url and then from my action, it would examine some parameters and then redirect the posted form to another url for further processing by keeping all the request parameters orginally posted to cocoon/gateway. Any help would be appreciated. Thanks. Alban P.S. I am using cocoon 2.0.3 on tomcat. Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
avalon-excalibur-vmxx-20020705.jar in cocoon 2.0.3?
Title: avalon-excalibur-vmxx-20020705.jar in cocoon 2.0.3? Hi I understand that if I deploy cocoon2.0.3 into a JVM1.4 environment I need avalon-excalibur-vm14-20020705.jar instead of the vm12 version. But will avalon-excalibur-vm14-20020705.jar work under JVM1.3?? AT Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
using log4j in cocoon 2.0.3?
Title: using log4j in cocoon 2.0.3? Hi is it possible to use log4j in cocoon 2.0.3 instead of the default one? AT Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
can reader read external url?
Title: can reader read external url? I want to set up a pipeline so that the reader will read in an url as svg and then it immediately pipes out bmp, for example: !-- the query string parameter for url is simply an url path to a svg image -- map:match pattern=*/svg2bmp?url=""> map:read src="" mime-type=svg+xml/ map:serialize type=svg2jpeg/ /map:match I tried but it didn't seem to work. Have I done something wrong? Or can the reader read src as url? Can someone suggest a solution? Alternative I need to write a xsp generator read the url xml/svg and then having a transform just copy the content from the root tag generated from the xsp and then put it through the svg2jpeg serialize step yuk. AT Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
RE: can reader read external url?
Title: RE: can reader read external url? Hi i tried the following but it doesn't work: map:match pattern=*/svg2bmp map:generate src=""> map:serialize type=svg2jpeg/ /map:match The reason I need url as a parameter because this url could be an image on a different server. I am using cocoon 2.0.3 ... do I need to declare anything to use {request-param:url}? AT Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
native encoding for xsp page output
Title: native encoding for xsp page output Hi I have posted a question on setting up html serializer with native encoding and I think I kind of understand that part. Within the xsp page, do I need to do something special to ensure such encoding or will the serializer can handle it automatically? I mean if I have a string coming back from my database as UTF-8. For that java string, do I need to explicitly convert it into shift-jis say if I am using japanese? Do I also need to specificly specify the encoding within the xsp xml file? AT Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
xsp to generate html page with different encoding?
Title: xsp to generate html page with different encoding? hi I want to have a xsp to render a html page containing a form. The character encoding of the page (presumably this will affect the form as well) is determined by a external parameter, e.g. a request param saying something like en, use english character set or something... How would I do that? I have some Strings coming back from my database and the database strings are already in UTF-8. So would that page automatically convert that into the encoding that I want when I do exprmyStringValue/expr in the final output page? Any help would be appreciated. AT Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
RE: dynamic encoding for html serialiser?
Title: RE: dynamic encoding for html serialiser? So you are saying I could do something like: map:match pattern=*/test map:act type=characterencoding map:parameter name=form-encoding value=utf-8/ /map:act map:act type=sethtmlencparam/ !-- set up pipeline param html_enc for serializer -- map:generate type=serverpages src=""> map:serialize type={html_enc}/ /map:match and have several html serializer for different encodings. Correct? I think I will need shiftjis for japanse, some chinese encodings and korean encoding plus standard iso encoding... would cocoon support that? it just seems to me it is a bit strange we can pass that encoding as a parameter into the map:serialize tag. Cheers -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: 16 July 2003 16:25 To: [EMAIL PROTECTED] Subject: Re: dynamic encoding for html serialiser? You declare the encoding as part of the serializer config in the sitemap. if you need the same serializer to use different encodings in different pipelines, you need to declare the serializer once for each of the encodings with a different name each time. Geoff Tsui, Alban wrote: Hi I am trying to write a xsp page directly generating html and my page will take in a parameter which would tell me what final encoding the page should use. SO I tried to manually generate that meta Content=text/html; charset=ISO-8859-1 http-equiv=Content-Type tag ... but my serializer seems to append meta Content=text/html; charset=UTF-8 http-equiv=Content-Type in my final html output. i have not specified any encoding in my html serializer defintion in my sitemap at all... and I have an entry as follows: map:serializers default=html map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=""> map:serializer logger=sitemap.serializer.html mime-type=text/html name=html src=""> buffer-size1024/buffer-size /map:serializer map:serializer logger=sitemap.serializer.svgxml mime-type=image/svg-xml name=svgxml src=""> doctype-public-//W3C//DTD SVG 2303 Stylable//EN/doctype-public doctype-systemhttp://www.w3.org/TR/2000/03/WD-SVG-2303//doctype-system /map:serializer map:serializer mime-type=image/jpeg name=svg2jpeg src=""> parameter name=quality type=float value=0.9/ /map:serializer map:serializer mime-type=image/png name=svg2png src=""> /map:serializers Is there anyway I could effect the final encoding in that meta string generated from the serialiser from within the xsp generator? I am using version 2.0.3 cocoon. AT Join us at Cognos' biggest event of the year/ Enterprise 2003, The Cognos Business Forum/. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit_ http://www.cognos.com/enterprise03_ for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.