BUG: WO 5.4 combined template parser + XML declaration
BUG: WO 5.4 combined template parser + XML declaration
- Subject: BUG: WO 5.4 combined template parser + XML declaration
- From: Ravi Mendis <email@hidden>
- Date: Thu, 07 Feb 2008 00:58:11 -0800
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:
This email sent to email@hidden