private void CompileContent(Compiler compiler) {
if (compiler.Recurse()) {
NavigatorInput input = compiler.Input;
this.text = string.Empty;
do {
switch (input.NodeType) {
case XPathNodeType.Text:
case XPathNodeType.Whitespace:
case XPathNodeType.SignificantWhitespace:
this.text += input.Value;
break;
case XPathNodeType.Comment:
case XPathNodeType.ProcessingInstruction:
break;
default:
throw compiler.UnexpectedKeyword();
}
} while(compiler.Advance());
compiler.ToParent();
}
}