org.activemath.presentation.xsl.symbolpresentation
Class PresentationTagDecorator

java.lang.Object
  extended by org.activemath.presentation.xsl.symbolpresentation.PresentationTagDecorator

public class PresentationTagDecorator
extends Object

There are multiple defintions of <symbolpresentation> element exists for a OpenMath symbol. In the end <symbolpresentation> element is transformed into XSLT templates. In XSLT multiple presentation for one symbol requires conditional code. This class put appropiate conditions inside the <symbolpresentation> element, which are later used my our XSLT stylesheets (for the <symbolpresentation> element)


Constructor Summary
PresentationTagDecorator()
           
 
Method Summary
 void decorate(org.jdom.Document doc)
          This method add conditional code for XSLT in the source doc object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PresentationTagDecorator

public PresentationTagDecorator()
Method Detail

decorate

public void decorate(org.jdom.Document doc)
This method add conditional code for XSLT in the source doc object. It also does a structural change, in which it spilt the <symbolpresentation> element into multiple depends on the <notation> elements structure.

Parameters:
doc - the document being decorated