/[classpath]/classpath/gnu/xml/transform/Stylesheet.java
ViewVC logotype

Diff of /classpath/gnu/xml/transform/Stylesheet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dog, Thu Jun 30 22:09:07 2005 UTC revision 1.4 by dog, Fri Jul 1 15:34:39 2005 UTC
# Line 123  class Stylesheet Line 123  class Stylesheet
123    /**    /**
124     * Output options.     * Output options.
125     */     */
126      Node output;
127    int outputMethod;    int outputMethod;
128    String outputVersion;    String outputVersion;
129    String outputEncoding;    String outputEncoding;
# Line 385  class Stylesheet Line 386  class Stylesheet
386    TemplateNode getTemplate(QName mode, Node context, boolean applyImports)    TemplateNode getTemplate(QName mode, Node context, boolean applyImports)
387      throws TransformerException      throws TransformerException
388    {    {
389      //System.err.println("getTemplate: mode="+mode+" context="+context);      if (debug)
390          {
391            System.err.println("getTemplate: mode="+mode+" context="+context);
392          }
393      Set candidates = new TreeSet();      Set candidates = new TreeSet();
394      for (Iterator j = templates.iterator(); j.hasNext(); )      for (Iterator j = templates.iterator(); j.hasNext(); )
395        {        {
# Line 415  class Stylesheet Line 419  class Stylesheet
419        {        {
420          // Apply built-in template          // Apply built-in template
421          // Current template is unchanged          // Current template is unchanged
422          //System.err.println("\tbuiltInTemplate context="+context);          if (debug)
423              {
424                System.err.println("\tbuiltInTemplate context="+context);
425              }
426          switch (context.getNodeType())          switch (context.getNodeType())
427            {            {
428            case Node.ELEMENT_NODE:            case Node.ELEMENT_NODE:
# Line 436  class Stylesheet Line 443  class Stylesheet
443          Template t = (Template) candidates.iterator().next();          Template t = (Template) candidates.iterator().next();
444          // Set current template          // Set current template
445          currentTemplate = t;          currentTemplate = t;
446          //System.err.println("\ttemplate="+t+" context="+context);          if (debug)
447              {
448                System.err.println("\ttemplate="+t+" context="+context);
449              }
450          return t.node;          return t.node;
451        }        }
452    }    }
# Line 504  class Stylesheet Line 514  class Stylesheet
514    final void parseOutput(Node node, NamedNodeMap attrs)    final void parseOutput(Node node, NamedNodeMap attrs)
515      throws TransformerConfigurationException      throws TransformerConfigurationException
516    {    {
517        output = node;
518      String method = getAttribute(attrs, "method");      String method = getAttribute(attrs, "method");
519      if ("xml".equals(method) || method == null)      if ("xml".equals(method) || method == null)
520        {        {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26