How can I put this java variable to xml attribute?

2005-04-08 Thread Jarry Liu
Hi, everyone, I use xsp get the values of two strings? How can I use these variables in the xml form. My code is as following. Thanks for your kind help. Jarry ... int i; int num = 1; String col = ; String filesname = ; String fname = filesname.substrin

Re: How can I put this java variable to xml attribute?

2005-04-08 Thread Jarry Liu
Carlos, Thanks so much. I got it. Here is my code: col file Jarry On Apr 8, 2005 2:40 PM, Carlos Chávez <[EMAIL PROTECTED]> wrote: > > Jarry Liu Escribio :-) > > Hi, everyone, > > > > I use xsp get the values of two strings? How can I use

How can I upload multiple files at same time ?

2005-04-12 Thread Jarry Liu
Hi, everyone. I want to use checkbox to selelct multiple files and upload them at the same time? But if I use < input type ="file.>, it can only support one file. Do you have any idea? Thanks. Jarry - To unsubscribe, e-mai

Re: How can I upload multiple files at same time ?

2005-04-12 Thread Jarry Liu
Yes, if I put as , in the file browser, I can only chooser one file to upload. Do you have any solution to choose multilple files at the same time. On Apr 12, 2005 10:59 AM, Aurélien DEHAY <[EMAIL PROTECTED]> wrote: > Hi. > > Le mardi 12 avril 2005 à 10:54 -0400, Jarry Liu a

Re: How can I upload multiple files at same time ?

2005-04-12 Thread Jarry Liu
> > Regards > Jorg > > Jarry Liu wrote: > > Yes, if I put as , in the file > > browser, I can only chooser one file to upload. Do you have any > > solution to choose multilple files at the same time. > > > > > > > > > > On Apr 12, 2005 1

How can I pass this parameter to xsl file

2005-04-19 Thread Jarry Liu
Hi everyone, I have a question about parameter passing from script file to xsl as following: in file " tran.js ": function selectcol(){ var colle= cocoon.request.get("collection"); cocoon.sendpage("browse/", {col:colle}); } in sitemap.xmap: . Then, in " dir.xsl "

Re: How can I pass this parameter to xsl file

2005-04-19 Thread Jarry Liu
Great! It works! Thanks Peter. On 4/19/05, Peter Kröpfl <[EMAIL PROTECTED]> wrote: > > > in file " tran.js ": > > > > function selectcol(){ > > var colle= cocoon.request.get("collection"); > > cocoon.sendpage("browse/", {col:colle}); > > } > > > > in sitemap.xmap: > > > > > >

Re: How can I pass this parameter to xsl file

2005-04-20 Thread Jarry Liu
I got the correct result in both way. So as for in sitemap, it handle the parameter both from Javascript function and html form. I am not sure if I understand it rightly. Regards, Jarry On 4/19/05, Upayavira <[EMAIL PROTECTED]> wrote: > Jarry Liu wrote: > > Great! It work

Can I use both types of "jx" and "serverpages" in one generator

2005-04-20 Thread Jarry Liu
Hi, everyone, In my sitemap, I have I need some value from javascript, and at the same time, I need use xsp to handle this value, so I needtoo. Now I can solve this problem in two steps with two seperate generator. Is there any solution to put this two ( "jx and serverpages" ) together in

backup database

2005-05-03 Thread Jarry Liu
Hi, I need help for backup xml database. As you know, for creating, we can use with xmldb transformer. But it seems that no specific transformer for backup. Anybody can give me some idea how to backup the xml database. Thanks. Jarry --

Can I save the result to a xml file?

2005-06-03 Thread Jarry Liu
Hi all, I use XPathQuery get some information from xmldb. How can I save the result to a file? Thanks in advance. Jarry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

questions about loading xml file

