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,
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
map:read src=*.xml/
/map:match
or with XSP
!-- === XSP --
map:match pattern=xsp.xml
map:generate type=xsp src=xsp.xsp/
map:serialize type=xml/
/map:match
King regards
-Ursprüngliche Nachricht-
Von: Shaw, Chris
-
From: Shaw, Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 4:08 PM
Subject: RE: Serializing XML data to Excel format
Hi,
Take a look at:
http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html
Works quite well.
Chris
-=-=-=
-Original
a Generator? but it kinda made sense
since that I want to generate XML.
Chris
-=-=-=
-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 26 November 2002 10:52
To: [EMAIL PROTECTED]
Subject: Re: output XML
On Tuesday 26 November 2002 10:00, Shaw, Chris
-=-=-=
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 figured out using some code.
. . .
Looks like a typical use-case for the CInclude
Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday 26 November 2002 14:49
To: [EMAIL PROTECTED]
Subject: Re: output XML
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
Hi,
How would I get the real path of a file from within an action?
I have the following:
public Map act(Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters params)
throws Exception {
Request request = (Request)
= ObjectModelHelper.getContext(objectModel);
String fileName = context.getRealPath(/myfile.xsd);
HTH someone else in the future...
Chris
-=-=-
-Original Message-
From: Shaw, Chris
Sent: Friday 22 November 2002 11:38
To: '[EMAIL PROTECTED]'
Subject: how to getRealPath from action
Hi,
How would
Hi,
Running on JDK1.4.0, I have successfully been using Cocoon 2.0.3 in JBoss
3.0.0 with embedded Catalina (TomCat 4.0.3)..it runs as a war in an ear
file w/o problem.
I have just made the switch to JBoss 3.0.3 with embedded Tomcat (4.1.2) and
now my XSP generation has stopped workingmy
Hi,
Running on JDK1.4.0, I have successfully been using Cocoon 2.0.3 in JBoss
3.0.0 with embedded Catalina (TomCat 4.0.3)..it runs as a war in an ear
file w/o problem.
I have just made the switch to JBoss 3.0.3 with embedded Tomcat (4.1.2) and
now my XSP generation has stopped workingmy
/cocoon-users;xml.apache.org/msg18430.html, but
the solution is to deploy using TomCat manager which is no good for me...I
need to hot deploy an ear file (containing the war) to JBoss.
Thx
Chris
-=-=-=
-Original Message-
From: Shaw, Chris
Sent: Friday 18 October 2002 08:17
To: '[EMAIL
: Redirect to referrer
On 28.Jun.2002 -- 05:58 PM, Shaw, Chris wrote:
PS - I'm surprised there isn't a simpler solution to do this, when it must
be a fairly common thing.
How about this one, then?
map:match pattern=store
map:act type=persist-action
Chris
-=-=-
-Original Message-
From: Shaw, Chris
Sent: 11 April 2002 14:23
To: '[EMAIL PROTECTED]'
Subject: Excel needs filename?
Hi,
I'm using the HSSFSerializer to generate an M$-Excel file
The mime-type is set to: application/vnd.ms-excel
When I use Netscape it works perfectly
Hi,
I have a generator that outputs XML.
Then, depending upon a request parameter sent in (which specifies the output
format) I redirect to a Transformer.
When the test condition is true (test=html) then the stylesheet doesn't
work..it strips out all the XML and outputs all the data...ie the
=org.apache.cocoon.selection.RequestParameterSelector/
in Your sitemap.xmap map:selectors section ???
Regards
Jerzy Kut
- Original Message -
From: Shaw, Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 11:57 AM
Subject: Transformer Loses XML
Hi,
I have a generator that outputs XML
Jerzy Kut
- Original Message -
From: Shaw, Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 1:07 PM
Subject: RE: Transformer Loses XML
Hi, Thanks for reply...
No, I instead have mapped the following...
map:selector name=request
src
Hi
I have the following scenario...
The user choses, on an HTML Form, for which format they want the output
(e.g. PDF, XML, HTML, etc)...and the parameter called 'format' gets set as
to whatever they chose
...eg format=pdf.
A generator is called which executes a database query and returns all
18 matches
Mail list logo