return m_parentNode.getNamespaceForPrefix(prefix);
return m_parentNode.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
return m_parentNode.getNamespaceForPrefix(prefix);
/** * Get whether or not the passed prefix is contained flagged by * the "exclude-result-prefixes" property. * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a> * * @param prefix non-null reference to prefix that might be excluded. * @param uri reference to namespace that prefix maps to * * @return true if the prefix should normally be excluded.> */ public boolean containsExcludeResultPrefix(String prefix, String uri) { if (null == m_ExcludeResultPrefixs || uri == null ) return false; // This loop is ok here because this code only runs during // stylesheet compile time. for (int i =0; i< m_ExcludeResultPrefixs.size(); i++) { if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i)))) return true; } return false; /* if (prefix.length() == 0) prefix = Constants.ATTRVAL_DEFAULT_PREFIX; return m_ExcludeResultPrefixs.contains(prefix); */ }
/** * Get whether or not the passed prefix is contained flagged by * the "exclude-result-prefixes" property. * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a> * * @param prefix non-null reference to prefix that might be excluded. * @param uri reference to namespace that prefix maps to * * @return true if the prefix should normally be excluded.> */ public boolean containsExcludeResultPrefix(String prefix, String uri) { if (null == m_ExcludeResultPrefixs || uri == null ) return false; // This loop is ok here because this code only runs during // stylesheet compile time. for (int i =0; i< m_ExcludeResultPrefixs.size(); i++) { if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i)))) return true; } return false; /* if (prefix.length() == 0) prefix = Constants.ATTRVAL_DEFAULT_PREFIX; return m_ExcludeResultPrefixs.contains(prefix); */ }
/** * If the function is an extension function, register the namespace. * * @param owner The current XPath object that owns the expression. * @param func The function currently being visited. * * @return true to continue the visit in the subtree, if any. */ public boolean visitFunction(ExpressionOwner owner, Function func) { if (func instanceof FuncExtFunction) { String namespace = ((FuncExtFunction)func).getNamespace(); m_sroot.getExtensionNamespacesManager().registerExtension(namespace); } else if (func instanceof FuncExtFunctionAvailable) { String arg = ((FuncExtFunctionAvailable)func).getArg0().toString(); if (arg.indexOf(":") > 0) { String prefix = arg.substring(0,arg.indexOf(":")); String namespace = this.m_sroot.getNamespaceForPrefix(prefix); m_sroot.getExtensionNamespacesManager().registerExtension(namespace); } } return true; }
/** * If the function is an extension function, register the namespace. * * @param owner The current XPath object that owns the expression. * @param func The function currently being visited. * * @return true to continue the visit in the subtree, if any. */ public boolean visitFunction(ExpressionOwner owner, Function func) { if (func instanceof FuncExtFunction) { String namespace = ((FuncExtFunction)func).getNamespace(); m_sroot.getExtensionNamespacesManager().registerExtension(namespace); } else if (func instanceof FuncExtFunctionAvailable) { String arg = ((FuncExtFunctionAvailable)func).getArg0().toString(); if (arg.indexOf(":") > 0) { String prefix = arg.substring(0,arg.indexOf(":")); String namespace = this.m_sroot.getNamespaceForPrefix(prefix); m_sroot.getExtensionNamespacesManager().registerExtension(namespace); } } return true; }
for (int i =0; i< m_excludeResultPrefixes.size(); i++) if (uri.equals(getNamespaceForPrefix(m_excludeResultPrefixes.elementAt(i)))) return true;
for (int i =0; i< m_excludeResultPrefixes.size(); i++) if (uri.equals(getNamespaceForPrefix(m_excludeResultPrefixes.elementAt(i)))) return true;
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);
String declNamespace = child.getNamespaceForPrefix(prefix);