Hello,
I need to produce a transformation based on two XML files. The first is my
XML file, the second is the output of the Request Generator, produced by
map:generate type=request
map:parameter name=generate-attributes value=true/
/map:generate
I need to grab a couple of keys from this output,
You must begin with the REQUEST. This can be done by using XSP.
This must be the first because you can only do XSP as generator.
This is the source of something I need from the Session (similar)
?xml version=1.0 encoding=ISO-8859-1?
xsp:page language=java xmlns:xsp=http://apache.org/xsp;
Thanks!
I execute a esql string that is :
INSERT INTO wfTasklist (wfID, tkID, Responsible, Status)
VALUES(xsp-request:get-parameter
name=wfID/,xsp-request:get-parameter
name=tkID/,xsp-request:get-parameter
name=Responsible/,xsp-request:get-parameter name=Status/)
The parameters are
Thank you all for your help. Yesterday everything works fine ... today xsp
somehow stops to work ... no image will be shown only the text ... I really
have any idea what could be wrong
xsl:for-each select=SecContent
xsl:variable name=sectioncontent select=./
Okay this is a question not a statement!
For a short synopsis at school I'm looking for points to areas where cocoon
and stacking an endlessly number of XSL transformers on top of each other
falls short. You know stuff like how difficult it is adding a new attribute
to an XML element, and make
I have the latest Jetty servlet engine, the latest released Cocoon, on
Windows NT. I had this problem when retrieving XML documents from eXist,
but I have now tested it without eXist, and the problem persists.
When transforming a document containing a big, complex CALS table using
this (test
Test this in xsl: trasformation (stylesheet)
xsl:value-of disable-output-escaping=yes select=@src/
MB
-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 9:10 AM
To: [EMAIL PROTECTED]
Subject: Converting amp; to in HTML output...
I would
For a short synopsis at school I'm looking for points to areas where cocoon
and stacking an endlessly number of XSL transformers on top of each other
falls short. You know stuff like how difficult it is adding a new attribute
to an XML element, and make sure it's copied along in all your 200
This is my real pipeline:
map:match pattern=mysite/***
map:mount check-reload=yes reload-method=synchron
src=mysite/sitemap.xmap uri-prefix=mysite/
/map:match
As you can see, I use 3 asterisks, 'cause I want to match something
like: mysite/mydirectory/myfile.myext;
when I write:
On Wed, Dec 11, 2002 at 03:05:57PM -0500, Timothy Larson wrote:
Try map:match pattern=mysite/**
Notice the two asterisks.
Tim
[EMAIL PROTECTED] 12/11/02 12:44PM
Is there a way to specify a GENERAL pattern?
I know, the wildcards exists for this reason, but if I write in my sitemap:
I have checked that latest sources out of CVS
Copied the Xerces etc jars into $JAVA_HOME/jre/lib/endorsed/
run ./build.sh -Dinclude.webapp.libs=yes clean webapp
I have then copied the cocoon.war into webapps and restarted tomcat
I now get the error below.
I am using RedHat 8.0, Sun's JVM
- Original Message -
From: Chris Faulkner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 12, 2002 12:56 PM
Subject: Re: Why cocoon sucks
For a short synopsis at school I'm looking for points to areas where
cocoon
and stacking an endlessly number of XSL
Kasper Nielsen wrote:
For a short synopsis at school I'm looking for points to areas where cocoon
and stacking an endlessly number of XSL transformers on top of each other
falls short. You know stuff like how difficult it is adding a new attribute
to an XML element, and make sure it's copied
I agree with Chris. In every language you can create a mess.
Two rules of advice for Kasper on programming:
1) Be a lazy coder. Think first how you can write as few lines of code as
possible. Not only will you have effecient code, you'll have code that you
can maintain.
2) Stop using copy
You should listen to your own words...Cocoon is a *TOOL*...and as such
it is not, nor has it ever been, intended as a cure-all for developing
web applications. Perhaps someday it will be, but what it is now, is a
very slick way to take content in XML form from your logic layer and
use a
Hi,
I'm looking for a way to include the complete content of a text file into an
XSP page.
This is an example page :
?xml version=1.0 encoding=ISO-8859-1?
xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
Yves Vindevogel wrote:
Hi All,
My problem is solved thanks to your help (all of you)
Therefore, I'd like to post what I did because I had some mails from people
from Italy and Zwitserland with the same problem. This is kind of my help
towards them.
Good thinking!
Now please go and add it
I am doing an XPath search on my Xindice database with IExplorer and I get the
results in XML in my browser.
I use an URL that looks somethin like:
http://localhost:8080/cocoon/xmldb/coll1/coll2?xpath=//NODE[contains(TheQuery)]
The result of that comes in XML. But I want to transform it to HTML
Hi,
I am setting up
anapplication which reads from an XMLdatabase using the XMLDB API's on
cocoon 2.0.4 . This was running fine on coccon 2.0.3.
The problem i am having is when
an XMLResource is being read from the XML database. It throws an XMLDB API
exception with the reason being
On a side note, I chuckled to myself when I saw this book in the store:
http://www.oreilly.com/catalog/perlhtmlmason/
I think it helped me appreciated what Cocoon does just a little bit more
:)
Tony
Tony Collen -- [EMAIL PROTECTED]
College of Liberal Arts University of Minnesota,
At 16:02 12/12/02, Tony Collen wrote:
On a side note, I chuckled to myself when I saw this book in the store:
http://www.oreilly.com/catalog/perlhtmlmason/
I think it helped me appreciated what Cocoon does just a little bit more
:)
Why did you chuckle? As a member of the London perl mongers
Sir,
Cocoon places the uploaded file into a default directory. The default
directory is C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\upload-dir.
I use a Cocoon action to pick up the uploaded file from the default
directory and place it where ever i want
In later versions of Tomcat you need to copy the jars to
$TOMCAT_HOME/common/endorsed instead of / in addition to jre/lib/endorsed.
I'm pretty sure it's because the default catalina.sh specifies its own
endorsed directory on startup, overriding the default. I have heard rumors
that they also need
Nice guess, but three asterisks is not defined. mysite/** will match
literally everything after the slash. If you need to seperate out the file
extension, you can do mysite/**.* (the values will be stored in {1} and {2})
but then you have to have a .XXX request. If you will only sometimes have
that will not work. disable-output-escaping is disabled in cocoon - search
the archives on dev and users for the reasoning. There is a processing
instruction that can do this (search the archives again) but it could have
hidden problems.
Are you sure you need to? HTML is ok with amp;
I have a problem with a pipeline. If I test by block, all is ok:
map:match pattern=hub/ldap/*
map:generate src=hub/ldap/{1}.xml/
map:transform type=ldap/
map:transform src=hub/LDAP2Group.xslt type=xslt/
map:serialize/
/map:match
The output of the previous test is given to the
How solve my problem ?
How trace data between two transformers :
- between ldap and xslt
- between xslt and annuaire...
You can always comment out part of the pipeline temporarily and view the
output directly. Eg:
map:match pattern=hub/integration/*
map:generate
Thanks for the help! It now works
Andrew
On Thu, 2002-12-12 at 18:40, Geoff Howard wrote:
In later versions of Tomcat you need to copy the jars to
$TOMCAT_HOME/common/endorsed instead of / in addition to jre/lib/endorsed.
I'm pretty sure it's because the default catalina.sh specifies its own
On Thu, 12 Dec 2002, Alex McLintock wrote:
Why did you chuckle? As a member of the London perl mongers group (I drink
with them and waffle on the mailing list) I know a large number of people
happy to work with Mason.
Well, I know exactly nothing about Mason itself, but perhaps the title of
This should be simple, but I'm not able to make it work.
Here's an xsl file, working fine:
?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=Now
bDate/Time:/bxsl:apply-templates/
/xsl:template
... More templates ...
Not 100% sure, but in my (humble) opinion, you can only call included
templates and no longer use apply.
Instead of apply-template you will need
xsl:for-each ...
xsl:call-template select=mytemplate
xsl:with-param name=myparamtopass value=./
/xsl:call-template
On Thu, 12 Dec 2002, Yves Vindevogel wrote:
Not 100% sure, but in my (humble) opinion, you can only call included
templates and no longer use apply.
Instead of apply-template you will need
xsl:for-each ...
xsl:call-template select=mytemplate
xsl:with-param
Not 100% sure, but in my (humble) opinion, you can only call included
templates and no longer use apply.
Nonsense... Apply-templates works just fine with included templates.
What's missing from the included code is the place that the apply is invoked
so we can't tell if it's being done
I have also tried using import instead, as in this fragment:
xsl:import href=stylesheets/other.xsl/
xsl:template match=Now
xsl:apply-imports/
/xsl:template
No matter what I do, templates in the included xsl file are not applied to
the output. No errors either, the templates just are
On Thu, 12 Dec 2002, Hunsberger, Peter wrote:
Nonsense... Apply-templates works just fine with included templates.
What's missing from the included code is the place that the apply is invoked
so we can't tell if it's being done correctly. It's also possible that some
other template with
Jessica Niewint wrote:
Thank you all for your help. Yesterday everything works fine ... today
xsp somehow stops to work ... no image will be shown only the text ... I
really have any idea what could be wrong
So if you have an ideajust follow it...
xsl:for-each select=SecContent
The above template match=title works fine if I paste it into the main
xsl file. But if
instead, right there in it's place, in the main xsl, I put this:
xsl:include href=stylesheets/other.xsl/
to include the above file, the match is no longer applied in the output.
I'm perfectly open to
On Thu, 12 Dec 2002, Hunsberger, Peter wrote:
The above template match=title works fine if I paste it into the main
xsl file. But if
instead, right there in it's place, in the main xsl, I put this:
xsl:include href=stylesheets/other.xsl/
to include the above file, the match is no
Check your log files...maybe the xsl:include is not looking in the
directory that you expect and so not finding the file to include.
Tim
[EMAIL PROTECTED] 12/12/02 02:21PM
Well no, I guess there isn't. The docs on include seem to say that it's
like a #includefile in a C source file. In other
On Thu, 12 Dec 2002, Timothy Larson wrote:
Check your log files...maybe the xsl:include is not looking in the
directory that you expect and so not finding the file to include.
I know that's not it because if I use a bogus href in the include, I get
an exception thrown.
This is very
Hello,
Having a problem where every page request loads all
images on the page every time, even if the images have
been loaded before, and even if there are multiples of
the same image on the same page.
I am using Cocoon 2.0.3 with the default settings for
resource reloading; using map:read in
Hi,
Put some text in your:
xsl:template match=titleboo
h1xsl:apply-templates//h1
/xsl:template
Does it get there?
Try your transformation at the commandline and see if you get better error
messages.
It would probably better to post these questions on the XSL list, but you could
try
My problem was simple. It was finding the wrong file to include. That'll
teach me to clean up after myself.
Thanks to all for the feedback!
On Thu, 12 Dec 2002, Robert Koberg wrote:
Hi,
Put some text in your:
xsl:template match=titleboo
h1xsl:apply-templates//h1
/xsl:template
What can I do in a Cocoon sitemap to send a redirect if
I also need to execute a pipeline to produce a side-effect?
Specifically, I am trying to respond to a POST by writing
a file to disk and redirecting back to the page that caused
the POST. The redirect is to drop the POST information
so page
Geoff Howard dijo:
In later versions of Tomcat you need to copy the jars to
$TOMCAT_HOME/common/endorsed instead of / in addition to
jre/lib/endorsed. I'm pretty sure it's because the default catalina.sh
specifies its own endorsed directory on startup, overriding the default.
I have heard
Hello,
I have the feeling, that what I am doing can be done more elegant without
hardcoding db schema information into a java bean.
I am using java beans to transport data through the different steps of a CMS
(inside a session).
Users are a adding data in every step to a bean representing a db
Hello,
I am working on an cms input wizard to fill a database.
Is it possible with cocoons xmlform validation to generate its schema rules
automatically?
I could imagine, an action to query the db's sytem tables to get knowledge
about the types and other contraints and generate an xmlform to
Hi,
since I use Cocoon2.1 (CVS 12.12.2002) I have the
following problem.
When I use xsl:copy-of select=./ in a
xsl-stylesheet, only the values form the elements are
copied, but not the element itself, e.g. when I
transform the following xml data:
all
message
textmsg1text
/message
Does Cocoon allow transforms after using the SourceWritingTransformer?
Example (note: xsl-file-B):
map:generate src=some-xml-file/
map:transform src=xsl-file-A/
map:transform type=SourceWritingTransformer/
map:transform src=xsl-file-B/
map:serialize/
In Cocoon-2.0.4 (compiled with
Steven Noels dijo:
Kasper Nielsen wrote:
For a short synopsis at school I'm looking for points to areas where
cocoon and stacking an endlessly number of XSL transformers on top of
each other falls short. You know stuff like how difficult it is adding
a new attribute to an XML element, and
Hello Marcel,
I wonder that anything is outputted. The output of the template
'sortmsg' is only stored in the variable $m, but there is nothing like
xsl:value-of select=$m/. If you use xsl:copy-of select=$m/, the
tree is copied to the output. But I don't see, where the to strings come
from.
Hi Derek,
Yields this output (via a HTML-serialized pipeline):
div align=left
embed pluginspage=http:///www.adobe.com/svg/viewer/install/;
type=image/svg-xml
width=500 height=300 name=SCVEmbed
src=graph/graph_WQ.svg?point=1amp;endyr=2002amp;varid=1/
the above is correct,
/div
a
Hello Marcel,
I wonder that anything is outputted. The output of the template
'sortmsg' is only stored in the variable $m, but there is nothing like
xsl:value-of select=$m/. If you use xsl:copy-of select=$m/, the
tree is copied to the output. But I don't see, where the to strings come
from.
I've been thinking... in a RESTful style architecture, one performs
verbs upon a certain URI, e.g. GET POST PUT or DELETE. It seems to me
that Cocoon allows one to craft a REST-style application, and in fact it
lets one do it very easily.
However, I've noticed that Cocoon will respond to GETs
Actually,disable-output-escaping works just fine ;-)
I tried Michal's solution and (a) I now get in the HTML and
(b) my SVG file is called and loaded correctly.
HTML *might* be OK with amp; in general,but it certainly
wasn't happy in the specific case I mention below; this might
be a browser
I have seen that this occurs
due to the DatabaseImpl not beeing registered to
DatabaseManager.
In 2.0.3 It registersthe
database driver in methodpublic void
connect() of XMLDBSource.
Now in 2.0.4 it has been moved
to method public void configure(Configuration
conf) of XMLDBSourceFactory
There are some statements in Cocon API's such as getLogger().error
I want these to be printed in log files . how and where should i configure
this to be enabled.
Any help? I want to debug an XML:Db web application.
rgds,
subrahmanya
Hi,
I am setting up
anapplication which reads from an XMLdatabase using the XMLDB API's on
cocoon 2.0.4 . This was running fine on cocoon 2.0.3.
The problem i am having is when an
XMLResource is being read from the XML database. It throws an XMLDBException with the reason being could
58 matches
Mail list logo