()
| 607 | } |
| 608 | |
| 609 | func (a *axisNode) String() string { |
| 610 | var b bytes.Buffer |
| 611 | if a.AxisType != "" { |
| 612 | b.Write([]byte(a.AxisType + "::")) |
| 613 | } |
| 614 | if a.Prefix != "" { |
| 615 | b.Write([]byte(a.Prefix + ":")) |
| 616 | } |
| 617 | b.Write([]byte(a.LocalName)) |
| 618 | if a.Prop != "" { |
| 619 | b.Write([]byte("/" + a.Prop + "()")) |
| 620 | } |
| 621 | return b.String() |
| 622 | } |
| 623 | |
| 624 | // operandNode holds a constant operand. |
| 625 | type operandNode struct { |