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

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

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

revision 1.4 by mark, Sat Jul 2 20:32:16 2005 UTC revision 1.5 by dog, Sat Jul 9 20:38:35 2005 UTC
# Line 85  final class ValueOfNode Line 85  final class ValueOfNode
85      throws TransformerException      throws TransformerException
86    {    {
87      Object ret = select.evaluate(context, pos, len);      Object ret = select.evaluate(context, pos, len);
88        /*if (stylesheet.debug)
89          {
90            System.err.println("value-of: " + select + " -> " + ret);
91          }*/
92      String value;      String value;
93      if (ret instanceof Collection)      if (ret instanceof Collection)
94        {        {
# Line 100  final class ValueOfNode Line 104  final class ValueOfNode
104        {        {
105          value = Expr._string(context, ret);          value = Expr._string(context, ret);
106        }        }
107      /*if (stylesheet.debug)      if (stylesheet.debug)
108        {        {
109          System.err.println("value-of: "+context+" "+ select + " -> "+ value);          System.err.println("value-of: "+context+" "+ select + " -> "+ value);
110        }*/        }
111      if (value != null && value.length() > 0)      if (value != null && value.length() > 0)
112        {        {
113          Document doc = (parent instanceof Document) ?          Document doc = (parent instanceof Document) ?
# Line 131  final class ValueOfNode Line 135  final class ValueOfNode
135        }        }
136    }    }
137    
138      public boolean references(QName var)
139      {
140        if (select != null && select.references(var))
141          {
142            return true;
143          }
144        return super.references(var);
145      }
146      
147    public String toString()    public String toString()
148    {    {
149      StringBuffer buf = new StringBuffer(getClass().getName());      StringBuffer buf = new StringBuffer(getClass().getName());

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

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