hy,
Concerning call of a servlet, that depends, where it is
running. If it's in another webapp, simply call the
file generator, e.g.:
map:match pattern=*testme
map:generate type=file
src=http://www.yoursite.com/pathTotheServlet/
map:serialize type=xml/
/map:match
If it is in the same
Maybe I do something wrong, but I don't get the result that I want.
I declared the HTMLGenerator with jtidy-config property and created the
jtidy.properties
file in the same directory with the sitemap.xmap file.
In the jtidy.properties file I wrote the following lines:
output-xml=no
Hi all.
I am getting html file, transform it
and serialize the output as xml.
In the output I get a few lines like
this:
?javax.xml.transform.disable-output-escaping ?
I get this line only if I use
xsl:text tag with disable-output-escaping attributein my
stylesheet.
Can somebody explain
request-error description
description of the error:
environment:
Orion Application Server 1.5.2Java1.4Cocoon
2.0.3Windows 2000
The resource requested was www.xxx.com/index.html without any
request-parameters.
We are using the UserManager which is integrated into Orion.The file
hi;
i didn't use the jtidy with cocoon yet, hence
i'm just guessing:
1.) if you want HTML as output, your serialiser should be
the html serialiser. You are using the xml serialiser
so you get xml back instead of html.
2.) In your jtidy.properties you may have a typo:
output-xml=no
Hi Hussayn.
Thank you for pointing my out my typo, I corrected it.
But I still don't get the output that I want.
I changed the serializer to the html, but looking at the source of the
output page, I still get:
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type
Anna Afonchenko wrote:
. . .
Maybe someone can explain me what am I doing wrong and how can I make
HTMLGenerator to tidy the input according given properties.
I haven't used this feature yet, but from the source code of the
HTMLGenerator you can see that it should output a message saying
after one year from the first stable cocoon 2 version
is tomcat the best container for cocoon?
we use the first cocoon2 rc1 version on tomcat the last 18 months in
production.
we have test other cocoon2 versions in development environment but never
something else than tomcat!
your
I downloaded a new version 2.0.4 of Cocoon this week.
If I change the name of the file in jtidy-config to unexisting file, I get
the following error message:
type fatal
message UnnamedSelector: ComponentSelector could not find the component for
hint [html]
description
Anna Afonchenko wrote:
. . .
description org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint
[html]
. . .
Seems to indicate that you're indeed running the right version.
Where can I see this message Loading
Stavros,
I used both Tomcat and WebLogic in production environments: I've found both of them
quite reliable with Cocoon, bar a nasty problem
when compiling Cocoon components with Tomcat under Solaris.
No statistics to show though.
Best regards,
-
I have the following
question:
I know that in Cocoon I can use value
substitution inside a pipeline, e.g. if I have a pipeline
map:pipeline
map:match
pattern="*/*.html"
map:generate
src=""/
map:transform
src=""
map:parameter name="param" value="{1}"/
/map:transform
/map:match
Hello!
I'm trying to install cocoon with the help of
http://xml.apache.org/cocoon/installing/index.html and got stuck here:
Java 1.4 configuration
...follow these steps:
1. Create %JAVA_HOME%\jre\lib\endorsed directory.
2. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the
Hi!
(Please do not use HTML mails in the mailing list.)
I see two ways to solve this task:
1. Use an action that will get the original parameter and generate another
one, which you'll pass to the transformer.
2. Use a the Request input module, e.g. map:parameter name=param
Hello,
I have the following pipelines in cocoon:
!-- This pipeline generates an XML document from an structured text
file --
map:match pattern=MAST_TXT2MAST_XMLresponse
map:act type=fileUploadAction
map:parameter name=file-name value=mast/
map:generate type=textparser
Ines,
you could either download the source distribution and build it (I prefer this method),
or search those JARs under
your-servlet-container-home/webapps/cocoon/WEB-INF/lib.
The lib directory is filled with JARs the first time Cocoon in invoked (the servlet
container takes care of expanding
Hello Ines,
/lib/core is the directory in the source distribution. In the binary one you
have it's %CONTAINER_HOME%/webapps/cocoon/WEB-INF/lib/ if you have already
deployed it into a container. Or if you have still only the zip, unzip it. A
cocoon.war shell appear, unzip it, and you will find
Olivier,
What you are asking for is currently 'kind of' provided by the command line interface.
However, when I have made enquiries about this to the various Cocoon lists, it has
been
suggested that someone could develop a 'Cocoon Bean'. This would be a programmatic
interface to Cocoon,
Hi,
you can use the map:call resource. sitemap element to invoke a
pipeline fragment from another pipeline. I use this too, here is en extract
from my sitemap:
map:pipeline
map:match pattern=do-*.html
map:act set=process
Hi
Anna,
you could
implement an action which takes your HTTP request parameter as input parameter,
then execute some JAVA code inside the action getting the last character,
incrementing it or whatever elseand let the action return the result.
Inside the act tags in your sitemap, you can
Hello All!
I know that today I ask too many
questions, but since cocoon is new to me,
sometimes I don't even know where to
look for the information, so you are my only help.
Thanks for everyone who took time to
answer my questions. Here is another one:
At the end of the pipeline the result
[resending this one, seems I used a non-subscribed address originally]
Hi all,
I'm building an app that involves client-side editing of XML delivered
by Cocoon. I'm using an XSLT transformer to deliver a visual
representation of an XML document and another transformer to convert the
modified
Hi Anna,
I had this problem and didn't find a solution for
caching the output of the pipeline to perform an OutputAction as saving in a
file. Finally i chose to save the XML, and to perfom the
transformation/serialization when a request need the transformed file. It
supposes that the
Hi Ludovic. Thank you for
answering.
Can you say what do you do to save
this XML file?
I mean, if I have the following
pipeline:
map:match
pattern="some.html"
map:generate
src=""/
map:transform
src=""/
map:serialize
type="xml"/
/map:match
this pipeline produces an xml file.
What
Halle Anna,
With a stylesheet like that you can write files and having an
output as well.If it is the best method?
?xml version="1.0"
encoding="ISO-8859-1"?xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Title: FORMS
Hi All,
I am very interested in something that would let me fill some forms, and bind these form data to xml.
I am evaluating products like Altova's Authentic Web Edition (very expensive, 30k USD per 50 concurrent users), but the functionality, except the client behavior
Hi
Anna,
if no cocoon
standard solution exists for this problem, you could implement your own
Transformer inheriting from Cocoon's AbstractTransformer.The transformer
processes all elements of your XML streamin corresponding methods like
startElement, etc. You could redefine these methods
First, i had just to save it (not to send the
result file to the client). I did it in a stylesheet like this :
?xml version="1.0"
encoding="ISO-8859-1"?xsl:stylesheet version="1.0"
Title: Messaggio
I have a linux web application based on Cocoon 2.0.3, tomcat 4.1.12, JDK
1.3, InterClient 2.0.1 and Firebird SuperServer 1.0. I need to migrate to JDK
1.4 but i still have problems with InterClient because some queries now throw
this exception:
Are there any Schemas or DTDs available for the sitemap or logicsheets?
Thanks,
Ben
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To
Hi All,
Was wondering if anyone has had any experience deploying the Cocoon
2.0.3 WAR file under WebSphere Studio Application Developer 5.0 or
WebSphere Application Server 5.0?
I import the WAR in WSAD 4.0.3 and it works just fine...when I import
it under WSAD 5.0, it appears to import
FORMSHello,
Yes, you must download 2.1 from CVS and build it. Information on how to get
it and build it step by step is available at:
http://xml.apache.org/cocoon/installing/index.html
Then you could test the XMLForm samples. I've been succesfully using them
for a few months backed by a Xindice
The question is, do you want to run Cocoon as a servlet (i.e. accessing it via HTTP),
and have the pipeline save a file on the way, or do you just want to get the file
saved,
without needing a servlet?
If it is the latter, then you should consider using the Command Line interface.
Basically,
i believe someone is working on this (unless that was you?). Check
the dev list archives over the last week for Cocoon Bean.
Geoff
-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 7:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Using the
I'm so sorry - this was you on the dev list. I should have
checked before sending.
Geoff
-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: RE: Using the Cocoon pipeline outside web apps
i
Hi,
Anna Afonchenko [EMAIL PROTECTED] writes:
Hi Hussayn.
Thank you for pointing my out my typo, I corrected it.
But I still don't get the output that I want.
I changed the serializer to the html, but looking at the source of the
output page, I still get:
html
Is there an archived set of sources available for the
contents of excalibur-xmlutil-20020820.jar? I'm getting
a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX()
and can't see what I'm doing wrong. The current sources for
jakarta-avalon-excalibur don't have this class (but do have
the
Hi!
how can I validate a date like this -mm-dd with schematron?
thanks in advance.
iker.
-
Please check that your question has not already been answered in the
FAQ before posting.
jtbamcai wrote:
Hi!
how can I validate a date like this -mm-dd with schematron?
thanks in advance.
iker.
Hello,
Schematron is XSLT, so you can use normal expressions.
Example:
assert test=substring(date, 1, 4) 2000 and substring(date, 1, 4)
lt; 2005
/assert
But XSLT has no
The Tomcat Team announces the immediate availability of Apache Tomcat
4.1.17 Stable.
Tomcat 4.1.17 includes many bugfixes and performance tweaks over Tomcat
4.1.12. Please see the release notes for a complete list of the changes.
Downloads (source and binaries):
I am having problems with the hello world example in the cocoon
documentation action section.
It's giving me an ConfigurationException.
The exception is shown below:
org.apache.avalon.framework.configuration.ConfigurationException: Error in
sitemap configuration :
at
Hi all,
I'm building an app that involves client-side editing of XML delivered
by Cocoon. I'm using an XSLT transformer to deliver a visual
representation of an XML document and another transformer to convert the
modified visual representation to XML. My problem lies in CDATA section
Somebody knows how to implement a for-like loop in
XSLT? I found the following example in XSLT 2.0, but it doesn't work in
1.0:
xsl:for-each select="1 to 5"
xsl:variable name="x" select="$x+1"/
xsl:for-each
Lautaro Brasseur wrote:
Somebody knows how to implement a for-like loop in XSLT? I found the following example in XSLT 2.0, but it doesn't work in 1.0:
xsl:for-each select=1 to 5
xsl:variable name=x select=$x+1/
xsl:for-each
Lautaro,
Please ask any XSL-related questions to the Mulberry
Something like this :
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:template match=/
pTest Page/p
xsl:call-template name=forloop
On Tue, 2002-12-17 at 19:46, Phil Shafer wrote:
Is there an archived set of sources available for the
contents of excalibur-xmlutil-20020820.jar? I'm getting
a NPE in org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX()
and can't see what I'm doing wrong. The current sources for
snip/
Caused by: java.lang.ClassNotFoundException:
snip/
I think it is caused by the following tag in my sitemap.xmap
map:actions
map:action name=hello-world class=test.HelloWorldAction/
/map:actions
I guess it is unable to find the class test.HelloWorldAction. But
I already put
Hi, I'm using Tomcat 4.1.12 and Cocoon: cocoon-2.0.4-vm14-bin, jdk 1.4.1,
windows xp
I tried one example from the Cocoon book, listing 4.28 (gallery listing) to
be executed from a sub sitemap.
In the directory
mount
I created a directory
tm
and in this directory, I created a directory
gallery
I am trying to get familiar with Cocoon (2.1) and try to expand the XMLform
HowToWizard demo by adding an insert statement to write data to a MySQL
database. I added a jBean.insert() method in the HowToWizardAction class,
added an insert() method in the bean class and added a DB class with a
I had essentially the same problem with my webapp.
I solved it as follows:
map:match pattern=gallery
map:redirect-to session=false uri=gallery//
/map:match
map:match pattern=gallery/**
map:mount uri-prefix=gallery
check-reload=yes
reload-method=synchron
I posted a question to this list, but no better
solution was posted nor any hint, why the problem
exists.
I don't know a better solution, but isn't the reason obvious?
http://localhost:8080/cocoon/mount/tm/gallery/ points to a directory
'gallery'
while
Title: context problem
Hi all
i got the headache prolem like this
i have the files and sitemap like this :
map:resources
map:resource name=admin-page
map:generate type=serverpages src="">
map:transform type=i18n
map:parameter name=locale value={../locale}/
/map:transform
Title: FORMS
XMLForm is not supported in version before 2.1.
You can download 2.1 here:
http://cvs.apache.org/snapshots/xml-cocoon2/
- Original Message -
From:
Carlos
González
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 8:34
AM
Subject: FORMS
Josema,
Many people requested an example of XMLForm with Xindice.
Can you submit some source code or even better a HOW-TO doc?
Thank you,
Ivelin
- Original Message -
From: Josema Alonso [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 9:59 AM
Subject: Re:
Joerg's response is correct, although a technical detail is that Schematron
is based on XPath, not XSTL (which uses XPath itself).
- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 1:27 PM
Subject: Re: schematron
I see some files moved in CVS by nicolaken such as
src/java/org/apache/cocoon/samples/xmlform
UsageFeedbackAction.java
UserBean.java
WizardAction.java
but the sitemaps and examples don't seem to have been modified.
Is something up?
Cheers,
Thor HW
What about map:match type=regexp pattern=^gallery[/]?$ as a better
solution? (if relative links are not an issue)
Geoff Howard
-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
I posted a question to this list, but no better
solution was posted nor any hint, why
Thanks for the notification Thor.
Nicola, what is the deal?
Ivelin
- Original Message -
From: Thor Heinrichs-Wolpert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 10:03 PM
Subject: cvs2.1 xmlform sample broken?
I see some files moved in CVS by nicolaken
OK, thank you, I now understand how to set a doctype.
But what about other settings, like converting quotes to entities.
Not that I need it so much, but I am just curious, why this doesn't work
through
jtidy-config. I just want to know if that's me doing something wrong, or
maybe this is some
Hello,
It seems like everybody knows how to do this, at least the docs mention
this so briefly, that it must be dead simple. Anyway, I didn't get it :-)
Please help me on this:
map:match pattern=archives/**
...
map:transform src=my.xsl type=xslt
map:parameter name=param value={1}
hi
you have to reference the param with a $. In your case
xsl:value-of select=$param
ciao Lars
-Ursprüngliche Nachricht-
Von: Lenya L. Khachaturov [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Dezember 2002 15:15
An: [EMAIL PROTECTED]
Betreff: Passing request
Lenya
I tried your example, it prints the parameter for me.
You may have a typo in expression
xsl:value-of select=param
should be
xsl:value-of select=$param
At least, this is the only reason I see.
Anna
- Original Message -
From: Lenya L. Khachaturov [EMAIL PROTECTED]
To: [EMAIL
Hi!
At 10:14 18.12.2002 +0300, you wrote:
Hello,
As far as I understood, xsl:value-of select=param should print
december - right? Well, it doesn't. What am I doing wrong?
Try: xsl:value-of select=$param
Have a nice day
Robert
You'll find a more or less up-to-date XSD for the sitemap in
/src/documentation/xdocs/drafts/sitemap-2.1-draft.xsd
There is also a DTD for the sitemap and a RelaxNG schema somewhere there...
Konstantin
From: Ben Young [EMAIL PROTECTED]
Are there any Schemas or DTDs available for the sitemap
Thank you all for answering me, but I
still can't manage to do it.
Here is my pipeline:
map:match
pattern="test.html"
map:generate
src=""/
map:transform
src=""/
map:serialize
type="xml"/
map:match
Here is my
writeToFile.xsl:
?xml version="1.0"
encoding="UTF-8"?
xsl:stylesheet
65 matches
Mail list logo