Class TemplateRegistry

java.lang.Object
eu.bandm.tools.xslt.base.TemplateRegistry

public class TemplateRegistry extends Object
Stores and organizes template codes and retrieves the best fitting for a given element. For execution speed, there are direct look-ups for the FINAL/lowest-level TPath.Step element for the diverse node/test kinds. The indexing scheme is given with the data definition in Rt.
  • Field Details

    • priority_tag_with_context

      public static final Double priority_tag_with_context
      Default priorities, see [XSLT 1.0:5.5. listpoint 2]
    • priority_keyOrId

      public static final Double priority_keyOrId
    • priority_full_tag

      public static final Double priority_full_tag
    • priority_nsuri_only

      public static final Double priority_nsuri_only
    • priority_kind_only

      public static final Double priority_kind_only
    • allIds

      public final Set<String> allIds
  • Method Details

    • add

      public void add(eu.bandm.tools.xslt.tdom.Element_xsl_template t, String match, NamespaceName mode, String priority)
      Add a template with match expression, mode and priority. The match expression is parsed as a tpath expression, and must be conformant to certain restrictions.
    • checkAdd

      protected boolean checkAdd(Rt.TemplateEntry old, eu.bandm.tools.xslt.tdom.Element_xsl_template candidate, String text)
    • dump

      public void dump(PrintStream p0)