Still trying to translate the catalog spec into readable language, but
apparently somebody else has been looking into this as well. Here is a link
to a thread on activestate's support forum

http://support.activestate.com/forum-topic/adding-new-languages



On 2/11/07, Cortlandt Winters <[EMAIL PROTECTED]> wrote:

Hi Again,

I looked into this some more this morning and it looks promising. It looks
like the catalog file is just a mapping of the external URI references to
local ones to keep namespaces from clashing.

Here is an example  that comes with komodo, it's in a directory with the
xul and xbl dtds

catalog.xml

<?xml version='1.0'?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">

    <public publicId="-//MOZILLA//DTD XBL V1.0//EN"
            uri="xbl.dtd"/>
    <system systemId="http://www.mozilla.org/xbl";
            uri="xbl.dtd"/>
    <uri name=" http://www.mozilla.org/xbl";
         uri="xbl.dtd"/>

    <public publicId="-//MOZILLA//DTD XUL V1.0//EN"
            uri="xul.dtd "/>
    <system systemId="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
            uri="xul.dtd "/>
    <uri name="
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
         uri="xul.dtd"/>

</catalog>

There is also a file called moz.soc, which I don't understand the purpose
of yet.

PUBLIC "-//MOZILLA//DTD XUL V1.0//EN"
       "mozilla/xul.dtd"
SYSTEM " http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
       "mozilla/xul.dtd"
PUBLIC "-//MOZILLA//DTD XBL V1.0 //EN"
       "mozilla/xbl.dtd"
SYSTEM "http://www.mozilla.org/xbl";
       "mozilla/xul.dtd"

But it seems like a similar top level file might enable autocompletion of
lzx as well (at least in Komodo and probably in some other editors). I'm not
sure whether the relaxng or dtd would be better to use, but I'll probably
try the dtd as I don't really understand rng. How meaningfull the
autocompletion will be, might be up for grabs though.



On 2/11/07, Cortlandt Winters <[EMAIL PROTECTED]> wrote:
>
> Hi d~l,
>
> This doesn't relate specifically to the catalogs, but I think that
> Komodo might be a good basis for a Lzx IDE. One thing that seems to trip up
> a lot of editors is the inability to mix languages in one file. The newest
> version of Komodo supports this though and supports creating your own
> mixtures.  Since Lzx is basically xml + javascript I think it might be
> pretty easy to get Komodo to work pretty well.
>
> The other avenue that I've done a lot of thinking about is creating a
> web based editor in lzx for lzx. If folk were to go that route, I would
> definitely help with it.
>
> -Cort
>
> On 2/10/07, DL <[EMAIL PROTECTED]> wrote:
> >
> >   Some XML Editors I'm testing (as a possible basis for an IDE
> > platform) require an "XML Catalog" file to be created. ???
> >
> >    New to me .. but I found this reference ..
> >
> >     *http://www.oasis-open.org/committees/entity/spec.html*
> > <http://www.oasis-open.org/committees/entity/spec.html>
> >
> >    and here are the various OpenLaszlo reference files ..
> >
> >     *http://www.openlaszlo.org/lps-latest/tools/index.html*
> > <http://www.openlaszlo.org/lps-latest/tools/index.html>
> >
> >    DTD, RELAX NG schema, XML Schema
> >
> >    ...
> >
> >    So how is an XML Catalog created (from above files) for *.lzx code
> > editing?
> >
> >    What does it look like?
> >
> >    d~l
> >
>
>

Reply via email to