(final CompileContext cc)
| 34 | } |
| 35 | |
| 36 | @Override |
| 37 | public Expr optimize(final CompileContext cc) throws QueryException { |
| 38 | name = name.simplifyFor(Simplify.STRING, cc); |
| 39 | if(name instanceof Value) { |
| 40 | final byte[] nm = ncname(false, cc.qc); |
| 41 | name = Str.get(nm); |
| 42 | exprType.assign(NodeType.get(NameTest.get(new QNm(nm), Kind.PROCESSING_INSTRUCTION))); |
| 43 | } |
| 44 | optValue(cc); |
| 45 | return this; |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public FPI item(final QueryContext qc, final InputInfo ii) throws QueryException { |