2005-06-09 Thread Jarry Liu
Hi all, I try to use javascript to load xml file. Followings are part of the code. (got them from http://www.quirksmode.org/dom/importxml.html). I am using Mac, so it can pop out "1" "2" "5". But "6" never shows up. Anbody can help me to figure out why I can't load the xml file? Thank a lot. J

Re: questions about loading xml file

2005-06-10 Thread Jarry Liu
t;[EMAIL PROTECTED]> wrote: > Jarry Liu wrote: > > >Hi all, > > > >I try to use javascript to load xml file. Followings are part of the > >code. (got them from http://www.quirksmode.org/dom/importxml.html). > >I am using Mac, so it can pop out "1" "2&

questions about cocoon flow

2005-06-17 Thread Jarry Liu
Hi, all This question is about the samples in cocoon 2.1.6, under samples/blocks/javaflow. in samples.xml: ... Example for the Java Flow implementation ... in sitemap.xmap: ... ... ... >From the sitemap, after I click Calculator link, it will call function calcula

Re: questions about cocoon flow

2005-06-17 Thread Jarry Liu
hfuss <[EMAIL PROTECTED]> wrote: > Jarry Liu wrote: > > > No method 'docalculator' found. {...calculator=public void > > org.apache.cocoon.samples.flow.java.CalculatorFlow.doCalculator(), > > ..}. > > > > It seems that they defind calculator as doCal

Re: questions about cocoon flow

2005-06-20 Thread Jarry Liu
Gregor and Geert, Thanks for your help. As Gregor said, it is just a naming conversion. Same as the relationship between GET and DOGET. Wast 4 hours to find it (*_*)!! On 6/17/05, Geert Josten <[EMAIL PROTECTED]> wrote: > Hi, > > It must be something in the JavaInterpreter class of the ja

question about control flow

2005-07-07 Thread Jarry Liu
Hi, all I am learning to use cocoon control flow with java. My question is if I can pass argument in the function call in sitemap.xmap. For example, can I do something like this : I tried and it seems that cocoon doesn't understand it, and it receives the whole part of process(

RE: question about control flow

2005-07-07 Thread Jarry Liu
Hi, I just checked again and found I can pass argument as following. If using javascript, I can get the value of filename by var param = cocoon.parameters.filename; But how can I get it if I use java instead of javascript. Jarry ---

Re: question about control flow

2005-07-07 Thread Jarry Liu
coon.components.flow.java.ContinuationContext; > > > > ContinuationContext context = (ContinuationContext) > Continuation.currentContinuation().getContext(); > Parameters parameters = context.getParameters(); > String foo = parameters.getParameter( "foo" ); > > > HTH, > &g

retrieve value in sitemap which was passed from java fie

2005-07-08 Thread Jarry Liu
Hi, I am using cocoon control flow with java. I add an variable named as stepIndex with value 10 in a Hashtable ht, and using sendPageAndWait. How can I retrieve the value of stepIndex in sitemap.xmap? I tried to use request-param, but doesn't work. Any idea? Thanks. Jarry Here is part of t

question about control flow and DomParser

2005-07-13 Thread Jarry Liu
Hi, I am using java control flow. In the middle of the flow, I need use DomParser function parse( String file) to read the new xml file that I got from the pipeline. I use sourcewriting transformer to write the new xml to disk and nameed it as temp.xml and then parse it to DomParser. But after wr

Re: question about control flow and DomParser

2005-07-14 Thread Jarry Liu
Hi, I still have no idea how to do it. Any suggestion will be highly appreciated. On 7/13/05, Jarry Liu <[EMAIL PROTECTED]> wrote: > Hi, > > I am using java control flow. In the middle of the flow, I need use > DomParser function parse( String file) to read the new xml

Re: question about control flow and DomParser

2005-07-15 Thread Jarry Liu
parse(file); } catch(Exception e) { e.printStackTrace(); } ... On 7/15/05, Victoria Vitaver <[EMAIL PROTECTED]> wrote: > Jarry Liu wrote: > > Hi, > > > > I still have no idea how to do it. Any suggestion will be highly > > appreci

Re: Sitemap:Selector multiple value in map:when tag ?

2005-07-19 Thread Jarry Liu
On 7/19/05, oceatoon <[EMAIL PROTECTED]> wrote: > Hi > > While working with selectors I would like to test more than one value in my > test > something like this > > or region,province or region|province > I tried all the variations I could think of, but none work , is this > possible ? > > Than

Re: Sitemap:Selector multiple value in map:when tag ?

2005-07-19 Thread Jarry Liu
I am not sure if it should like this: Here is some code I used and works without problem: > Good luck. Jarry On 7/19/05, oceatoon <[EMAIL PROTECTED]> wrote: > > Hi > > > > While working with selectors I would like to test more

Re: Sitemap:Selector multiple value in map:when tag ?

2005-07-19 Thread Jarry Liu
Sorry, I misunderstand it as in xsl file. I have no idea how to deal with it in sitemap.xmap. On 7/19/05, Jarry Liu <[EMAIL PROTECTED]> wrote: > I am not sure if it should like this: > > > > Here is some code I used and

Re: write file

2005-07-21 Thread Jarry Liu
Try to use sourcewritingtransformer. http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transformer.html Good luck Jarry On 7/21/05, Andres Taborda <[EMAIL PROTECTED]> wrote: > some user know how to selection > the source with pipeline and send the source to an > file. > Is say, wr

how to build jeuclid.jar

2005-07-21 Thread Jarry Liu
Hi, all I am trying to use JEuclid to convert MathML to SVG. But I just got source files from http://sourceforge.net/projects/jeuclid/. I find I can't compile these files even if I add all the jar file in java lib. I searched from google and it was suggested to use build.sh, but there is not bui

Re: how to build jeuclid.jar (solved)

2005-07-21 Thread Jarry Liu
I just solved it by using ant. Thanks. On 7/21/05, Jarry Liu <[EMAIL PROTECTED]> wrote: > Hi, all > > I am trying to use JEuclid to convert MathML to SVG. But I just got > source files from http://sourceforge.net/projects/jeuclid/. I find I > can't compile these f

Re: Dynamic SVG bar graph

2005-07-26 Thread Jarry Liu
Hi, I am very interested with this topic. Can you give me more information about this SVG and Fragment Extractor? I use JEuclid to tansform MathML and present it with SVG. But in the output, I want add other html stuff in it. How can I do it? Here is part of the code I used: Thanks.

Re: Dynamic SVG bar graph

2005-07-26 Thread Jarry Liu
ECTED]> wrote: > On 26.07.2005 18:55, Jarry Liu wrote: > > > I am very interested with this topic. Can you give me more information > > about this SVG and Fragment Extractor? > > The FragmentExtractor{Generator|Transformer} can be found in the batik > block in 2.1.

Re: Dynamic SVG bar graph

2005-07-26 Thread Jarry Liu
very general language to represents the diagrams (we called > it DML) and use XSLT to generate SVGs from that language. If this is > interesting for you I might get the permission to share the stuff > with you. > > Regards, > > Benni > > > > Am 26.07.2005 um 18:5

Re: Dynamic SVG bar graph

2005-07-26 Thread Jarry Liu
Joerg, Thanks again for you help. I am using Mac OS X and Safari as the browser, so it may be the reason why I can't get htm + svg together. I will try other browers later. Jarry > From what I see FragmentExtractor* is really the wrong for you. But > there is nothing special about the svgxml ser

Re: Dynamic SVG bar graph

2005-07-27 Thread Jarry Liu
Derek and every one, Thanks for your kind help. Finally, I got it by using , which links the SVG source to my html file. Here is my sample code: step1 end to step 1 step2