Following matcher would do it:

<map:match pattern="*testme">
  <map:generate type="file"
     src="http://www.puentenet.com/XML_export/monedas.xml"/>
  <map:serialize type="xml"/>
</map:match>

But you may have a proxy problem.
Are you sitting behind a firewall and can access
the internet only via your http:proxy ?
You will have to tell cocoon, how it shall access your
proxy to connect to the net...

If this is really your problem, then it will be mine
too in a couple of days. I currently don't know,
if cocoon can really be configured to call resources
through a firewall ...

Maybe someone else knows more about that ?

regards, hussayn

Mauro Daniel Ardolino wrote:
Hi all!
I'm having a problem trying to use an external xml page. I mean
"external" to my project.
The page is:
http://www.puentenet.com/XML_export/monedas.xml

So I put this on the sitemap:
...
<map:generate src="http://www.puentenet.com/XML_export/monedas.xml"; />
<map:serialize type="html" />
...

And I get this error message when browsing:

An error occurred
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says: Exception during processing of
http://www.puentenet.com/XML_export/monedas.xml More precisely:
org.apache.cocoon.ProcessingException: Exception during processing of
http://www.puentenet.com/XML_export/monedas.xml: java.net.ConnectException:
Connection refused
extra info
full exception chain stacktrace show <javascript:> Original exception :
java.net.ConnectException: Connection refused at
java.net.PlainSocketImpl.socketConnect(Native Method) at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at
java.net.Socket.connect(Socket.java:426) at
java.net.Socket.connect(Socket.java:376) at
sun.net.NetworkClient.doConnect(NetworkClient.java:139) at
....
and so on...

I'll appreciate any help. Thanks in advance.

-- Mauro


---------------------------------------------------------------------
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, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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, e-mail:   <[EMAIL PROTECTED]>

Reply via email to