Hi Ludovic.
You were right. The file wasn't valid XML file.
Can you please tell me where I can find the list of all util:tags?
I can't find the complete list anywhere.
Thanks for your help.
Anna
- Original Message -
From: Ludovic de Beaurepaire [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hi Anna,
http://xml.apache.org/cocoon/apidocs/index.html, you will find here the
XSPUtil class apidoc
(util:include-exprutil:exprxsp:exprdata/xsp:expr/util:expr/util:i
nclude-expr generate XSPUtil.includeString(data)). I don't find the list of
tags.
But the solution should be storing valid XML
Hi,
Simple question (I hope!)
Is it possible to have a generator that opens an XML file and outputs it
quite simply 'as is' ?
I have such a thing written at the moment but when I use
contentHandler.characters(..) then all the XML tags get escaped into lt;
and gt; tags!
Thanks (in advance)
Hi all,
How do I serialize XML data into Excel format using the Cocoon API directly?
Thanks for your help.
regards,
nandipinto.
-
Please check that your question has not already been answered in the
FAQ before posting.
Hi,
Take a look at:
http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html
Works quite well.
Chris
-=-=-=
-Original Message-
From: nandipinto [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 26 November 2002 10:15
To: [EMAIL PROTECTED]
Subject: Serializing XML data to Excel
Hi Chris,
I've check this one, but what I need to know is how to use the API (java
class) directly in the my java program.
I know there is one java class called HSSFSerializer, but it only has the
method : setOutputStream(java.io.OutputStream), how do I set the input
stream (which I think is the
Helo Chris,
try
snipIs it possible to have a generator that opens an XML file and outputs it
quite simply 'as is' ?
/snip
map:match pattern=*.xml
map:read src=*.xml/
/map:match
or with XSP
!-- === XSP --
map:match pattern=xsp.xml
Hi Jelle,
Thanks for your valuable information.I tried using
different stylesheets for IE and Netscape in my
pipeline.But I feel this is not a good solution.Is
there something which I could do with
serializers.(ie., xhtml serializer or so,,,Iam not
sure).Please suggest me.Looking forward to
Thanks for the reply.
Unfortunately, there are 2 problems.
First, the name of the xml file is not known, so the generator has to go
figure it out, open it and the output it.
The second problem is that I need to wrap it with other XML tags
Any other thoughts?
Thanks
Chris
-=-=-=
-Original
Sorry,
Not 100% sure what you want to achieve.
You want to physically open and read an XML file in, say, a Generator and
then output it as an Excel file?
I apologise, I mis-read your original mail, I don't use the API I just do
the following:
map:serializer name=xls
On Tuesday 26 November 2002 10:00, Shaw, Chris wrote:
. . .
Is it possible to have a generator that opens an XML file and outputs it
quite simply 'as is' ?
. . .
I'm not sure if I understand your problem, why not simply use the
FileGenerator together with the XML serializer? Or the CInclude
Hi,
I have such a thing written at the moment but when I use
contentHandler.characters(..) then all the XML tags get escaped into lt;
and gt; tags!
Please read the previous thread...
Ludovic
- Original Message -
From: Shaw, Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
No Prob:
Q:
First, the name of the xml file is not known, so the generator has to go
figure it out, open it and the output it.
A:
map:match pattern=*.xml /
The * is a wildcard. Means the name is not known (variable), but as soon the extension
xml is requested the match is true.
Q:
The second
Hi - thanks for the reply.
I simply want to open one (or more) XML files - the names of which are not
known to the sitemap (not even available client-side), the file names have
to be figured out using some code.
And then I want to wrap all the XML files with my own XML.
For example:
document
(please use reply-to if possible when replying to mailing lists messages)
On Tuesday 26 November 2002 11:04, Shaw, Chris wrote:
. . .
I simply want to open one (or more) XML files - the names of which are not
known to the sitemap (not even available client-side), the file names have
to be
Sorry,
The previous title is Inserting XML String, if u want to insert your XML
from a XSP.
Ludovic
- Original Message -
From: Shaw, Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 10:56 AM
Subject: RE: output XML
previous thread? sorry the previous
Hi,
Normally we invoke a servlet in the pipeline as
follows:
map:pipeline match=...
map:act type=request
map:parameter name=parameters value=true/
map:generate
src=http://my.server.com/path/servlet{requestQuery}/
/map:act
!-- rest of pipeline to process results --
/map:pipeline
(please use reply-to if possible when replying to mailing lists messages)
ugh? I just simply replied to the mail - there were no other options, what
do you mean?
CInclude is not yet on my 'explored' list.
But in a nuthsell you auto-generate an xml file which then lists which xml
files you want
On Tuesday 26 November 2002 11:43, Shaw, Chris wrote:
. . .
CInclude is not yet on my 'explored' list.
But in a nuthsell you auto-generate an xml file which then lists which xml
files you want to include, which is then sent back to Cocoon to process?
That's it.
If this is the case then I
Hi All. It's me again
:-)
Thank you all for answering my
previous questions. You are great!
So I have another question (this one
is probably stupid):
I want to execute some Javascript
file (some.js) through Cocoon pipeline
the code ofthis some.js
file is:
!--
document.write('Hello
Hi Joerg,
Thanks for your reply. It gave clearer understanding of special character
encoding.
My problem was that I have to deliver a large set of automated xml files to
a client with a very shaky (knowledge of) DTD's, basically just as myself...
So I thought that encoding like eacute; would be
Use POI: jakarta.apache.org/poi specifically POI::HSSF.
-Andy
nandipinto wrote:
Hi Chris,
I've check this one, but what I need to know is how to use the API (java
class) directly in the my java program.
I know there is one java class called HSSFSerializer, but it only has the
method :
Hi all,
I was wondering if anyone could help me with the following. I am trying
to put the results from a row of results directly into String variables
as show below and Cocoon isnt happy. I get a unclosed character literal
compilation error.
The XSP I am executing is as follows (the problem
On 25.Nov.2002 -- 01:33 PM, Christian Joelly wrote:
Hello!
did anybody use more than one esql:group / esql:member with Cocoon 2.0.3
in one resultset? like this:
esql:row-result
esql:group group-on column1
esql:member
esql:group group-on
Excuse me by jump, but I have to reask old question:
Does HSSFSerializer support non-english characters now?
Thanx for advise.
--
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz
-
Please check that your
Hi Tom,
On Tue, 26 Nov 2002, Tom Place wrote:
class1 = esql:get-string column=CLASS/;
Try:
class1 = esql:get-string column=CLASS/;
Although you may like to check that everything else is working: I'm not
sure you can have esql nested within xsp:logic, ie:
Could you not have
xsp:logic while (class1 = null) {
/xsp:logic
esql:connection etc
/
xsp:logic }
/xsp:logic
[EMAIL PROTECTED] 26/11/2002 03:19:34
Hi Tom,On Tue, 26 Nov 2002, Tom Place
wrote:
class1 = "esql:get-string
column="CLASS"/";Try: class1 =
esql:get-string
On Tuesday 26 November 2002 14:36, Shaw, Chris wrote:
. . .
Can someone in the know point me to the 'how to write a serializer'
documentation?
. . .
I don't think there are specific docs on this yet but you might find the
following pages helpful:
On Tue, 26 Nov 2002, Derek Hohls wrote:
Could you not have
xsp:logic
while (class1 = null) {
/xsp:logic
esql:connection etc /
xsp:logic
}
/xsp:logic
I don't think so, no, for the same reason you couldn't have:
xsp:logic
foo
/xsp:logic
esql:connection etc /
Hi Geoff. Thanks for helping me.
If you don't mind, I want to ask you some more questions, cause I still
don't really understand what I have to do.
1. I didin't find any example of xsp using Rhino. Can you give me an
example, or a URL to the page with example? I am sorry, but I tried hard to
find
I must create an dynamic variable based (from db content) cinclude path.
But this doens't work. Do you know why?
...
esql:results
esql:row-results
xsl:variable name=idesql:get-string column=i.id//xsl:variable
xsl:variable name=stylesheet-pathesql:get-string
ah, but this one is really simple. I don't believe I need to do anything
with PHPGenerator but I hope to be advised what I need to do...
Our intranet is a mixture of xml based content and php files. The xml and
php have nothing to do with each other i.e. the xml doesn't get produced
by
In short; the syntax inside XSP and XSL is quite different;
suggest you look at the docs and the Cocoon samples to
get up-to-speed on how XSP works...
[EMAIL PROTECTED] 26/11/2002 04:16:20 I must create an
dynamic variable based (from db content) cinclude path.But this doens't
work. Do you
Hi,
Thanks for reply.
I already tried copying the XMLSerializer but it extends
AbstractTextSerializer and some of the method calls are package protected -
so I didn't get very far.
I'll try the Wiki now..
Thanks for all the help
Chris
-=-=-=
-Original Message-
From: Bertrand
I'll try to get to that tonight if the HEAD is in currently in working
order. I'll probably upgrade things to the latest stable dev build too.
-Andy
Yury Mikhienko wrote:
Excuse me by jump, but I have to reask old question:
Does HSSFSerializer support non-english characters now?
Thanx for
On Tue, Nov 26, 2002 at 10:00:46AM +0300, Pavel Ivanov wrote:
Hi there!
Hi Pavel,
I'm not an OC4J guru :-) but won't putting the libraries for each
application into it's own WEB-INF/lib help? I mean, do not keep
xerces/xalan in Tomcat's lib directory.
Question for Linux and OC4J gurus:
Hello Chris,
maybe it's easier than you think. In which way do you find out which files
to aggregate? If it's simply searching the file system and using some files
with some criteria, then the DirectoryGenerator can help you. The generated
XML you can transform to a XML structure like the
Not true, you definitely can wrap logic, including while statements around
esql code. (Remember, it just turns into more Java code, so...) You can
even extract your esql and put it into a separate function, as long as you
don't have any XML output from it (you can still do it, but you have to
As someone else mentioned, change
class1 = esql:get-string column=CLASS/;
to
class1 = esql:get-string column=CLASS/;
Also, you might run into trouble with
...where SELECTION = 'xsp:exprcurrentSelection/xsp:expr'/esql:query
, as the XSP compiler might put the quotes and the content
Actions are performed WHEN the pipeline is assembled. The generation and
serialization happens AFTER the pipeline is assembled. So, by the time
your generator starts reading the file, both actions have already fired
and the file came and went.
Why not have your win32 process output a file to
--- Anna Afonchenko [EMAIL PROTECTED] wrote:
Hi Geoff. Thanks for helping me.
If you don't mind, I want to ask you some more
questions, cause I still
don't really understand what I have to do.
1. I didin't find any example of xsp using Rhino.
You just need examples of java using rhino. I
enableLookups=false
sounds like a classically misconfigured DNS on the box that your
tomcat resides. it was trying to log host names but those were timing out
causing poor poor response in the server. this isn't a cocoon, tomcat,
or even an IE issue it's simply an artifact of a misconfigured
Jacob L E Blain Christen dijo:
enableLookups=false
it's simply an artifact of a misconfigured network
Not really, you can use WINS instaead of DNS inside your network. And that
does not mean that you have missconfigured your internal network.
DNS is a static file where the IP address are
i just recompiled from cvs and am getting the same error.
i'm looking into if i can decipher where a config propery seems
to be required to get my install running again. seems as if someone
made some changes to the java sources but didn't check in the
commensurate config changes (cvs update only
Jacob L E Blain Christen dijo:
Jacob L E Blain Christen dijo:
enableLookups=false
it's simply an artifact of a misconfigured network
Not really, you can use WINS instaead of DNS inside your network. And
that
[snip]
so
again i will re-state that this issue concerns neither cocoon,
I saw also some changes in Main.java. I am working on the yesterday CVS
2.1 and there eerything work fine. I will try the lastest CVS today.
Regards,
Antonio Gallardo
Jacob L E Blain Christen dijo:
i just recompiled from cvs and am getting the same error.
i'm looking into if i can decipher
hey that's neat!
-
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,
From: Ilya A. Kriveshko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 6:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Something really stupid
Actions are performed WHEN the pipeline is assembled. The generation
and
serialization happens AFTER the pipeline is assembled. So, by the
Hello,
Is there a way to access Cocoon's Database Pool in JSP? Have anyone tried
it already?
Thanks a lot!
Daniel
-
Please check that your question has not already been answered in the
FAQ before posting.
Hi
all
I got
a problem and tried to solve it!
i want
to have a common 'common.xsp' file containing all the common
values
and i
have other personal files that uses all the common values!
so how
can i use it ?? can i include/import a xsp file in oter xsp
file?
i
tried to use aggregate but
Tony,
I don't see anything wrong with your sample other than the fact that your
XML output doesn't
have a new line after the xml header: ?xml version=1.0
My only suggestion at this point it to debug the WSPG and find out what URL
it is trying to access.
It should exlpain why your servlet is
Steven,
In Windows it's simple. You have to find
start script and slightly rewrite it in a manner:
1) java
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
-Dorg.xml.sax.driver=oracle.xml.parser.! v2.SAXParser -jar oc4j.jar
or
2) java
Lenya,
Certainly, you aren't guru :). Of course all libraries already are in
WEB-INF/lib ...
You should read my post more carefull.
Pavel
- Original Message -
From: Lenya L. Khachaturov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 7:04 PM
Subject: Re:
On Tue, Nov 26, 2002 at 07:15:30PM -0800, Steven Punte wrote:
A cleaner bridge, if possible, would be to have your existing application
output it's contents over HTTP as either just text or preferrable XML. If
XML, then just a pipelien with the XML Generator and you got it all: no
temporary
What do you mean by neat?
Sorry if this is an unrelated question
- Original Message -
From: Jacob L E Blain Christen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 10:23 PM
Subject: Re: Javascript problems in XSP
hey that's neat!
Do you mean that I need to download another version of CVS (say, from
today)?
I also want to do a few changes to the source code before recompiling (I
want to add some Jtidy methods to HTMLGenerator - is it OK to do that?)
- Original Message -
From: Antonio Gallardo [EMAIL PROTECTED]
To:
On Wednesday 27 November 2002 08:20, Anna Afonchenko wrote:
. . .
I also want to do a few changes to the source code before recompiling (I
want to add some Jtidy methods to HTMLGenerator - is it OK to do that?)
. . .
You should first make sure that the code compiles without your changes -
Hi!
I recently download the C2.1 CVS and everything is compiling and working
fine.
I am using Red Hat Linux 8.0, Java 1.4.1_01, Tomcat 4.1.15 (alpha).
Please try to download again and before make changes, try to build the CVS
version first.
I prefer to build two times. I dont know if still
Thank you for your help.
I am downloading CVS now. I will try to compile it twice as you said.
Only one very stupid question:
How can I update the CVS in xml-cocoon2 directory instead of downloading the
new CVS files every time from scratch?
This must be very simple, but I can't figure it out.
I
59 matches
Mail list logo