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 |
{ |
{ |
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) ? |
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()); |