public Tag(Tag orig, TagAttributes attributes) { this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig .getQName(), attributes); }
private String[] determineQName(Tag tag) { TagAttribute attr = tag.getAttributes().get("jsfc"); if (attr != null) { if (log.isLoggable(Level.FINE)) { log.fine(attr + " JSF Facelet Compile Directive Found"); } String value = attr.getValue(); String namespace, localName; int c = value.indexOf(':'); if (c == -1) { namespace = this.namespaceManager.getNamespace(""); localName = value; } else { String prefix = value.substring(0, c); namespace = this.namespaceManager.getNamespace(prefix); if (namespace == null) { throw new TagAttributeException(tag, attr, "No Namespace matched for: " + prefix); } localName = value.substring(c + 1); } return new String[] { namespace, localName }; } else { return new String[] { tag.getNamespace(), tag.getLocalName() }; } }
.size()]); return new Tag(tag.getLocation(), tag.getNamespace(), tag .getLocalName(), tag.getQName(), new TagAttributes(attr));
public Tag decorate(Tag tag) { if (XhtmlNamespace.equals(tag.getNamespace())) { String n = tag.getLocalName(); if ("a".equals(n)) { return new Tag(tag.getLocation(), HtmlLibrary.Namespace,