map:part- how to encode a URL source?

2003-04-02 Thread Colin W. Kingsbury
Here is what I wrote:

map:part
src=http://localhost:8080/bigServlet?k42id={1}container=page-body/

Here is what I get:

org.xml.sax.SAXParseException: The reference to entity container must
end with the ';' delimiter.
snip

How can I do this? I need to make calls to URLs with multiple
paramters...

Thanks in advance!

-cwk.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Getting content from a URL or servlet

2003-03-31 Thread Colin W. Kingsbury
File generator worked just fine. I'm using 2.something.

Best,
-cwk.

-Original Message-
From: Delis, Christopher E. [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2003 4:59 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Getting content from a URL or servlet

or if that doesn't work, try type=file ??

it worked for me, but i'm using a new version of cocoon2.  what version
you
working with?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting content from a URL or servlet

2003-03-28 Thread Colin W. Kingsbury
Hi,

I have a servlet at http://localhost:8080/doSomethingServlet which spits
out well-formed XML. It will provide content I want to use at the start
of a pipeline.

I have tried using StreamGenerator specifying the URL as the src
attribute, and also an aggregator. 1 does nothing, and 2 gives me only
an empty root element. It is not very clear how I can do this and
searching maillists yields no results or 10,000. Any thoughts much
appreciated.

Best,
-cwk.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cocoon-based Database Administration

2003-03-26 Thread Colin W. Kingsbury

Two separate problems here:

1. How to create a page which allows a user to do X (e.g. create a new
account)
2. How to manage the overall structure of pages which make up the
site.

Cocoon gives you XSP for (1) and well, Cocoon, for (2), if you want to
reinvent the wheel. IMHO if you are building a basic e-commerce site
you should look at what is already available out there:

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=open+source+e-com
merce+MySQL

Cocoon is a powerful framework but if you haven't used it before it will
take you some time to come up to speed. If you are just trying to bang
out a small consulting job there are probably easier ways. YMMV.

-cwk.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Graphics in XSL:FO?

2003-03-17 Thread Colin W. Kingsbury
I am trying to get cocoon to render an instance to PDF which includes a
graphic reference. I have used the fo:external-graphic
src=file:///c:/stuff/foo.jpg/ tag and have my cocoon running in say
c:\tomcat\webapps\cocoon. 

If I run the FO output through Fop on the command line I see my graphic;
if I access it through cocoon URL I get a blank screen result and no
error messages.

Any ideas!?

Thanks in advance!

Best,
-cwk.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Way to make XML generator ignore DTD declaration?

2003-03-10 Thread Colin W. Kingsbury
Hi all,

I have an XML document which includes a dtd declaration like so:

!DOCTYPE foo PUBLIC -//foo//foo document//EN foo.dtd [ !ENTITY bar
bar ]foo/foo

Everything works fine -if- I delete the DTD declaration. But only if...

I don't care about validity but problem is the source file is generetd
by a dump from a CMS which insists on having the declaration like so. I
tried putting the DTD in the same dir as the content XML, etc etc but no
luck. Is there any setting which can force the parser to ignore DTDs or
another place I should be putting the DTD file? I'd rather not write a
nasty little parser just to strip out the doctype declaration...

Thanks in advance,
-cwk.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Any way to mount a sitemap from a URL?

2003-03-05 Thread Colin W. Kingsbury
Hi,

I am writing a sitemap which directs requests of a certain type to a
sub-map like so:

  map:pipeline
map:match pattern=foo/**.foo
  map:mount uri-prefix=foo check-reload=yes src=
foo/foo.xmap/
/map:match
  /map:pipeline

This works nice but what I really want is to mount a sitemap from
something like a URL like http://localhost:8080/cocoon-dev/foo/foo.xmap.
I can use that URL to get a copy of the right .xmap but when I plug that
URL in to the src attribute of the mount element I get a big exception
mess.

Is this type of dynamic sitemap loading supported, perhaps in some other
way?

Thanks in advance,
-cwk.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]