tagScript = createStaticTag(namespaceURI, localName, qName, list);
}
tagScriptStack.add(tagScript);
if (tagScript != null) {
// set parent relationship...
Tag tag = tagScript.getTag();
tag.setParent(parentTag);
// set the namespace Map
if ( elementNamespaces != null ) {
tagScript.setNamespacesMap( elementNamespaces );
elementNamespaces = null;
}
// set the line number details
if ( locator != null ) {
tagScript.setLocator(locator);
}
// sets the file name element names
tagScript.setFileName(fileName);
tagScript.setElementName(qName);
// pop another tag onto the stack
if ( parentTag != null ) {
tagStack.add( parentTag );
}
parentTag = tag;
if (textBuffer.length() > 0) {
addTextScript(textBuffer.toString());
textBuffer.setLength(0);
}
script.addScript(tagScript);
// start a new body
scriptStack.push(script);
script = new ScriptBlock();
tag.setBody(script);
}
else {
// XXXX: might wanna handle empty elements later...
textBuffer.append("<");
textBuffer.append(qName);