Package com.icl.saxon.tree

Examples of com.icl.saxon.tree.AttributeCollection


    int thisFingerprint = namePool.getFingerprint(nameCode);
    int colFingerprint = namePool.getFingerprint("", "col");
    int foColFingerprint = namePool.getFingerprint(foURI, "table-column");

    if (thisFingerprint == colFingerprint) {
      AttributeCollection attr = new AttributeCollection(namePool, attributes);
      int widthFingerprint = namePool.getFingerprint("", "width");

      if (attr.getValueByFingerprint(widthFingerprint) == null) {
  attr.addAttribute(widthFingerprint, "CDATA", width[numColumns++]);
      } else {
  attr.setAttribute(widthFingerprint, "CDATA", width[numColumns++]);
      }
      attributes = attr;
    } else if (thisFingerprint == foColFingerprint) {
      AttributeCollection attr = new AttributeCollection(namePool, attributes);
      int widthFingerprint = namePool.getFingerprint("", "column-width");

      if (attr.getValueByFingerprint(widthFingerprint) == null) {
  attr.addAttribute(widthFingerprint, "CDATA", width[numColumns++]);
      } else {
  attr.setAttribute(widthFingerprint, "CDATA", width[numColumns++]);
      }
      attributes = attr;
    }

    rtfEmitter.startElement(nameCode, attributes, namespaces, nscount);
View Full Code Here


    }

    try {
      if (userLabel == null && num <= graphicsMax) {
  int imgName = 0;
  AttributeCollection imgAttr = null;
  int namespaces[] = new int[1];

  if (foStylesheet) {
    imgName = namePool.allocate("fo", foURI, "external-graphic");
    imgAttr = new AttributeCollection(namePool);
    imgAttr.addAttribute("", "", "src", "CDATA",
             graphicsPath + num + graphicsExt);
  } else {
    imgName = namePool.allocate("", "", "img");
    imgAttr = new AttributeCollection(namePool);
    imgAttr.addAttribute("", "", "src", "CDATA",
             graphicsPath + num + graphicsExt);
    imgAttr.addAttribute("", "", "alt", "CDATA", label);
  }

  startSpan(rtfEmitter);
  rtfEmitter.startElement(imgName, imgAttr, namespaces, 0);
  rtfEmitter.endElement(imgName);
View Full Code Here

TOP

Related Classes of com.icl.saxon.tree.AttributeCollection

Copyright © 2018 www.massapicom. 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.