- terminology changes to wcmModel (needs to be propogated to java classes as well). template is now form. template output method is now form transformer.

- added an aspect to differentiate form derived from form transformer derived (allowed removing some workarounds from XSLTOutputMethod)

- namespacing variables passed to the xsl processor with alfresco:



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4154 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth 2006-10-18 19:01:45 +00:00
parent 4505261195
commit dd5c46339e
2 changed files with 63 additions and 30 deletions

View File

@ -64,9 +64,9 @@
<aspects> <aspects>
<!-- An XForms capture template aspect. --> <!-- An XForms capture form aspect. -->
<aspect name="wcm:template"> <aspect name="wcm:form">
<title>XForms Template</title> <title>XForms Form</title>
<properties> <properties>
<property name="wcm:schemaroottagname"> <property name="wcm:schemaroottagname">
<title>Schema Root Tag Name</title> <title>Schema Root Tag Name</title>
@ -75,15 +75,15 @@
</property> </property>
</properties> </properties>
<associations> <associations>
<association name="wcm:templateoutputmethods"> <association name="wcm:formtransformers">
<title>Template Output Methods</title> <title>Form Output Methods</title>
<source> <source>
<role>wcm:capture</role> <role>wcm:capture</role>
<mandatory>false</mandatory> <mandatory>false</mandatory>
<many>false</many> <many>false</many>
</source> </source>
<target> <target>
<class>wcm:templateoutputmethod</class> <class>wcm:formtransformer</class>
<role>wcm:presentation</role> <role>wcm:presentation</role>
<mandatory>false</mandatory> <mandatory>false</mandatory>
<many>true</many> <many>true</many>
@ -93,37 +93,53 @@
</aspect> </aspect>
<!-- An XML to something else transformer. --> <!-- An XML to something else transformer. -->
<aspect name="wcm:templateoutputmethod"> <aspect name="wcm:formtransformer">
<title>Template Output Method</title> <title>Form Output Method</title>
<properties> <properties>
<property name="wcm:templateoutputmethodtype"> <property name="wcm:formtransformertype">
<title>Type</title> <title>Type</title>
<type>d:text</type> <type>d:text</type>
<mandatory>true</mandatory> <mandatory>true</mandatory>
</property> </property>
<property name="wcm:templateoutputmethodderivedfileextension"> <property name="wcm:formtransformerderivedfileextension">
<title>File extension for generated assets</title> <title>File extension for generated assets</title>
<type>d:text</type> <type>d:text</type>
<mandatory>true</mandatory> <mandatory>true</mandatory>
</property> </property>
<property name="wcm:templatesource"> <property name="wcm:formsource">
<title>Template Source</title> <title>Form Source</title>
<type>d:noderef</type> <type>d:noderef</type>
<mandatory>true</mandatory> <mandatory>true</mandatory>
</property> </property>
</properties> </properties>
</aspect> </aspect>
<aspect name="wcm:templatederived"> <aspect name="wcm:formderived">
<title>XML file generated by a template</title> <title>XML file generated by a form</title>
<properties> <properties>
<property name="wcm:templatederivedfrom"> <property name="wcm:formderivedfrom">
<title>Template that generated this asset</title> <title>Form that generated this asset</title>
<type>d:noderef</type> <type>d:noderef</type>
<mandatory>true</mandatory> <mandatory>true</mandatory>
</property> </property>
<property name="wcm:templatederivedfromname"> <property name="wcm:formderivedfromname">
<title>Template that generated this asset</title> <title>Form that generated this asset</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
<aspect name="wcm:formtransformerderived">
<title>XML file generated by a form</title>
<properties>
<property name="wcm:formtransformerderivedfrom">
<title>Form Output Method that generated this asset</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:primaryformderived">
<title>Primary XML Asset used to generate this asset</title>
<type>d:noderef</type> <type>d:noderef</type>
<mandatory>true</mandatory> <mandatory>true</mandatory>
</property> </property>

View File

@ -1,5 +1,18 @@
/** /*
* * Copyright (C) 2005 Alfresco, Inc.
*
* Licensed under the Mozilla Public License version 1.1
* with a permitted attribution clause. You may obtain a
* copy of the License at
*
* http://www.alfresco.org/legal/license.txt
*
* 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.
*/ */
package org.alfresco.model; package org.alfresco.model;
@ -24,18 +37,22 @@ public interface WCMModel
public static final QName TYPE_AVM_LAYERED_FOLDER = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "avmlayeredfolder"); public static final QName TYPE_AVM_LAYERED_FOLDER = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "avmlayeredfolder");
public static final QName PROP_AVM_DIR_INDIRECTION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "avmdirindirection"); public static final QName PROP_AVM_DIR_INDIRECTION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "avmdirindirection");
// The XForms data capture template aspect. // The XForms data capture form aspect.
public static final QName ASPECT_TEMPLATE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "template"); public static final QName ASPECT_FORM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "form");
public static final QName PROP_SCHEMA_ROOT_TAG_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "schemaroottagname"); public static final QName PROP_SCHEMA_ROOT_TAG_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "schemaroottagname");
public static final QName ASSOC_TEMPLATE_OUTPUT_METHODS = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templateoutputmethods"); public static final QName ASSOC_FORM_TRANSFORMERS = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formtransformers");
// An XML to something else tranformer aspect. // An XML to something else tranformer aspect.
public static final QName ASPECT_TEMPLATE_OUTPUT_METHOD = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templateoutputmethod"); public static final QName ASPECT_FORM_TRANSFORMER = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formtransformer");
public static final QName PROP_TEMPLATE_OUTPUT_METHOD_TYPE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templateoutputmethodtype"); public static final QName PROP_FORM_TRANSFORMER_TYPE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formtransformertype");
public static final QName PROP_TEMPLATE_OUTPUT_METHOD_DERIVED_FILE_EXTENSION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templateoutputmethodderivedfileextension"); public static final QName PROP_FORM_TRANSFORMER_DERIVED_FILE_EXTENSION = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formtransformerderivedfileextension");
public static final QName PROP_TEMPLATE_SOURCE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templatesource"); public static final QName PROP_FORM_SOURCE = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formsource");
public static final QName ASPECT_TEMPLATE_DERIVED = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templatederived"); public static final QName ASPECT_FORM_DERIVED = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formderived");
public static final QName PROP_TEMPLATE_DERIVED_FROM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templatederivedfrom"); public static final QName PROP_FORM_DERIVED_FROM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formderivedfrom");
public static final QName PROP_TEMPLATE_DERIVED_FROM_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "templatederivedfromname"); public static final QName PROP_FORM_DERIVED_FROM_NAME = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formderivedfromname");
public static final QName ASPECT_FORM_TRANSFORMER_DERIVED = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formtransformerderived");
public static final QName PROP_FORM_TRANSFORMER_DERIVED_FROM = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "formtransformerderivedfrom");
public static final QName PROP_PRIMARY_FORM_DERIVED = QName.createQName(NamespaceService.WCM_MODEL_1_0_URI, "primaryformderived");
} }