maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/util/XPointerFilter.java [32:62]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public XPointerFilter(
    XMLReader        parent,
    NamespaceSupport namespaces,
    String           xpointer)
  {
    super(parent);

    // We support a very rudimentary - but totally sufficient - XPointer syntax,
    // which is just /element/otherelement/otherotherelement/*
    if (!xpointer.startsWith("/") || !xpointer.endsWith("/*"))
      throw new IllegalArgumentException("Unsupported xpointer syntax: " +
                                         xpointer);

    xpointer = xpointer.substring(0, xpointer.length() - 2).substring(1);
    String[] elements = xpointer.split("/");
    int count = elements.length;

    _rootNamespaceURI = new String[count];
    _rootLocalName = new String[count];
    _acceptChildNodes = new boolean[count];

    for (int i = 0; i < count; i++)
    {
      String[] parts = elements[i].split(":");
      String prefix = (parts.length == 1) ? "" : parts[0];
      String namespaceURI = namespaces.getURI(prefix);
      _rootNamespaceURI[i] = (namespaceURI != null) ? namespaceURI : "";
      _rootLocalName[i] = (parts.length == 1) ? parts[0] : parts[1];
      _acceptChildNodes[i] = false;
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/trinidad/util/XPointerFilter.java [32:62]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public XPointerFilter(
    XMLReader        parent,
    NamespaceSupport namespaces,
    String           xpointer)
  {
    super(parent);

    // We support a very rudimentary - but totally sufficient - XPointer syntax,
    // which is just /element/otherelement/otherotherelement/*
    if (!xpointer.startsWith("/") || !xpointer.endsWith("/*"))
      throw new IllegalArgumentException("Unsupported xpointer syntax: " +
                                         xpointer);

    xpointer = xpointer.substring(0, xpointer.length() - 2).substring(1);
    String[] elements = xpointer.split("/");
    int count = elements.length;

    _rootNamespaceURI = new String[count];
    _rootLocalName = new String[count];
    _acceptChildNodes = new boolean[count];

    for (int i = 0; i < count; i++)
    {
      String[] parts = elements[i].split(":");
      String prefix = (parts.length == 1) ? "" : parts[0];
      String namespaceURI = namespaces.getURI(prefix);
      _rootNamespaceURI[i] = (namespaceURI != null) ? namespaceURI : "";
      _rootLocalName[i] = (parts.length == 1) ? parts[0] : parts[1];
      _acceptChildNodes[i] = false;
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



