node = new LiteralElement(); node.setLineNumber(getLineNumber()); ((LiteralElement)node).setQName(qname);
/** * Returns the namespace URI for which a prefix is pointing to */ private String accessedNamespace(String prefix) { if (_literalElemParent != null) { String result = _literalElemParent.accessedNamespace(prefix); if (result != null) { return result; } } return _accessedPrefixes != null ? (String) _accessedPrefixes.get(prefix) : null; }
SyntaxTreeNode parent = getParent(); if (parent != null && parent instanceof LiteralElement) { _literalElemParent = (LiteralElement) parent; _name = translateQName(_qname, stable); parser.reportError(Constants.ERROR, err); setFirstAttribute(new UseAttributeSets(val, parser)); final String name = translateQName(qname, stable); LiteralAttribute attr = new LiteralAttribute(name, val, parser, this); addAttribute(attr); attr.setParent(this); attr.parseContents(parser); final Enumeration include = getNamespaceScope(this); while (include.hasMoreElements()) { final String prefix = (String)include.nextElement(); if (!prefix.equals("xml")) { final String uri = lookupNamespace(prefix); if (uri != null && !stable.isExcludedNamespace(uri)) { registerNamespace(prefix, uri, stable, true); parseChildren(parser);
String uri = lookupNamespace(prefix); if (uri == null) return(localname); registerNamespace(prefix, uri, stable, false);
_allAttributesUnique = checkAttributesUnique(); while (j < elementCount()) { final SyntaxTreeNode item = (SyntaxTreeNode) elementAt(j); if (item instanceof Variable) { item.translate(classGen, methodGen); translateContents(classGen, methodGen);
_name = translateQName(_qname, stable); parser.reportError(Constants.ERROR, err); setFirstAttribute(new UseAttributeSets(val, parser)); final String name = translateQName(qname, stable); LiteralAttribute attr = new LiteralAttribute(name, val, parser, this); addAttribute(attr); attr.setParent(this); attr.parseContents(parser); final Enumeration include = getNamespaceScope(this); while (include.hasMoreElements()) { final String prefix = (String)include.nextElement(); final String uri = lookupNamespace(prefix); if (uri != null && !stable.isExcludedNamespace(uri)) { registerNamespace(prefix, uri, stable, true);
&& ((LiteralElement)parent).allAttributesUnique()) { ElemDesc elemDesc = ((LiteralElement)parent).getElemDesc();
((LiteralElement)parent).registerNamespace(_prefix, namespace, stable, false); ((LiteralElement)parent).addAttribute(this);
boolean hasHiddenXslAttribute = canProduceAttributeNodes(this, true); if (hasHiddenXslAttribute) return false;
/** * Return the ElemDesc object for an HTML element. * Return null if the output method is not HTML or this is not a * valid HTML element. */ public ElemDesc getElemDesc() { if (isHTMLOutput()) { return ToHTMLStream.getElemDesc(_name); } else return null; }
registerNamespace(prefix, uri, stable, false);
node = new LiteralElement(); node.setLineNumber(getLineNumber());
_allAttributesUnique = checkAttributesUnique();
_name = translateQName(_qname, stable); parser.reportError(Constants.ERROR, err); setFirstAttribute(new UseAttributeSets(val, parser)); final String name = translateQName(qname, stable); LiteralAttribute attr = new LiteralAttribute(name, val, parser, this); addAttribute(attr); attr.setParent(this); attr.parseContents(parser); final Enumeration include = getNamespaceScope(this); while (include.hasMoreElements()) { final String prefix = (String)include.nextElement(); final String uri = lookupNamespace(prefix); if (uri != null && !stable.isExcludedNamespace(uri)) { registerNamespace(prefix, uri, stable, true);
&& ((LiteralElement)parent).allAttributesUnique()) { int flags = 0; ElemDesc elemDesc = ((LiteralElement)parent).getElemDesc();
((LiteralElement)parent).registerNamespace(_prefix, namespace, stable, false); ((LiteralElement)parent).addAttribute(this);
_allAttributesUnique = checkAttributesUnique(); while (j < elementCount()) { final SyntaxTreeNode item = (SyntaxTreeNode) elementAt(j); if (item instanceof Variable) { item.translate(classGen, methodGen); translateContents(classGen, methodGen);
else if ((child instanceof If || child instanceof ForEach) && canProduceAttributeNodes(child, false)) { return true; SyntaxTreeNode chooseChild = (SyntaxTreeNode)chooseContents.elementAt(k); if (chooseChild instanceof When || chooseChild instanceof Otherwise) { if (canProduceAttributeNodes(chooseChild, false)) return true;
String uri = lookupNamespace(prefix); if (uri == null) return(localname); registerNamespace(prefix, uri, stable, false);
/** * Return the ElemDesc object for an HTML element. * Return null if the output method is not HTML or this is not a * valid HTML element. */ public ElemDesc getElemDesc() { if (isHTMLOutput()) { return ToHTMLStream.getElemDesc(_name); } else return null; }