Bug 172476 <VALUE-OF format=html> doesn't check the format="html" if there is no quotes
Description: <VALUE-OF format html> doesn't check the format="html" if there is no quotes Build number: 2.2.0.v20070131-0700 Steps to reproduce: 1, New a text(html/dynamic)in layout 2, Input <VALUE-OF format=html>"aaa"</VALUE-OF> 3, Preview the results Expected result: invalid html format message pops up Actual result: aaatm Error log:
core/org.eclipse.birt.core/src/org/eclipse/birt/core/template/TemplateParser.java
{
		TextTemplate template;
		ASTVisitor( TextTemplate template )
		{
			this.template = template;
		}
		public Object visit( SimpleNode node, Object data )
		{
			return data;
		}
		public Object visit( ASTAttribute node, Object data )
		{
			if ( data instanceof TextTemplate.ImageNode )
			{
				TextTemplate.ImageNode image = (TextTemplate.ImageNode) data;
				image.setAttribute( node.getName( ), getAttributeValue( node
						.getValue( ) ) );
			}
			else if ( data instanceof TextTemplate.ValueNode )
			{
				if ( "format".equalsIgnoreCase( node.getName( ) ) )
				{
					TextTemplate.ValueNode value = (TextTemplate.ValueNode) data;
					value.format = getAttributeValue( node.getValue( ) );
				}
			}