Ravi,

Did you try the Wonder parser?

Regards, Kieran

On Feb 7, 2008, at 3:58 AM, Ravi Mendis wrote:

This is quite a serious flaw in WO 5.4.

In an xml document as such:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html>
        <head>
                <title>Hello World</title>
        </head>
        <body>Hello&nbsp;<wo:WOString value="[name]" />
        </body>
</html>

WO 5.4 spits out the exception:

Error: com.webobjects.appserver.parser.woml.WOMLTemplateParserException exception
Reason:
com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Main: 1:19: The processing instruction target matching "[xX][mM] [lL]" is not allowed.

(The problem being the xml declaration)

This (the xml declaration) is strictly speaking not required for a valid XML document.
However, many tools require it.
Notably FOP won't process WebObjects generated FO unless the XML declaration is present.

Otherwise, the combined template parser is perfect for XML component editing...sadly though this bug prevents it from being very useful at present.

Thanks,
Ravi
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to