You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stephen Ng <st...@lumigent.com> on 2003/02/07 15:08:06 UTC

XSP's don't use catalogs?

I'm trying to resolve some entities inside an xsp file, but it appears
that xsp's don't use entity catalogs the way other xml files do.

(I'm using Cocoon 2.0.3).

For example, in the standard cocoon distribution, if I modify
cocoon\docs\samples\xsp\hello.xsp to be:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE hello
[
 <!ENTITY % ISOnum PUBLIC
   "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
   "ISOnum.pen">
 %ISOnum;
]>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
  <page>
    <title>Hello</title>
    <content>
      <para>This is my first Cocoon page! &half;</para>
      <xsp:element name="para">
        With the help of XSP! and
<xsp:expr>Constants.COMPLETE_NAME</xsp:expr>
      </xsp:element>
    </content>
  </page>
</xsp:page>

and go to http://localhost:8080/cocoon/xsp/hello,

I get "java.net.MalformedURLException: no protocol: ISOnum.pen".

But this works fine if I modify, say, sample-apps.xml.

How can I define and reference external entities in an XSP?

Thanks,

Steve

Stephen Ng
Software Engineer
Lumigent Technologies, Inc
 
 

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>