Package com.jclark.xsl.dom

Examples of com.jclark.xsl.dom.Transform


    modelFile = "playModel";
     
  URL modelUrl = new URL(Http + modelFile + ".xml");
  Node modelRoot = getDocumentTree(modelUrl);
  URL identityTransfUrl = new URL(Http + "identity.xsl");
  Transform tocTransform = getTransform(identityTransfUrl);
  TocTree tree = TocTree.makeTocTree(modelRoot, tocTransform, this);
  CollectionModel model = new CollectionModel();
  model.setTree(tree);
  return model;
      }
View Full Code Here


    }
    return array.toIntArray();
      }
   
  private TocTree createTocTree(Names names) throws Exception {
      Transform transform = getTocTransformForType(_docType);
      TocTree tree =
    TocTree.makeTocTree(_documentTree, transform, names);
      _docTocCorrespondence = new Hashtable();
      establishCorrespondence(tree.getRoot());
      return _tocTree = tree;
View Full Code Here

      else {
    System.out.println("creating transform: " + stylesheetUrl);
    InputStream stylesheetStream = stylesheetUrl.openStream();
    XmlDocument sheet =
        XmlDocument.createXmlDocument(stylesheetStream, false);
    Transform transform = _transformEngine.createTransform(sheet);
    _transformCache.put(stylesheetUrl, transform);
    return transform;
      }
  }
  else
View Full Code Here

  throws Exception {
  try {
      URL modelUrl = new URL(_catalog.getModel(docType));
      Node modelRoot = getDocumentTree(modelUrl, "");
      URL identityTransfUrl = new URL(Http + "identity.xsl");
      Transform tocTransform = getTransform(identityTransfUrl);
      TocTree tree = TocTree.makeTocTree(modelRoot, tocTransform, this);
      CollectionModel model = new CollectionModel();
      model.setTree(tree);
      return model;
  }
View Full Code Here

*/

public class XTTransformer extends AbstractActor implements Transformer, Status {

    public Document transform(Document document, String documentBase, Document sheet, String sheetBase, Document result) throws Exception {
        Transform transformer = new XSLTransformEngine().createTransform(sheet);
        transformer.transform(document, result);
        return result;
    }
View Full Code Here

*/

public class XTTransformer extends AbstractActor implements Transformer, Status {

    public Document transform(Document document, String documentBase, Document sheet, String sheetBase, Document result) throws Exception {
        Transform transformer = new XSLTransformEngine().createTransform(sheet);
        transformer.transform(document, result);
        return result;
    }
View Full Code Here

TOP

Related Classes of com.jclark.xsl.dom.Transform

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.