From: <pka...@us...> - 2009-05-04 13:17:25
|
Revision: 205 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=205&view=rev Author: pkasprzak Date: 2009-05-04 13:17:19 +0000 (Mon, 04 May 2009) Log Message: ----------- * Support for categories (mostly copy + paste of courses; consolidation into one xslt follows in the next few days) * Cleanup Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl Removed Paths: ------------- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/build.xml 2009-05-04 13:17:19 UTC (rev 205) @@ -53,18 +53,14 @@ properties which you can use check the target you are overriding in nbproject/build-impl.xml file. --> - <target name="-check-netbeans-home"> - <condition property="no.netbeans.home"> - <not> - <isset property="netbeans.home"/> - </not> - </condition> + <target name="-init-esb-ide" if="netbeans.home"> + <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="-init-caps" if="no.netbeans.home"> + <target name="-init-esb-cmdline" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> - <property name="netbeans.home" value="${caps.netbeans.home}/platform9"/> - <property name="netbeans.user" value="${caps.netbeans.user}"/> + <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> + <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/> + <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/build-impl.xml 2009-05-04 13:17:19 UTC (rev 205) @@ -48,42 +48,42 @@ </target> <target name="-init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> - <pathelement location="${netbeans.home}/../ide10/modules/ext/resolver-1.2.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-apache-xml-resolver.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> - <pathelement location="${netbeans.home}/../platform9/core/core.jar"/> - <pathelement location="${netbeans.home}/../platform9/core/org-openide-filesystems.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/boot.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/org-openide-modules.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/org-openide-util.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-dialogs.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-loaders.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-nodes.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-text.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-queries.jar"/> - <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/core/core.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/core/org-openide-filesystems.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/boot.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/org-openide-modules.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/org-openide-util.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-dialogs.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-loaders.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-nodes.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-text.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-netbeans-modules-queries.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> </path> <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask"> <classpath refid="ant.task.classpath"/> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/nbproject/genfiles.properties 2009-05-04 13:17:19 UTC (rev 205) @@ -1,8 +1,8 @@ build.xml.data.CRC32=2842e5db -build.xml.script.CRC32=3d3dbc12 -build.xml.stylesheet.CRC32=1947459d +build.xml.script.CRC32=60b50638 +build.xml.stylesheet.CRC32=f35fd70d # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=2842e5db -nbproject/build-impl.xml.script.CRC32=272d045c -nbproject/build-impl.xml.stylesheet.CRC32=749ec361 +nbproject/build-impl.xml.script.CRC32=e5dd60c9 +nbproject/build-impl.xml.stylesheet.CRC32=5068533b Added: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CategoryToCDDMCategoryMessage.xsl 2009-05-04 13:17:19 UTC (rev 205) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : toCDDM.xsl.xsl + Created on : April 16, 2009, 10:18 PM + Author : pete + Description: Transform "old" CSE:Category -> CDDM:CategoryMessage + +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns="http://cse.campussource.de/schema/DataTypes" + version="1.0"> + + <xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no"/> + + <xsl:template match="/dt:category"> +<!-- + <xsl:for-each select="/dt:synchronizationMessage/dt:courses/*"> +--> + <xsl:comment>##### Creating category (<xsl:value-of select="dt:name"/>) #####</xsl:comment> + <xsl:element name="categoryMessage"> + <xsl:element name="category"> + <xsl:element name="busId">1</xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:for-each select="*[position() < 6]"> + <xsl:comment>----- Attribute: <xsl:value-of select="local-name(.)"/> -----</xsl:comment> + <xsl:element name="attribute"> + <xsl:element name="name"> + <xsl:value-of select="local-name(.)"/> + </xsl:element> + <xsl:element name="value"> + <xsl:value-of select="."/> + </xsl:element> + <xsl:element name="transient"> + <xsl:text>false</xsl:text> + </xsl:element> + </xsl:element> + </xsl:for-each> + </xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:element name="inputEvent">CREATE_UPDATE</xsl:element> + </xsl:element> +<!-- + </xsl:for-each> +--> + </xsl:template> + +</xsl:stylesheet> Copied: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl (from rev 200, trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl) =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/CourseToCDDMCourseMessage.xsl 2009-05-04 13:17:19 UTC (rev 205) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : CourseToCDDMCourseMessage.xsl + Created on : April 16, 2009, 10:18 PM + Author : pete + Description: Transform "old" CSE:Course -> CDDM:CourseMessage + +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns="http://cse.campussource.de/schema/DataTypes" + version="1.0"> + + <xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no"/> + + <xsl:template match="/dt:course"> +<!-- + <xsl:for-each select="/dt:synchronizationMessage/dt:courses/*"> +--> + <xsl:comment>##### Creating course (<xsl:value-of select="dt:title"/>) #####</xsl:comment> + <xsl:element name="courseMessage"> + <xsl:element name="course"> + <xsl:element name="busId">1</xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:for-each select="*[position() < 6]"> + <xsl:comment>----- Attribute: <xsl:value-of select="local-name(.)"/> -----</xsl:comment> + <xsl:element name="attribute"> + <xsl:element name="name"> + <xsl:value-of select="local-name(.)"/> + </xsl:element> + <xsl:element name="value"> + <xsl:value-of select="."/> + </xsl:element> + <xsl:element name="transient"> + <xsl:text>false</xsl:text> + </xsl:element> + </xsl:element> + </xsl:for-each> + </xsl:element> + <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> + <xsl:element name="inputEvent">CREATE_UPDATE</xsl:element> + </xsl:element> +<!-- + </xsl:for-each> +--> + </xsl:template> + +</xsl:stylesheet> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/InboundClientAdapter.bpel 2009-05-04 13:17:19 UTC (rev 205) @@ -15,130 +15,128 @@ xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor"> - <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/schema/LSFDataTypes" location="LSFDataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" location="LSFClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/LSFDataTypes" location="LSFDataTypes.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" location="XSLTTransform.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" location="ObjectProcessor/ObjectProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <partnerLinks> - <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> - <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> - <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> - </partnerLinks> - <variables> - <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> - <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> - <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> - <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="lsfdt:synchronizationMessage"/> - </variables> - <sequence> - <receive name="receive" createInstance="yes" partnerLink="LSF" operation="receive" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" portType="tns:LSFClientAdapterPortType" variable="ReceiveIn"/> - <assign name="prepareXSLTTransform"> - <copy> - <from variable="ReceiveIn" part="InputData"/> - <to variable="XSLTTransformOperationIn" part="inputXML"/> - </copy> - </assign> - <invoke name="doXSLTTransform" partnerLink="XSLTTransform" operation="XSLTTransformOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" portType="tns:XSLTTransformPortType" inputVariable="XSLTTransformOperationIn" outputVariable="XSLTTransformOperationOut"/> - <assign name="convertResult"> - <sxt:trace> + <partnerLinks> + <partnerLink name="XSLTTransform" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" partnerLinkType="tns:XSLTTransform" partnerRole="XSLTTransformPortTypeRole"/> + <partnerLink name="ObjectProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" partnerLinkType="tns:ObjectProcessor" partnerRole="ObjectProcessorPortTypeRole"/> + <partnerLink name="LSF" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" partnerLinkType="tns:LSFClientAdapter" myRole="LSFClientAdapterPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="XSLTTransformOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationResponse"/> + <variable name="XSLTTransformOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" messageType="tns:XSLTTransformOperationRequest"/> + <variable name="ReceiveIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" messageType="tns:receiveRequest"/> + <variable name="synchronizationMessage" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" element="lsfdt:synchronizationMessage"/> + </variables> + <sequence> + <receive name="receive" createInstance="yes" partnerLink="LSF" operation="receive" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/LSFClientAdapter" portType="tns:LSFClientAdapterPortType" variable="ReceiveIn"/> + <assign name="prepareXSLTTransform"> + <copy> + <from variable="ReceiveIn" part="InputData"/> + <to variable="XSLTTransformOperationIn" part="inputXML"/> + </copy> + </assign> + <invoke name="doXSLTTransform" partnerLink="XSLTTransform" operation="XSLTTransformOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/LSFClientAdapter/XSLTTransform" portType="tns:XSLTTransformPortType" inputVariable="XSLTTransformOperationIn" outputVariable="XSLTTransformOperationOut"/> + <assign name="convertResult"> + <sxt:trace> <!-- <sxt:log level="info" location="onStart"> <ns0:from>concat('XSLT-Transofmation-Output: ', $XSLTTransformOperationOut.result)</ns0:from> </sxt:log> --> - <sxt:log level="info" location="onComplete"> - <ns0:from>concat('Variable.SemesterName: ', $synchronizationMessage/semesterName)</ns0:from> - </sxt:log> - </sxt:trace> - <copy> - <from>sxxf:doUnMarshal($XSLTTransformOperationOut.result)</from> - <to variable="synchronizationMessage"/> - </copy> - </assign> - <forEach name="CourseSplitter" parallel="no" counterName="CourseCounter"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <ns0:from>'*** ForEach before start'</ns0:from> - </sxt:log> - </sxt:trace> - <startCounterValue>1</startCounterValue> - <finalCounterValue>count($synchronizationMessage/courses/course[.])</finalCounterValue> - <scope name="ObjectProcessor"> - <variables> - <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessCourseOperationRequest"/> - </variables> - <sequence name="CourseSplitSequence"> - <!-- Init courseMessage part of ProcessCourseOperationIn --> - <assign name="initCourseMessagePartStructure"> - <copy> - <from> - <literal> - <courseMessage xmlns="http://cse.campussource.de/schema/DataTypes"> - <course> - <busId/> - <eventTime>2000-01-20T12:00:00</eventTime> - <attribute> - <name/> - <value/> - <transient/> - </attribute> - <categories/> - <workgroups/> - </course> - <eventTime>2000-01-20T12:00:00</eventTime> - <inputEvent>CREATE_UPDATE</inputEvent> - </courseMessage> - </literal> - </from> - <to variable="ProcessCourseOperationIn" part="courseMessage"/> - </copy> - <copy> - <from>1</from> - <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> - </copy> - <copy> - <from>'lsf-id-1'</from> - <to variable="ProcessCourseOperationIn" part="clientObjectId"/> - </copy> - </assign> - <!-- Copy relevant attributes --> - <assign name="transformToCDDM"> - <copy> - <from>ns0:doXslTransform('urn:stylesheets:toCDDM.xsl', $synchronizationMessage/courses/course[$CourseCounter])</from> - <to>$ProcessCourseOperationIn.courseMessage</to> - </copy> - </assign> -<!-- - <assign name="prepareProcessCourse"> - <copy> - <from variable="synchronizationMessage"/> - <to variable="ProcessCourseOperationIn" part="courseMessage"/> - </copy> - </assign> ---> -<!-- - <assign name="setObject"> - <sxt:trace> - <sxt:log level="fine" location="onStart"> - <ns0:from variable="CourseCounter"/> - </sxt:log> - </sxt:trace> + <sxt:log level="info" location="onComplete"> + <ns0:from>concat('Variable.SemesterName: ', $synchronizationMessage/semesterName)</ns0:from> + </sxt:log> + </sxt:trace> + <copy> + <from>sxxf:doUnMarshal($XSLTTransformOperationOut.result)</from> + <to variable="synchronizationMessage"/> + </copy> + </assign> - <copy> - <from>$synchronizationMessage/courses/course[$ObjectCounter]</from> - <to>$ProcessObjectOperationIn.objectMessage/courses/course[1]</to> - </copy> - <copy> - <from>1</from> - <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> - </copy> - </assign> ---> - <invoke name="processObject" partnerLink="ObjectProcessor" operation="ProcessCourseOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCourseOperationIn"/> - </sequence> - </scope> - </forEach> - </sequence> + <!-- Convert CSE:Courses -> CDDM:CourseMessages --> + <forEach name="CourseSplitter" parallel="no" counterName="CourseCounter"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>'*** CourseSplitter start'</ns0:from> + </sxt:log> + </sxt:trace> + <startCounterValue>1</startCounterValue> + <finalCounterValue>count($synchronizationMessage/courses/course[.])</finalCounterValue> + <scope name="invokeObjectProcessorForCourseMessages"> + <variables> + <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ObjectProcessor" messageType="tns:ProcessCourseOperationRequest"/> + </variables> + <sequence name="CourseSplitSequence"> + <!-- Init courseMessage part of ProcessCourseOperationIn --> + <assign name="initCourseMessagePartStructure"> + <copy> + <from>1</from> + <to variable="ProcessCourseOperationIn" part="clientInstanceId"/> + </copy> + <copy> + <from>'lsf-id-1'</from> + <to variable="ProcessCourseOperationIn" part="clientObjectId"/> + </copy> + </assign> + <!-- Copy relevant attributes --> + <assign name="transformCourseToCDDMCourseMessage"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:CourseToCDDMCourseMessage.xsl', $synchronizationMessage/courses/course[$CourseCounter])</from> + <to>$ProcessCourseOperationIn.courseMessage</to> + </copy> + </assign> + <invoke name="processCourseMessage" partnerLink="ObjectProcessor" operation="ProcessCourseOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCourseOperationIn"/> + </sequence> + </scope> + </forEach> + + <!-- Convert CSE:category -> CDDM:categoryMessage --> + <forEach name="CategorySplitter" parallel="no" counterName="CategoryCounter"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>'*** CategorySplitter start'</ns0:from> + </sxt:log> + </sxt:trace> + <startCounterValue>1</startCounterValue> + <finalCounterValue>count($synchronizationMessage/categories/category[.])</finalCounterValue> + <scope name="invokeObjectProcessorForCategoryMessages"> + <variables> + <variable name="ProcessCategoryOperationIn" messageType="ns1:ProcessCategoryOperationRequest"/> + </variables> + <sequence name="CategorySplitSequence"> + <!-- Init courseMessage part of ProcessCourseOperationIn --> + <assign name="initCourseMessagePartStructure"> + <copy> + <from>1</from> + <to variable="ProcessCategoryOperationIn" part="clientInstanceId"/> + </copy> + <copy> + <from>'lsf-id-1'</from> + <to variable="ProcessCategoryOperationIn" part="clientObjectId"/> + </copy> + </assign> + <!-- Copy relevant attributes --> + <assign name="transformCategoryToCDDMCategoryMessage"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:CategoryToCDDMCategoryMessage.xsl', $synchronizationMessage/categories/category[$CategoryCounter])</from> + <to>$ProcessCategoryOperationIn.categoryMessage</to> + </copy> + </assign> + <invoke name="processCategoryMessage" partnerLink="ObjectProcessor" operation="ProcessCategoryOperation" portType="ns1:ObjectProcessorPortType" inputVariable="ProcessCategoryOperationIn"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>concat('*** Sending CategoryMessage: ', $ProcessCategoryOperationIn.categoryMessage)</ns0:from> + </sxt:log> + </sxt:trace> + </invoke> + </sequence> + </scope> + </forEach> + + </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/sync-test_output2.xml 2009-05-04 13:17:19 UTC (rev 205) @@ -1,120 +1,120 @@ <?xml version="1.0" encoding="UTF-8"?> <!--##### Creating course (Tutorium-Test) #####--> <course xmlns="http://cse.campussource.de/schema/DataTypes"> -<busId/> -<eventTime/> + <busId/> + <eventTime/> <!--- - - - - Attribute: lsfId - - - - - --> -<attribute> -<name>lsfId</name> -<value>32350</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lsfId</name> + <value>32350</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: logicalNumber - - - - - --> -<attribute> -<name>logicalNumber</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>logicalNumber</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: type - - - - - --> -<attribute> -<name>type</name> -<value>Tutorium</value> -<transient>false</transient> -</attribute> + <attribute> + <name>type</name> + <value>Tutorium</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: title - - - - - --> -<attribute> -<name>title</name> -<value>Tutorium-Test</value> -<transient>false</transient> -</attribute> + <attribute> + <name>title</name> + <value>Tutorium-Test</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: shortDescription - - - - - --> -<attribute> -<name>shortDescription</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>shortDescription</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: abbreviation - - - - - --> -<attribute> -<name>abbreviation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>abbreviation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: necessaryAssignment - - - - - --> -<attribute> -<name>necessaryAssignment</name> -<value>J</value> -<transient>false</transient> -</attribute> + <attribute> + <name>necessaryAssignment</name> + <value>J</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: note - - - - - --> -<attribute> -<name>note</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>note</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: comment - - - - - --> -<attribute> -<name>comment</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>comment</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAsInt - - - - - --> -<attribute> -<name>semesterAsInt</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAsInt</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> -<attribute> -<name>semesterPeriodsPerWeek</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterPeriodsPerWeek</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: expectedRegistrations - - - - - --> -<attribute> -<name>expectedRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>expectedRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: maximumRegistrations - - - - - --> -<attribute> -<name>maximumRegistrations</name> -<value>20</value> -<transient>false</transient> -</attribute> + <attribute> + <name>maximumRegistrations</name> + <value>20</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: activityConfirmation - - - - - --> -<attribute> -<name>activityConfirmation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>activityConfirmation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: lectureTypeId - - - - - --> -<attribute> -<name>lectureTypeId</name> -<value>40</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lectureTypeId</name> + <value>40</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: active - - - - - --> -<attribute> -<name>active</name> -<value>A</value> -<transient>false</transient> -</attribute> + <attribute> + <name>active</name> + <value>A</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAbbr - - - - - --> -<attribute> -<name>semesterAbbr</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAbbr</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterFull - - - - - --> -<attribute> -<name>semesterFull</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterFull</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: dates - - - - - --> -<attribute> -<name>dates</name> -<value> + <attribute> + <name>dates</name> + <value> @@ -135,162 +135,164 @@ Mittwoch wöchentlich - </value> -<transient>false</transient> -</attribute> + </value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: clientId - - - - - --> -<attribute> -<name>clientId</name> -<value>lecture:32350</value> -<transient>false</transient> -</attribute> + <attribute> + <name>clientId</name> + <value>lecture:32350</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterId - - - - - --> -<attribute> -<name>semesterId</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterId</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: startDate - - - - - --> -<attribute> -<name>startDate</name> -<value>14.04.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>startDate</name> + <value>14.04.2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: endDate - - - - - --> -<attribute> -<name>endDate</name> -<value>18.07.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>endDate</name> + <value>18.07.2008</value> + <transient>false</transient> + </attribute> </course> + + <!--##### Creating course (Phonetische Aspekte des Sorbischen) #####--> <course xmlns="http://cse.campussource.de/schema/DataTypes"> -<busId/> -<eventTime/> + <busId/> + <eventTime/> <!--- - - - - Attribute: lsfId - - - - - --> -<attribute> -<name>lsfId</name> -<value>28232</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lsfId</name> + <value>28232</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: logicalNumber - - - - - --> -<attribute> -<name>logicalNumber</name> -<value>28232</value> -<transient>false</transient> -</attribute> + <attribute> + <name>logicalNumber</name> + <value>28232</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: type - - - - - --> -<attribute> -<name>type</name> -<value>Hauptseminar</value> -<transient>false</transient> -</attribute> + <attribute> + <name>type</name> + <value>Hauptseminar</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: title - - - - - --> -<attribute> -<name>title</name> -<value>Phonetische Aspekte des Sorbischen</value> -<transient>false</transient> -</attribute> + <attribute> + <name>title</name> + <value>Phonetische Aspekte des Sorbischen</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: shortDescription - - - - - --> -<attribute> -<name>shortDescription</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>shortDescription</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: abbreviation - - - - - --> -<attribute> -<name>abbreviation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>abbreviation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: necessaryAssignment - - - - - --> -<attribute> -<name>necessaryAssignment</name> -<value>N</value> -<transient>false</transient> -</attribute> + <attribute> + <name>necessaryAssignment</name> + <value>N</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: note - - - - - --> -<attribute> -<name>note</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>note</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: comment - - - - - --> -<attribute> -<name>comment</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>comment</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAsInt - - - - - --> -<attribute> -<name>semesterAsInt</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAsInt</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> -<attribute> -<name>semesterPeriodsPerWeek</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterPeriodsPerWeek</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: expectedRegistrations - - - - - --> -<attribute> -<name>expectedRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>expectedRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: maximumRegistrations - - - - - --> -<attribute> -<name>maximumRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>maximumRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: activityConfirmation - - - - - --> -<attribute> -<name>activityConfirmation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>activityConfirmation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: lectureTypeId - - - - - --> -<attribute> -<name>lectureTypeId</name> -<value>98</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lectureTypeId</name> + <value>98</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: active - - - - - --> -<attribute> -<name>active</name> -<value>A</value> -<transient>false</transient> -</attribute> + <attribute> + <name>active</name> + <value>A</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageISO - - - - - --> -<attribute> -<name>languageISO</name> -<value>de</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageISO</name> + <value>de</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageFull - - - - - --> -<attribute> -<name>languageFull</name> -<value>deutsch</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageFull</name> + <value>deutsch</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAbbr - - - - - --> -<attribute> -<name>semesterAbbr</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAbbr</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterFull - - - - - --> -<attribute> -<name>semesterFull</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterFull</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: dates - - - - - --> -<attribute> -<name>dates</name> -<value> + <attribute> + <name>dates</name> + <value> @@ -301,162 +303,164 @@ Freitag wöchentlich - </value> -<transient>false</transient> -</attribute> + </value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: clientId - - - - - --> -<attribute> -<name>clientId</name> -<value>lecture:28232</value> -<transient>false</transient> -</attribute> + <attribute> + <name>clientId</name> + <value>lecture:28232</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterId - - - - - --> -<attribute> -<name>semesterId</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterId</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: startDate - - - - - --> -<attribute> -<name>startDate</name> -<value>14.04.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>startDate</name> + <value>14.04.2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: endDate - - - - - --> -<attribute> -<name>endDate</name> -<value>18.07.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>endDate</name> + <value>18.07.2008</value> + <transient>false</transient> + </attribute> </course> + + <!--##### Creating course (Numerical Algorithms for Visual Computing I) #####--> <course xmlns="http://cse.campussource.de/schema/DataTypes"> -<busId/> -<eventTime/> + <busId/> + <eventTime/> <!--- - - - - Attribute: lsfId - - - - - --> -<attribute> -<name>lsfId</name> -<value>28481</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lsfId</name> + <value>28481</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: logicalNumber - - - - - --> -<attribute> -<name>logicalNumber</name> -<value>28481</value> -<transient>false</transient> -</attribute> + <attribute> + <name>logicalNumber</name> + <value>28481</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: type - - - - - --> -<attribute> -<name>type</name> -<value>Weiterführende Vorlesung</value> -<transient>false</transient> -</attribute> + <attribute> + <name>type</name> + <value>Weiterführende Vorlesung</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: title - - - - - --> -<attribute> -<name>title</name> -<value>Numerical Algorithms for Visual Computing I</value> -<transient>false</transient> -</attribute> + <attribute> + <name>title</name> + <value>Numerical Algorithms for Visual Computing I</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: shortDescription - - - - - --> -<attribute> -<name>shortDescription</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>shortDescription</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: abbreviation - - - - - --> -<attribute> -<name>abbreviation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>abbreviation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: necessaryAssignment - - - - - --> -<attribute> -<name>necessaryAssignment</name> -<value>N</value> -<transient>false</transient> -</attribute> + <attribute> + <name>necessaryAssignment</name> + <value>N</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: note - - - - - --> -<attribute> -<name>note</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>note</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: comment - - - - - --> -<attribute> -<name>comment</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>comment</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAsInt - - - - - --> -<attribute> -<name>semesterAsInt</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAsInt</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterPeriodsPerWeek - - - - - --> -<attribute> -<name>semesterPeriodsPerWeek</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterPeriodsPerWeek</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: expectedRegistrations - - - - - --> -<attribute> -<name>expectedRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>expectedRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: maximumRegistrations - - - - - --> -<attribute> -<name>maximumRegistrations</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>maximumRegistrations</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: activityConfirmation - - - - - --> -<attribute> -<name>activityConfirmation</name> -<value/> -<transient>false</transient> -</attribute> + <attribute> + <name>activityConfirmation</name> + <value/> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: lectureTypeId - - - - - --> -<attribute> -<name>lectureTypeId</name> -<value>147</value> -<transient>false</transient> -</attribute> + <attribute> + <name>lectureTypeId</name> + <value>147</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: active - - - - - --> -<attribute> -<name>active</name> -<value>A</value> -<transient>false</transient> -</attribute> + <attribute> + <name>active</name> + <value>A</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageISO - - - - - --> -<attribute> -<name>languageISO</name> -<value>en</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageISO</name> + <value>en</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: languageFull - - - - - --> -<attribute> -<name>languageFull</name> -<value>englisch</value> -<transient>false</transient> -</attribute> + <attribute> + <name>languageFull</name> + <value>englisch</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterAbbr - - - - - --> -<attribute> -<name>semesterAbbr</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterAbbr</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterFull - - - - - --> -<attribute> -<name>semesterFull</name> -<value>SS 2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterFull</name> + <value>SS 2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: dates - - - - - --> -<attribute> -<name>dates</name> -<value> + <attribute> + <name>dates</name> + <value> @@ -467,31 +471,31 @@ Montag wöchentlich - </value> -<transient>false</transient> -</attribute> + </value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: clientId - - - - - --> -<attribute> -<name>clientId</name> -<value>lecture:28481</value> -<transient>false</transient> -</attribute> + <attribute> + <name>clientId</name> + <value>lecture:28481</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: semesterId - - - - - --> -<attribute> -<name>semesterId</name> -<value>20081</value> -<transient>false</transient> -</attribute> + <attribute> + <name>semesterId</name> + <value>20081</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: startDate - - - - - --> -<attribute> -<name>startDate</name> -<value>14.04.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>startDate</name> + <value>14.04.2008</value> + <transient>false</transient> + </attribute> <!--- - - - - Attribute: endDate - - - - - --> -<attribute> -<name>endDate</name> -<value>18.07.2008</value> -<transient>false</transient> -</attribute> + <attribute> + <name>endDate</name> + <value>18.07.2008</value> + <transient>false</transient> + </attribute> </course> Deleted: trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl 2009-05-04 13:13:47 UTC (rev 204) +++ trunk/sandbox/lsf-adapter-demo/LSFClientAdapter/src/toCDDM.xsl 2009-05-04 13:17:19 UTC (rev 205) @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - Document : toCDDM.xsl.xsl - Created on : April 16, 2009, 10:18 PM - Author : pete - Description: - Purpose of transformation follows. ---> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns="http://cse.campussource.de/schema/DataTypes" - version="1.0"> - - <xsl:output method="xml" - media-type="text/xml" - indent="yes" - encoding="UTF-8" - omit-xml-declaration="no"/> - - <xsl:template match="/dt:course"> -<!-- - <xsl:for-each select="/dt:synchronizationMessage/dt:courses/*"> ---> - <xsl:comment>##### Creating course (<xsl:value-of select="dt:title"/>) #####</xsl:comment> - <xsl:element name="courseMessage"> - <xsl:element name="course"> - <xsl:element name="busId">1</xsl:element> - <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> - <xsl:for-each select="*[position() < 6]"> - <xsl:comment>----- Attribute: <xsl:value-of select="local-name(.)"/> -----</xsl:comment> - <xsl:element name="attribute"> - <xsl:element name="name"> - <xsl:value-of select="local-name(.)"/> - </xsl:element> - <xsl:element name="value"> - <xsl:value-of select="."/> - </xsl:element> - <xsl:element name="transient"> - <xsl:text>false</xsl:text> - </xsl:element> - </xsl:element> - </xsl:for-each> - </xsl:element> - <xsl:element name="eventTime">2000-01-20T12:00:00</xsl:element> - <xsl:element name="inputEvent">CREATE_UPDATE</xsl:element> - </xsl:element> -<!-- - </xsl:for-each> ---> - </xsl:template> - -</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |