Re: BUG: WO 5.4 combined template parser + XML declaration
Re: BUG: WO 5.4 combined template parser + XML declaration
- Subject: Re: BUG: WO 5.4 combined template parser + XML declaration
- From: Kieran Kelleher <email@hidden>
- Date: Thu, 7 Feb 2008 07:49:08 -0500
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 <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@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden