Re: SVG serializer problem
Thanks Andreas. It is probably an IE issue, because the pipeline with **.htm worked from Mozilla. But I really need it to work from IE as well! Is there any way to enforce it? Thank you very much. Anna - Original Message - From: "Andreas Hartmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 10, 2004 17:34 Subject: Re: SVG serializer problem Anna Afonchenko wrote: I use IE6. Do you think that might be the problem? Maybe ... :) I can just give you these hints: - make sure the **.htm isn't matched by another pipeline - try another browser, maybe try wget/curl Good luck, Andreas - Original Message - From: "Andreas Hartmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 10, 2004 17:04 Subject: Re: SVG serializer problem Anna Afonchenko wrote: Hi all. I have a problem with a wildcard matcher that has an svgxml serializer. Pipeline: For URL http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com the pipeline works fine and the static svg is shown. But for URL http://localhost:8080/cocoon/renderings/testSVG/www.ubaccess.com/test.htm I get an empty page, whose source content is ! If I change the serializer to xml, then the correct xml is presented for both URLs above. So I would guess the problem is with the SVG serializer? To me it sounds rather like a browser issue. Which one are you using? Maybe it gets confused by the .htm suffix and assumes text/html as mime-type or something like that. -- Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: aggregate takes too much time
XInclude is faster, but after several requests it slows down (don't know why) CInclude is as slow as . On Mon, 11 Oct 2004 08:30:01 +0200, Jan Hoskens <[EMAIL PROTECTED]> wrote: > Have you tried different options? Besides the sitemap aggregation there > are also some include transformators available: the XInclude and > CInclude may do the same as the aggregation. > > Kind regards, > Jan > > [EMAIL PROTECTED] wrote: > > >Hi all, > > > >Aggregating xml in cocoon takes too much time. > > > >I try to aggregate >10 xml files ( from filesystem: file:/// ) > >It takes about 4-7 seconds just to aggregate w/o transforming :( > > > >Any other faster way to aggregate contents? > > -- Indonesia Cocoon: idcocoon-subscribe @ yahoogroups.com Superbiji @ gmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: aggregate takes too much time
Have you tried different options? Besides the sitemap aggregation there are also some include transformators available: the XInclude and CInclude may do the same as the aggregation. Kind regards, Jan [EMAIL PROTECTED] wrote: Hi all, Aggregating xml in cocoon takes too much time. I try to aggregate >10 xml files ( from filesystem: file:/// ) It takes about 4-7 seconds just to aggregate w/o transforming :( Any other faster way to aggregate contents? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
aggregate takes too much time
Hi all, Aggregating xml in cocoon takes too much time. I try to aggregate >10 xml files ( from filesystem: file:/// ) It takes about 4-7 seconds just to aggregate w/o transforming :( Any other faster way to aggregate contents? -- Indonesia Cocoon: idcocoon-subscribe @ yahoogroups.com Superbiji @ gmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: populating selection list from database
Try this: http://cocoon.apache.org/2.1/userdocs/transformers/sql-transformer.html Add the above transformer to an internal pipeline, write a stylesheet which transforms the results into fd:selection-list markup and then in your form definition point the "src" attribute to your pipeline (e.g. cocoon:/myListPipeline). Alternatively (if you have existing Java APIs/classes above the DB for example and don't want to talk ot the DB directly) you could write your own generator/transformer rather than use the sql transformer Scott. Miller, Andrew (BL) wrote: My apologies for what I am sure is an easy question. I am trying to think of how I should populate a cocoon forms selection list field from a MySQL query. I have a form definition and a form template working fine as is and I can get my sql query to serialise its results in a web browser but now I would like to use these results to populate one of the selection list fields in my form as part of the generation process. One of the samples hints at how to do this but my grasp of cocoon is still quite weak and some tips would be appreciated. Thanks in Advanced Andrew Miller - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: populating selection list from database
Andrew I assume you are familar with the essentials of setting up a mySQL connection to Cocoon... you will then need a few "parts" to assemble this. 1. An entry in the form definition: My Field Label 2. And an entry in the sitemap to create the XML. 3. The XML for the SQL will look something like: http://apache.org/cocoon/forms/1.0#definition"; > http://apache.org/cocoon/SQL/2.0";> SELECT * FROM MyTable 4. And then you can transform this with a stylesheet suited to your data e.g. http://www.w3.org/1999/XSL/Transform"; xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; xmlns:sq2="http://apache.org/cocoon/SQL/2.0"; > I hope there is enough here for you to get started! Cheers Derek (Dont let the Aussies say a South African never helped them!!) >>> [EMAIL PROTECTED] 2004/10/11 07:19:26 AM >>> My apologies for what I am sure is an easy question. I am trying to think of how I should populate a cocoon forms selection list field from a MySQL query. I have a form definition and a form template working fine as is and I can get my sql query to serialise its results in a web browser but now I would like to use these results to populate one of the selection list fields in my form as part of the generation process. One of the samples hints at how to do this but my grasp of cocoon is still quite weak and some tips would be appreciated. Thanks in Advanced Andrew Miller -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multivalue list - set a value greater than 1000
Paul You need to overwrite the default behaviour on the binding which inserts a ',' as the separator for each set of a thousand in the number e.g. 15,000,000 for fifteen million. The *only* solution I have found (and I have had this problem twice now) is to have: in the binding file specification. HTH Derek >>> [EMAIL PROTECTED] 2004/10/07 05:23:22 AM >>> Hi, I have a multivalue widget that is populated with a list of id's and labels. The id's are integers with values greater between 1 and 16000. The widget saves to the database properly and the list loads. However, if a selected widget has a value greater than 1000, while it saves correctly to the database, I am unable to set the value. It seems to silently ignore setting values over 1000. ex. this does not seem to work: myInt1 = new java.lang.Integer(1000); model.dicttype_group[i].otherassignees=[myInt1]; But if I use 999, it works. Is this a bug by any chance? thx! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
populating selection list from database
Title: populating selection list from database My apologies for what I am sure is an easy question. I am trying to think of how I should populate a cocoon forms selection list field from a MySQL query. I have a form definition and a form template working fine as is and I can get my sql query to serialise its results in a web browser but now I would like to use these results to populate one of the selection list fields in my form as part of the generation process. One of the samples hints at how to do this but my grasp of cocoon is still quite weak and some tips would be appreciated. Thanks in Advanced Andrew Miller
Re: JXTemplateGenerator: strange behaviour with jx:set
Oops, this is the email I should have said something about... this one actually describes the problem better... Can anyone actually give me a hand with this one? Even if it's just to point me in the direction of a better list to post the request to... Cheers, Taryn On Thu, 2004-10-07 at 16:45, Taryn East wrote: > Hi there. > > While trawling through the web hoping to find a solution to a bug we've > found I discovered an email with the above subject line in the archives > of this list: > http://archives.real-time.com/mailman/listinfo/cocoon-users > > relevant post: > http://archives.real-time.com/pipermail/cocoon-users/2004-May/051335.html > > that list seems to still be active (judging by the ongoing additions to > the archive page) but I can't actually subscribe... however the content > of the emails looks identical to the content of this mailing list... > thus why I have joined here. > > nyway, I was wondering if anyone here had a solution to the problem > given in the email above, as it seems to be occurring for me also. > > Now, caveat here: I actually am not the person administering to our > version of cocoon - I am dealing only with the JXtemplates... so I get > to see the problem, but won't actually be the one implementing a fix... > also, I don't know many of the details about: > - the cocoon setup > - the flow and additional java stuff > > as I'll be getting this info second=hand from the guy that does do this > stuff... and he's pretty buys etc... > > > The problem, as it appears to us, is that sometimes, when we pass a > JXPath node/text() through to some sort of attribute (eg action="x" or > href="" - note this is an attribute in the html of the template, and > even sometimes occurs in, say, jx:formatnumber num="x") > > the JXtemplate just chucks a spak and doesn't give me a nice string, but > somehow treis to pass through an array of nodes... > > which means that, when I have a close look at the source that has been > built) i get something along the lines of: > click here > > instead of something like: > click here > > or, worse, I get an exception thrown such as: > > org.apache.cocoon.ProcessingException: Failed to execute pipeline.: > file:/projects/appsroot/asic/screens/perextr.jx:820:54:java.lang.NumberFormatException: > For input string: "[Lorg.w3c.dom.Node;@346762" > > cause: java.lang.NumberFormatException: For input string: > "[Lorg.w3c.dom.Node;@346762" > > when I try to pass it through to something like formatnumber. > > Now, stuff I've checked: > 1. the XML that I'm parsing at this point only has one node on it, ie > it's something like: 12345... > there are no other tags at this level of the DOM > > 2. The JXPath expression uses the correct tag names etc and isn't at a > higher level (so it's not accidentally gathering a whole bunch of > orgNum's raethr than just the one it should). > > 3. The guy that does the java stuff is the person that said it was > getting a whole bunch of nodes instead of just one - not sure exactly > how he figured this out. > > 4. Said same guy hacked up a java function that will force this thing to > make a string, so if I apply the following hack to any given situation > it will always work fine: > > > note: acnconv just does a formatNumber on the given number... > > 5. It doesn't *always* break... we haven't yet figured out when/why it > does break because it happens so intermittently and there does not seem > ot be any distinguishing characteristic of the data that does break. > However, if a given set of XML breaks at some point, it always breaks. > ie, at least it's repeatable (if not deterministic). > > > I'm really at a loss here as I know so little about how all this works > so I can't even begin to go looking for a solution. > We're currently faced with the possibility of having to put the > aforementioned hack into *every* spot that JXPath is required to be used > in an attribute... which is not a pretty thought at all. > > Any help would be *greatly* appreciated as I'd really like to actually > solve the problem, rather than have to perpetuate an ugly hack. > > Cheers and thanks in advance, > Taryn > > > > > > Role: > Junior Developer > > Email: > [EMAIL PROTECTED] > Phone: > +61 2 9429 8901 > Fax: > +61 2 9429 8999 > Internet: > www.gxs.com.au > > > > > Confidential Communication: > This e-mail message and any attachments may contain copyright material > of GlobalX Information Services Pty Ltd (GIS) A.B.N. 00 073 436 414 > and/or information that is confidential and subject to privilege. If you > are not the intended recipient of this e-mail, please contact GIS > immediately by return e-mail or by telephone on (612) 9429 8900. In this > case, you must not read, print, disseminate, copy, store or act in > reliance on this e-mail or any of the accompanying attachments; and you > must destroy all copies of this e-mail message. This noti
Re: Unable to pass inputmodule value as parameter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Another alternative, if your variable is in the query string, is to use the Request Parameter input module. Your sitemap would look something like: This causes the sitemap to ask the input module bound to the "request-param" prefix for the value "date." That input module will, by default, look at the query string and pull out the value from there. Brian Andre Juffer wrote: > Gerrit-Jan, > > as far as I can see, the parameter 'date' in the sitemap is not set > anywhere. I don't see immediately anything wrong in your files. I assume > you are calling this pipeline with something like > > http://yourhost/.../cdls_artikelen.xml?date=something > > You probably would need to extract the value of 'date' from the request. > Try to use , which makes all request parameters > available to the sitemap: > > > > > > > > > > > . > > > 'date' is set by the action. > > Alternatively, you could make all request parameters available to the > stylesheet artikel_lijst2artikel.xsl, in which case you would not need > to set the 'date' in the sitemap. > > Cheers, > Andre. > > gerritjan wrote: > >> Hello, >> >> My sitemap looks like: >> >> >> >> >> >> >> >> >> My "style/xsl/artikel_lijst2artikel.xsl" looks like: >> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >> xmlns:dir="http://apache.org/cocoon/directory/2.0";> >> >> >> >> >> >> >> >> ../../content/artikelen/> select="@name"/> >> > select="document($xml_bestand)/child::onderwerpen/child::onderwerp"> >> > select="substring-before(@name,'.xml')"/> >> >> >> >> >> >> >> My output looks like this: >> >> http://apache.org/cocoon/directory/2.0";> >> >> ... >> >> >> >> >> The parameter value does not show up as the attribute value of >> attribute "datum_vandaag" >> I tried to replace the {date} (in the sitemap!) with >> {system-property:substring-before(user.home, user.name)} >> (used in the cocoon documentation!) >> What am I missing? >> >> */_Gerritjan Koekkoek_/* > > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (MingW32) Comment: What is this? http://pgp.ardvaark.net iD8DBQFBabAp3YdPnMKx1eMRAkFQAKDDqK2OGn2FUpdPBlThl536TcsIPQCfRyRC n/PrzTTdpGjnAYBHFd+A/2E= =MVFo -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to pass inputmodule value as parameter
Gerrit-Jan, as far as I can see, the parameter 'date' in the sitemap is not set anywhere. I don't see immediately anything wrong in your files. I assume you are calling this pipeline with something like http://yourhost/.../cdls_artikelen.xml?date=something You probably would need to extract the value of 'date' from the request. Try to use , which makes all request parameters available to the sitemap: . 'date' is set by the action. Alternatively, you could make all request parameters available to the stylesheet artikel_lijst2artikel.xsl, in which case you would not need to set the 'date' in the sitemap. Cheers, Andre. gerritjan wrote: Hello, My sitemap looks like: My "style/xsl/artikel_lijst2artikel.xsl" looks like: http://www.w3.org/1999/XSL/Transform"; xmlns:dir="http://apache.org/cocoon/directory/2.0";> ../../content/artikelen/ My output looks like this: http://apache.org/cocoon/directory/2.0";> ... The parameter value does not show up as the attribute value of attribute "datum_vandaag" I tried to replace the {date} (in the sitemap!) with {system-property:substring-before(user.home, user.name)} (used in the cocoon documentation!) What am I missing? */_Gerritjan Koekkoek_/* -- Andre H. Juffer | Phone: +358-8-553 1161 The Biocenter and| Fax: +358-8-553-1141 the Dep. of Biochemistry | Email: [EMAIL PROTECTED] University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]