seems you're trying to generate (i.e. deliver as SAX) a non-XML file (the
.wmls file).
use a reader for non-XML files. let's suppose you have your .wmls files in a
subdirectory 'wmls' relative to the sitemap:
...
<map:match pattern="*.wmls">
<!-- dunno whether mime type is correct -->
<map:read mime-type="text/vnd.wap.wmls" src="wmls/{0}"/>
</map:match>
...
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Oro smith
> Gesendet: Dienstag, 1. Juni 2004 10:05
> An: [EMAIL PROTECTED]
> Betreff: RE: wml error
>
>
> hi Conal,
>
> I defined a pipeline that matches the URI of the wmls file. But i
> get the foll error:
>
> Content is not allowed in prolog
> Failed to execute pipeline.:
> file:/data/cocoon-2.1.3/build/webapp/mail/test1.wmls
>
> cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.
>
> location: file:/data/cocoon-2.1.3/build/webapp/mail/test1.wmls
>
> Here are the wml and wmls files.
>
> test1.wml
> <?xml version="1.0"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml"><wml>
> <card id="no1" title="Go to URL">
> <do type="options" label="Go">
> <go href="test1.wmls#go_url()"/>
> </do>
> </card>
> </wml>
>
> test1.wmls
>
> extern function go_url()
> {
> Dialogs.alert("hello");
> }
>
>
>
> -------------------------------------------------
> Still single? Click here to find the perfect match.
>
>
> http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]