throw new TemplateParsingException("Error parsing expression", e, currentToken.getLineNo(), currentToken.getColumn());
}
}
private TagNode tag() throws IOException, TemplateParsingException {
OpenTagToken token = (OpenTagToken) currentToken;
Cambridge bindings = Cambridge.getInstance();
TagNode node = null;
if (token.getNameSpace() != null) {
String namespaceUri = getNamespaceUri(token.getNameSpace());
if (namespaceUri != null) {
node = bindings.getDynamicTag(new DynamicAttributeKey(namespaceUri, token.getNameSpace(), token.getTagName()));
}
}
boolean dynamicTag = true;
if (node == null) {
node = new TagNode();
dynamicTag = false;
}
node.setBeginLine(token.getLineNo());
node.setBeginColumn(token.getColumn());
node.setTagName(token.getTagName());
node.setNameSpace(token.getNameSpace());
node.setTagNameString(token.value);
// Match the open tag
while (peek(1).getType() != TokenType.EOF) {
nextToken();