Class AllowGtTemplate

  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.template.AllowGtTemplate (view source)
All Implemented Interfaces:

public class AllowGtTemplate
extends Template

Template that changes the behavior of the HTML/XML parser to allow unescaped >'s inside of entity attribute values. On the down side, it doesn't deal with unmatched "'s gracefully

By default, the LexML parser does not allow a > inside of an entity body. The parser allows applications to provide ways of allowing embedded >'s, based on whatever syntax they like, This example will ignore a > (as the end of the entity) if inside a quoted attribute value.

No new markup is supported; the behavior of the HTML/XML parsing is altered for the duration of the page. This template is useful primarily to demonstrate how to change the parser token processing.

Field Summary
Fields inherited from class sunlabs.brazil.template.Template
Constructor Summary
Method Summary
 boolean init(RewriteContext hr)
          Replace the "default" parser with our modified one.
Methods inherited from class sunlabs.brazil.template.Template
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AllowGtTemplate()
Method Detail


public boolean init(RewriteContext hr)
Replace the "default" parser with our modified one.

Specified by:
init in interface TemplateInterface
init in class Template

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.