Examples of ProcessingInstruction


Examples of org.w3c.dom.ProcessingInstruction

     */
    protected String extractXSLProcessingInstruction(Document doc) {
        Node child = doc.getFirstChild();
        while (child != null) {
            if (child.getNodeType() == child.PROCESSING_INSTRUCTION_NODE) {
                ProcessingInstruction pi
                    = (ProcessingInstruction)child;
               
                HashTable table = new HashTable();
                DOMUtilities.parseStyleSheetPIData(pi.getData(),
                                                   table);

                Object type = table.get(PSEUDO_ATTRIBUTE_TYPE);
                if (XSL_PROCESSING_INSTRUCTION_TYPE.equals(type)) {
                    Object href = table.get(PSEUDO_ATTRIBUTE_HREF);
View Full Code Here

Examples of org.zkoss.idom.ProcessingInstruction

    String lang = null;
    for (Iterator it = doc.getChildren().iterator(); it.hasNext();) {
      final Object o = it.next();
      if (!(o instanceof ProcessingInstruction)) continue;

      final ProcessingInstruction pi = (ProcessingInstruction)o;
      final String target = pi.getTarget();
      if ("page".equals(target)) {
        //we handle only the language attribute here
        final Map params = pi.parseData();
        final String l = (String)params.remove("language");
        if (l != null) {
          noEL("language", l, pi);
          lang = l;
        }

        if (!params.isEmpty())
          pis.add(pi); //process it later
      } else if ("import".equals(target)) { //import
        final Map params = pi.parseData();
        final String src = (String)params.remove("src");
        final String dirs = (String)params.remove("directives");
        if (!params.isEmpty())
          log.warning("Ignored unknown attributes: "+params.keySet()+", "+pi.getLocator());
        noELnorEmpty("src", src, pi);
        noEL("directives", dirs, pi);
        imports.add(new String[] {src, dirs});
      } else {
        pis.add(pi);
View Full Code Here

Examples of weblogic.xml.stream.ProcessingInstruction

                }

                break;

            case XMLEvent.PROCESSING_INSTRUCTION :
                ProcessingInstruction procInstr = (ProcessingInstruction) xe;

                context.procinst( procInstr.getTarget(), procInstr.getData() );

                if (lineNums)
                    context.lineNumberAnnotation( xe );

                break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.