You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by jv...@apache.org on 2009/02/17 19:08:36 UTC
svn commit: r745177 - in
/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc: ./
src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/sling/ src/main/java/org/apache/sling/scripting/
src/...
Author: jvazquez
Date: Tue Feb 17 18:08:35 2009
New Revision: 745177
URL: http://svn.apache.org/viewvc?rev=745177&view=rev
Log:
Prototype´s first version
Added:
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/pom.xml
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngineFactory.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplBuilder.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplConstants.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/AtomicStep.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/CompoundStep.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Document.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Input.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Invocation.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Pipeline.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Step.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElement.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElementFactory.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Xslt.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/AbstractXplElement.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/DocumentImpl.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InputImpl.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InvocationImpl.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/PipelineImpl.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XplElementFactoryImpl.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XsltImpl.java
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/DISCLAIMER
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/LICENSE
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/NOTICE
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/services/
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory
Modified:
incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/ (props changed)
Propchange: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Feb 17 18:08:35 2009
@@ -0,0 +1,2 @@
+target*
+.*
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/pom.xml?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/pom.xml (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/pom.xml Tue Feb 17 18:08:35 2009
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>sling</artifactId>
+ <version>5-incubator-SNAPSHOT</version>
+ <relativePath>../../parent/pom.xml</relativePath>
+ </parent>
+
+ <artifactId>org.apache.sling.scripting.xproc</artifactId>
+ <version>2.0.0-incubator-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+
+ <name>Apache Sling Scripting W3C XML Processing Support</name>
+ <description>
+ Support for W3C XML Processing scripting (http://www.w3.org/XML/Processing/)
+ </description>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/scripting/xproc</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/scripting/xproc</developerConnection>
+ <url>http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/xproc</url>
+ </scm>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-scr-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Private-Package>
+ org.apache.sling.scripting.xproc.*,
+ org.apache.sling.xproc.*
+ </Private-Package>
+
+ <Embed-Dependency>cocoon-pipeline;inline=true</Embed-Dependency>
+ <!--
+ <Import-Package>
+ javax.servlet.jsp.*; javax.swing.*;
+ org.apache.log; org.apache.log4j;
+ org.apache.tools.ant.*;
+ org.apache.xml.utils; org.apache.xpath.*;
+ org.dom4j.*; org.jaxen.*; org.jdom.*;
+ org.mozilla.javascript;
+ org.python.*;resolution:=optional, *
+ </Import-Package>
+ -->
+
+ <ScriptEngine-Name>${pom.name}</ScriptEngine-Name>
+ <ScriptEngine-Version>${pom.version}</ScriptEngine-Version>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.api</artifactId>
+ <version>2.0.2-incubator</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.scripting.api</artifactId>
+ <version>2.0.2-incubator</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.jcr.resource</artifactId>
+ <version>2.0.2-incubator</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.jackrabbit</groupId>
+ <artifactId>jackrabbit-jcr-commons</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.jackrabbit</groupId>
+ <artifactId>jackrabbit-classloader</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.jcr</groupId>
+ <artifactId>jcr</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon.pipeline</groupId>
+ <artifactId>cocoon-pipeline</artifactId>
+ <version>3.0.0-alpha-1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <!-- Testing -->
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.commons.testing</artifactId>
+ <version>2.0.3-incubator-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+
+ <profile>
+ <id>autoInstallBundle</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>maven-sling-plugin</artifactId>
+ <version>2.0.2-incubator</version>
+ <executions>
+ <execution>
+ <id>install-bundle</id>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <slingUrl>
+ http://localhost:8888/system/console/install
+ </slingUrl>
+ <user>admin</user>
+ <password>admin</password>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
+</project>
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngine.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,48 @@
+package org.apache.sling.scripting.xproc;
+
+import java.io.Reader;
+
+import javax.script.Bindings;
+import javax.script.ScriptContext;
+import javax.script.ScriptEngineFactory;
+import javax.script.ScriptException;
+
+import org.apache.sling.api.scripting.SlingBindings;
+import org.apache.sling.api.scripting.SlingScriptHelper;
+import org.apache.sling.scripting.api.AbstractSlingScriptEngine;
+import org.apache.sling.xproc.XplBuilder;
+import org.apache.sling.xproc.api.Pipeline;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class XProcScriptEngine extends AbstractSlingScriptEngine {
+
+ private static final Logger log = LoggerFactory.getLogger(XProcScriptEngine.class);
+
+ protected XProcScriptEngine(ScriptEngineFactory factory) {
+ super(factory);
+ }
+
+ public Object eval(Reader reader, ScriptContext scriptContext) throws ScriptException {
+ Bindings bindings = scriptContext.getBindings(ScriptContext.ENGINE_SCOPE);
+ SlingScriptHelper helper = (SlingScriptHelper) bindings.get(SlingBindings.SLING);
+ if (helper == null) {
+ throw new ScriptException("SlingScriptHelper missing from bindings");
+ }
+
+ String scriptName = helper.getScript().getScriptResource().getPath();
+
+ try {
+ XplBuilder xplBuilder = new XplBuilder();
+ Pipeline xpl = (Pipeline) xplBuilder.build(reader);
+ xpl.execute(helper.getResponse().getOutputStream());
+ } catch (Throwable t) {
+ log.error("Failure running XProc script.", t);
+ throw new ScriptException("Failure running XProc script "
+ + scriptName);
+ }
+
+ return null;
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngineFactory.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngineFactory.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/scripting/xproc/XProcScriptEngineFactory.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,37 @@
+package org.apache.sling.scripting.xproc;
+
+import javax.script.ScriptEngine;
+
+import org.apache.sling.scripting.api.AbstractScriptEngineFactory;
+
+public class XProcScriptEngineFactory extends AbstractScriptEngineFactory {
+
+ public final static String XPROC_SCRIPT_EXTENSION = "xpl";
+
+ public final static String XPROC_MIME_TYPE = "application/xml";
+
+ public final static String SHORT_NAME = "XProc";
+
+ private static final String XPROC_NAME = "XMLProc";
+
+ private static final String DEFAULT_XPROC_VERSION = "1.0";
+
+ public XProcScriptEngineFactory() {
+ setExtensions(XPROC_SCRIPT_EXTENSION);
+ setMimeTypes(XPROC_MIME_TYPE);
+ setNames(SHORT_NAME, "xml processing", "xml pipeline processor");
+ }
+
+ public ScriptEngine getScriptEngine() {
+ return new XProcScriptEngine(this);
+ }
+
+ public String getLanguageName() {
+ return XPROC_NAME;
+ }
+
+ public String getLanguageVersion() {
+ return DEFAULT_XPROC_VERSION;
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplBuilder.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplBuilder.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplBuilder.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplBuilder.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,85 @@
+package org.apache.sling.xproc;
+
+import java.io.Reader;
+
+import javax.xml.namespace.QName;
+
+import org.apache.sling.xproc.api.Step;
+import org.apache.sling.xproc.api.XplElement;
+import org.apache.sling.xproc.api.XplElementFactory;
+import org.apache.sling.xproc.impl.XplElementFactoryImpl;
+import org.xml.sax.Attributes;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
+import org.xml.sax.XMLReader;
+import org.xml.sax.helpers.DefaultHandler;
+import org.xml.sax.helpers.XMLReaderFactory;
+
+public class XplBuilder {
+
+ private XplElementFactory xplElementFactory;
+
+ public XplBuilder() {
+ this.xplElementFactory = new XplElementFactoryImpl();
+ }
+
+ public Step build(Reader xplReader) throws Exception {
+ XMLReader xMLReader = XMLReaderFactory.createXMLReader();
+ XplHandler xplHandler = new XplHandler();
+ xMLReader.setContentHandler(xplHandler);
+ InputSource inputSource = new InputSource(xplReader);
+ xMLReader.parse(inputSource);
+ return xplHandler.getRootStep();
+ }
+
+ public void setSitemapNodeFactory(XplElementFactory xplElementFactory) {
+ this.xplElementFactory = new XplElementFactoryImpl();
+ }
+
+ protected XplElement createXplElement(String localName) {
+ return XplBuilder.this.xplElementFactory.createXplElement(new QName(XplConstants.NS_XPROC, localName));
+ }
+
+ class XplHandler extends DefaultHandler {
+
+ private XplElement currentXplElement;
+ private Step rootStep;
+
+ @Override
+ public void endElement(String uri, String localName, String name) throws SAXException {
+ if (this.currentXplElement == null) {
+ throw new IllegalStateException("Received closing '" + localName + "' but there was no element to close.");
+ }
+
+ this.currentXplElement = this.currentXplElement.getParent();
+ }
+
+ @Override
+ public void error(SAXParseException e) throws SAXException {
+ throw e;
+ }
+
+ public Step getRootStep() {
+ return this.rootStep;
+ }
+
+ @Override
+ public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException {
+ if (this.currentXplElement == null) {
+ if (XplConstants.QNAME_PIPELINE.getLocalPart().equals(localName)) {
+ this.rootStep = (Step) XplBuilder.this.createXplElement(localName);
+ this.currentXplElement = this.rootStep;
+ return;
+ }
+ throw new IllegalStateException("Expected 'pipeline' as first element, but received '" + localName + "'");
+ }
+
+ XplElement xplElement = createXplElement(localName);
+ this.currentXplElement.addChild(xplElement);
+ this.currentXplElement = xplElement;
+ }
+
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplConstants.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplConstants.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplConstants.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/XplConstants.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,14 @@
+package org.apache.sling.xproc;
+
+import javax.xml.namespace.QName;
+
+public class XplConstants {
+
+ public static final String NS_XPROC = "http://www.w3.org/ns/xproc";
+
+ public static final QName QNAME_PIPELINE = new QName(NS_XPROC, "pipeline");
+ public static final QName QNAME_XSLT = new QName(NS_XPROC, "xslt");
+ public static final QName QNAME_INPUT = new QName(NS_XPROC, "input");
+ public static final QName QNAME_DOCUMENT = new QName(NS_XPROC, "document");
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/AtomicStep.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/AtomicStep.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/AtomicStep.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/AtomicStep.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,5 @@
+package org.apache.sling.xproc.api;
+
+public interface AtomicStep extends Step {
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/CompoundStep.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/CompoundStep.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/CompoundStep.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/CompoundStep.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,5 @@
+package org.apache.sling.xproc.api;
+
+public interface CompoundStep extends Step {
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Document.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Document.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Document.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Document.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,5 @@
+package org.apache.sling.xproc.api;
+
+public interface Document extends XplElement {
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Input.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Input.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Input.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Input.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,5 @@
+package org.apache.sling.xproc.api;
+
+public interface Input extends XplElement {
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Invocation.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Invocation.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Invocation.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Invocation.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,11 @@
+package org.apache.sling.xproc.api;
+
+import org.apache.cocoon.pipeline.Pipeline;
+
+public interface Invocation {
+
+ Pipeline getCocoonPipeline();
+
+ void setCocoonPipeline(Pipeline cocoonPipeline);
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Pipeline.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Pipeline.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Pipeline.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Pipeline.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,9 @@
+package org.apache.sling.xproc.api;
+
+import java.io.OutputStream;
+
+public interface Pipeline extends CompoundStep {
+
+ void execute(OutputStream outputStream) throws Exception;
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Step.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Step.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Step.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Step.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,5 @@
+package org.apache.sling.xproc.api;
+
+public interface Step extends XplElement {
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElement.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElement.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElement.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElement.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,13 @@
+package org.apache.sling.xproc.api;
+
+public interface XplElement {
+
+ XplElement getParent();
+
+ void setParent(XplElement parent);
+
+ void addChild(XplElement child);
+
+ void invoke(Invocation invocation) throws Exception;
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElementFactory.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElementFactory.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElementFactory.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/XplElementFactory.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,9 @@
+package org.apache.sling.xproc.api;
+
+import javax.xml.namespace.QName;
+
+public interface XplElementFactory {
+
+ XplElement createXplElement(QName type);
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Xslt.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Xslt.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Xslt.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/api/Xslt.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,5 @@
+package org.apache.sling.xproc.api;
+
+public interface Xslt extends AtomicStep {
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/AbstractXplElement.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/AbstractXplElement.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/AbstractXplElement.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/AbstractXplElement.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,33 @@
+package org.apache.sling.xproc.impl;
+
+import java.util.LinkedList;
+
+import org.apache.sling.xproc.api.Invocation;
+import org.apache.sling.xproc.api.XplElement;
+
+public abstract class AbstractXplElement implements XplElement {
+
+ private XplElement parent;
+
+ private final LinkedList<XplElement> children = new LinkedList<XplElement>();
+
+ public void addChild(XplElement child) {
+ this.children.add(child);
+ child.setParent(this);
+ }
+
+ public void invoke(Invocation invocation) throws Exception {
+ for (XplElement child : children) {
+ child.invoke(invocation);
+ }
+ }
+
+ public XplElement getParent() {
+ return parent;
+ }
+
+ public void setParent(XplElement parent) {
+ this.parent = parent;
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/DocumentImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/DocumentImpl.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/DocumentImpl.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/DocumentImpl.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,8 @@
+package org.apache.sling.xproc.impl;
+
+import org.apache.sling.xproc.api.Document;
+
+public class DocumentImpl extends AbstractXplElement implements Document {
+
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InputImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InputImpl.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InputImpl.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InputImpl.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,8 @@
+package org.apache.sling.xproc.impl;
+
+import org.apache.sling.xproc.api.Input;
+
+public class InputImpl extends AbstractXplElement implements Input {
+
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InvocationImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InvocationImpl.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InvocationImpl.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/InvocationImpl.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,29 @@
+package org.apache.sling.xproc.impl;
+
+import java.io.OutputStream;
+
+import org.apache.cocoon.pipeline.Pipeline;
+import org.apache.sling.xproc.api.Invocation;
+
+public class InvocationImpl implements Invocation {
+
+ private OutputStream outputStream;
+ private Pipeline cocoonPipeline;
+
+ public Pipeline getCocoonPipeline() {
+ return cocoonPipeline;
+ }
+
+ public void setCocoonPipeline(Pipeline cocoonPipeline) {
+ this.cocoonPipeline = cocoonPipeline;
+ }
+
+ public OutputStream getOutputStream() {
+ return outputStream;
+ }
+
+ public void setOutputStream(OutputStream outputStream) {
+ this.outputStream = outputStream;
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/PipelineImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/PipelineImpl.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/PipelineImpl.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/PipelineImpl.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,28 @@
+package org.apache.sling.xproc.impl;
+
+import java.io.OutputStream;
+import java.net.URL;
+
+import org.apache.cocoon.pipeline.NonCachingPipeline;
+import org.apache.cocoon.pipeline.component.sax.FileGenerator;
+import org.apache.cocoon.pipeline.component.sax.XMLSerializer;
+import org.apache.sling.xproc.api.Invocation;
+import org.apache.sling.xproc.api.Pipeline;
+
+public class PipelineImpl extends AbstractXplElement implements Pipeline {
+
+ public void execute(OutputStream outputStream) throws Exception {
+ org.apache.cocoon.pipeline.Pipeline cocoonPipeline = new NonCachingPipeline();
+
+ cocoonPipeline.addComponent(new FileGenerator(new URL("http://localhost:8888/pipeline-sample/generator/test.xml")));
+
+ Invocation invocation = new InvocationImpl();
+ invocation.setCocoonPipeline(cocoonPipeline);
+ this.invoke(invocation);
+
+ cocoonPipeline.addComponent(new XMLSerializer());
+ cocoonPipeline.setup(outputStream);
+ cocoonPipeline.execute();
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XplElementFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XplElementFactoryImpl.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XplElementFactoryImpl.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XplElementFactoryImpl.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,25 @@
+package org.apache.sling.xproc.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.sling.xproc.XplConstants;
+import org.apache.sling.xproc.api.XplElement;
+import org.apache.sling.xproc.api.XplElementFactory;
+
+public class XplElementFactoryImpl implements XplElementFactory {
+
+ public XplElement createXplElement(QName type) {
+ if (XplConstants.QNAME_PIPELINE.equals(type)) {
+ return new PipelineImpl();
+ } else if (XplConstants.QNAME_XSLT.equals(type)) {
+ return new XsltImpl();
+ } else if (XplConstants.QNAME_INPUT.equals(type)) {
+ return new InputImpl();
+ } else if (XplConstants.QNAME_DOCUMENT.equals(type)) {
+ return new DocumentImpl();
+ } else {
+ throw new IllegalArgumentException("An xpl element of type '" + type + "' could not be created.");
+ }
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XsltImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XsltImpl.java?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XsltImpl.java (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/java/org/apache/sling/xproc/impl/XsltImpl.java Tue Feb 17 18:08:35 2009
@@ -0,0 +1,18 @@
+package org.apache.sling.xproc.impl;
+
+import java.net.URL;
+
+import org.apache.cocoon.pipeline.component.sax.XSLTTransformer;
+import org.apache.sling.xproc.api.Invocation;
+import org.apache.sling.xproc.api.Xslt;
+
+public class XsltImpl extends AbstractXplElement implements Xslt {
+
+ @Override
+ public void invoke(Invocation invocation) throws Exception {
+ URL xsltUrl = new URL("http://localhost:8888/pipeline-sample/transform/test-content.xslt");
+ invocation.getCocoonPipeline().addComponent(new XSLTTransformer(xsltUrl));
+ super.invoke(invocation);
+ }
+
+}
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/DISCLAIMER
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/DISCLAIMER?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/DISCLAIMER (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/DISCLAIMER Tue Feb 17 18:08:35 2009
@@ -0,0 +1,7 @@
+Apache Sling is an effort undergoing incubation at The Apache Software Foundation (ASF),
+sponsored by the Apache Jackrabbit PMC. Incubation is required of all newly accepted
+projects until a further review indicates that the infrastructure, communications,
+and decision making process have stabilized in a manner consistent with other
+successful ASF projects. While incubation status is not necessarily a reflection of
+the completeness or stability of the code, it does indicate that the project has yet
+to be fully endorsed by the ASF.
\ No newline at end of file
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/LICENSE?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/LICENSE (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/LICENSE Tue Feb 17 18:08:35 2009
@@ -0,0 +1,250 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+APACHE SLING SUBCOMPONENTS:
+
+Apache Sling includes subcomponents with separate copyright notices and
+license terms. Your use of these subcomponents is subject to the terms
+and conditions of the following licenses.
+
+FreeMarker
+
+ Copyright (c) 2003 The Visigoth Software Society.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. The end-user documentation included with the redistribution,
+ if any, must include the following acknowledgement: "This
+ product includes software developed by the Visigoth Software
+ Society (http://www.visigoths.org/)." Alternately, this
+ acknowledgement may appear in the software itself, if and
+ wherever such third-party acknowledgements normally appear.
+
+ 3. Neither the name "FreeMarker", "Visigoth", nor any of the names
+ of the project contributors may be used to endorse or promote
+ products derived from this software without prior written
+ permission. For written permission, please contact
+ visigoths@visigoths.org.
+
+ 4. Products derived from this software may not be called "FreeMarker"
+ or "Visigoth" nor may "FreeMarker" or "Visigoth" appear in their
+ names without prior written permission of the Visigoth Software
+ Society.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE VISIGOTH SOFTWARE SOCIETY OR ITS CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/NOTICE?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/NOTICE (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/NOTICE Tue Feb 17 18:08:35 2009
@@ -0,0 +1,8 @@
+Apache Sling Pipeline Scripting Support
+Copyright 2008-2009 The Apache Software Foundation
+
+Apache Sling is based on source code originally developed
+by Day Software (http://www.day.com/).
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
Added: incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory?rev=745177&view=auto
==============================================================================
--- incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory (added)
+++ incubator/sling/whiteboard/jvazquez/org.apache.sling.scripting.xproc/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory Tue Feb 17 18:08:35 2009
@@ -0,0 +1 @@
+org.apache.sling.scripting.xproc.XProcScriptEngineFactory
\ No newline at end of file