Selaa lähdekoodia

testowy parse

a.binder 5 vuotta sitten
vanhempi
commit
e575012715

+ 4 - 0
SE/schema/WPS_Functions/automation_driven/build.automation_driven.PRODUCT.xml

@@ -6,6 +6,7 @@
          name="automation_driven.PRODUCT">
    <description>p5suis:say Created function automation_driven with prefix automation_driven by p5ant module</description>
    <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   
    <condition property="automation_driven.PRODUCT.ifdef.parent"
               taskname="automation_driven.parent.PRODUCT.ifdef">
       <isset property="WPS_Functions.PRODUCT.name"/>
@@ -40,6 +41,9 @@
              location="${automation_driven.repository}/automation_driven.from_url"/>
    <property name="automation_driven.module"
              location="${automation_driven.repository}/automation_driven.module"/>
+   
+   <include file="build.automation_driven.PRODUCT.submodule.xml"/>
+   
    <target name="PRODUCT"
            depends="basedir,p5xsls.xml"
            description="to create basedir, includes and install"/>

+ 41 - 0
SE/schema/WPS_Functions/automation_driven/build_automation_driven.xml

@@ -38,4 +38,45 @@
          <xmlcatalog refid="dita-ot.dtd.catalog"/>
       </xslt>
    </target>
+   
+   
+   
+   <target name="automation_driven.submodule.struct.read.xml"
+      description="to initially generate xsd from automation_driven.submodule.struct.h file">
+      <xslt basedir="${automation_driven.submodule.basedir}"
+         destdir="${automation_driven.submodule.temp}"
+         force="true"
+         in="${empty.xml}"
+         out="${automation_driven.submodule.struct.read.xml}"
+         style="${automation_driven.submodule.struct.read.xsl}"> <!-- ${automation_driven.submodule.struct.h} -->
+         <factory name="net.sf.saxon.TransformerFactoryImpl">
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialTemplate"
+               value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.struct.xsd}read.xml"/>
+            <!--<attribute name="http://saxon.sf.net/feature/initialMode"
+               value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.struct.xsd}read.xml"/>-->
+            <attribute name="http://saxon.sf.net/feature/dtd-validation-recoverable"
+               value="true"/>
+         </factory>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}basedir"
+            expression="${automation_driven.basedir}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}repository"
+            expression="${automation_driven.repository}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}temp"
+            expression="${automation_driven.temp}"/>
+         
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.xsd}basedir"
+            expression="${automation_driven.submodule.basedir}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.xsd}repository"
+            expression="${automation_driven.submodule.repository}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.xsd}temp"
+            expression="${automation_driven.submodule.temp}"/>
+         
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.struct.xsd}h"
+            expression="${automation_driven.submodule.struct.h}"/>
+         
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <xmlcatalog refid="dita-ot.dtd.catalog"/>
+      </xslt>
+   </target>
 </project>

+ 218 - 0
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.struct.read.xml

@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<automation_driven.submodule.struct:read.xml xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+                                             xmlns:xs="http://www.w3.org/2001/XMLSchema"
+                                             xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+                                             xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+                                             xmlns:automation_driven.submodule.struct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.struct.xsd">
+   <xs:complexType name="P5__ARRAY_T" type="int"/>
+   <xs:complexType name="P5__ARRAY__INDEX_T" type="P5__ARRAY_T"/>
+   <xs:complexType name="P5__LIMITS_T" type="int"/>
+   <xs:complexType name="P5__LATENCY_T" type="int"/>
+   <xs:complexType name="P5__LATENCY_TASK_EXEC_TIME_T" type="P5__LATENCY_T"/>
+   <xs:complexType name="P5__LATENCY_TIMESTAMP_T" type="unsigned long"/>
+   <xs:complexType name="P5__LATENCY_TASK_EXEC_TICKS_T" type="P5__LATENCY_T"/>
+   <xs:complexType name="P5__LATENCY_TASK_EXEC_TICK_T" type="P5__LATENCY_T"/>
+   <xs:complexType name="P5__LATENCY_TASK_EXEC_DIFFS_T" type="P5__LATENCY_T"/>
+   <xs:complexType name="P5__TASK__CONFIG__NAME__INDEX_T" type="int"/>
+   <xs:complexType name="P5__TASK__TYPE__SEQUENCE__ARRAY__ASSOC__INDEX_T" type="int"/>
+   <xs:complexType name="P5__TASK_T" type="int"/>
+   <xs:complexType name="P5__TASK__TYPE_T" type="P5__TASK_T"/>
+   <xs:complexType name="P5__TASK__TYPE__CLASS_T" type="P5__TASK__TYPE_T"/>
+   <xs:complexType name="P5__TASK__TYPE__ASSERT_T" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:complexType name="P5__TASK__CONFIG_T" type="P5__TASK_T"/>
+   <xs:complexType name="P5__TASK__CONFIG__NAME_T[3]" type="char"/>
+   <xs:complexType name="P5__TASK__TYPE__ASSOC_T" type="P5__ARRAY__INDEX_T"/>
+   <xs:complexType name="P5__TASK__CONFIG__NAME__INDEX__ARRAY_T"
+                   type="P5__TASK__CONFIG__NAME__INDEX__ARRAY_S"/>
+   <xs:complexType name="P5__TASK__TYPE__SEQUENCE__ARRAY_T"
+                   type="P5__TASK__TYPE__SEQUENCE__ARRAY_S"/>
+   <xs:complexType name="P5__TASK__CONFIG__NAME__ASSERT__ARRAY_T"
+                   type="P5__TASK__TYPE__SEQUENCE__ARRAY_T"/>
+   <xs:complexType name="P5__TASK__CONFIG__NAME__ASSERT__ARRAY_A__CURRENT_T"
+                   type="P5__ARRAY__INDEX_T"/>
+   <xs:complexType name="P5__TASK__CONFIG__NAME__ASSERT__ARRAY_A__CURRENT__EXEC_T"
+                   type="P5__TASK__CONFIG__NAME__ASSERT__ARRAY_A__CURRENT_T"/>
+   <xs:complexType name="P5__TASK__CONFIG_T" type="P5__TASK__CONFIG_S"/>
+   <xs:complexType name="P5__TASK__CONFIG__INDEX__CURRENT_T" type="P5__ARRAY__INDEX_T"/>
+   <xs:complexType name="P5__TASK__CONFIG__INDEX__CURRENT__EXEC_T"
+                   type="P5__TASK__CONFIG__INDEX__CURRENT_T"/>
+   <xs:complexType name="P5__TASK__ATTR_ACCTION_T" type="int"/>
+   <xs:complexType name="P5__TASK__ATTR_INT_T" type="int"/>
+   <xs:complexType name="P5__TASK__ATTR_INT_STAT_T" type="P5__TASK__ATTR_INT_T"/>
+   <xs:complexType name="P5__TASK__ATTR_T" type="P5__TASK__ATTR_S"/>
+   <xs:complexType name="P5__TASK__ATTR__INDEX__CURRENT_T" type="P5__ARRAY__INDEX_T"/>
+   <xs:complexType name="P5__TASK__ATTR__INDEX__CURRENT__EXEC_T"
+                   type="P5__TASK__ATTR__INDEX__CURRENT_T"/>
+   <xs:complexType name="P5__TASK__CACHED__VALID__MILLIS_T" type="unsigned long"/>
+   <xs:complexType name="P5__TASK__CACHED_T" type="P5__TASK__CACHED_S"/>
+   <xs:complexType name="P5__TASK__CACHED__INDEX__CURRENT_T" type="P5__ARRAY__INDEX_T"/>
+   <xs:complexType name="P5__TASK__CACHED__INDEX__CURRENT__EXEC_T"
+                   type="P5__TASK__CACHED__INDEX__CURRENT_T"/>
+   <xs:complexType name="P5__ROUTER_T" type="int"/>
+   <xs:complexType name="P5__ROUTER_STRING_T" type="String"/>
+   <xs:complexType name="P5__STATUS_T" type="P5__ROUTER_STRING_T"/>
+   <xs:complexType name="P5__STATUS_T[8]" type="char"/>
+   <xs:element name="P5__LATENCY_TASK_EXEC_DIFFS_A"
+               type="P5__LATENCY_TASK_EXEC_DIFFS_T"/>
+   <xs:element name="P5__LATENCY_TASK_EXEC_TICK_A" type="P5__LATENCY_TASK_EXEC_TICK_T"/>
+   <xs:element name="" type="P5__TASK__TYPE__CLASS_T P5__TASK__TYPE__ROOT"/>
+   <xs:element name=""
+               type="P5__TASK__TYPE__CLASS_T P5__TASK__TYPE__REFERENCE__ELEMENT_A"/>
+   <xs:element name="P5__TASK__TYPE__PARENT_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__SEQUENCE_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__ELEMENT_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__TYPE" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__GROUP_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__ATTRIBUTE_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__BACK_REFERENCE__ELEMENT_A"
+               type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT_A" type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT__EQUALS_REFERENCE__ELEMENT__SUM__SEQUENCE_A"
+               type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT__EQUALS_REFERENCE__ELEMENT__MINUS__SEQUENCE_A"
+               type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT__EQUALS_REFERENCE__ELEMENT__MULTI__SEQUENCE_A"
+               type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT__EQUALS_REFERENCE__ELEMENT__DIV__SEQUENCE_A"
+               type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT__EQUALS_REFERENCE__ELEMENT__OR__SEQUENCE_A"
+               type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSERT__EQUALS_REFERENCE__ELEMENT__AND__SEQUENCE_A"
+               type="P5__TASK__TYPE__ASSERT_T"/>
+   <xs:element name="P5__TASK__TYPE__NAMESPACE_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__REDEFINE_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__TASK__TYPE__OVERRIDE_A" type="P5__TASK__TYPE__CLASS_T"/>
+   <xs:element name="P5__NAMESPACE__I2C" type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__TYPE__ASSOC__UNDEFINED_A"
+               type="P5__TASK__TYPE__ASSOC_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__INDEX__ARRAY__LIMIT" type="P5__LIMITS_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__INDEX__PWM"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__INDEX__SWING"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__INDEX__DISPLAY_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__INDEX__I2C_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__INDEX__ATTR_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED_X_MIN_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED_X_MAX_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED_Y_MIN_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED_Y_MAX_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED__CURSOR__X_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED__CURSOR__Y_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED__CURSOR__X__SIZE_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__ASSIGNED__CURSOR__Y__SIZE_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__REFERENCE__CONFIG__INDEX__CURRENT_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="*P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__REFERENCE__CONFIG__INDEX__CURRENT_NAME"
+               type="char"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__FRAME__X"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__FRAME__Y"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__FRAME__WIDTH"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DISPLAY__FRAME__HEIGHT"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LIMITS__MAX_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LIMITS__MIN_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__HARDWARE_PIN__NUMBER_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LIMITS__MAX__DELTA_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LIMITS__CURRENT__DELTA_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__I2C__ADDRESS_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LATENCY_TASK_EXEC_TIME_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LATENCY_TASK_EXEC_TICKS_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__LATENCY_TASK_EXEC_DIFF_RESULT_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__CONFIG__NAME__INDEX_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_ACCTION_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_ACCTION__REPLY_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_ACCTION__SET__INIT_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_ACCTION__SET_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_ACCTION__REPLY_LIST_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__TYPE__SEQUENCE__ARRAY__INDEX_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__TYPE__CLASS_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_INT_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__CONFIG__INDEX__CURRENT__EXEC_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__SWING__FREQUENCY_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__CONFIG__INDEX__CURRENT_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__TYPE__ASSOC_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__P5__TASK__ATTR_ACCTION__IF_EXISTS_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__STATUS__OUTPUT__LEVEL_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ATTRIBUTE__DEFAULTS__PWM__HEIGHT"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__DISPLAY__FRAME"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__DEFAULTS"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__OUTPUT"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__PORT"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__LIMITS"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__PWM"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__LOOP_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ELEMENT__LOOP__EXEC_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ASSERT__ATTRIBUTE__DISPLAY__FRAME__X__EQUALS_REFERENCE__ELEMENT__SUM__SEQUENCE_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ASSERT__ATTRIBUTE__DISPLAY__FRAME__Y__EQUALS_REFERENCE__ELEMENT__SUM__SEQUENCE_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ASSERT__ATTRIBUTE__DISPLAY__FRAME__WIDTH__EQUALS_REFERENCE__ELEMENT__SUM__SEQUENCE_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ASSERT__ATTRIBUTE__DISPLAY__FRAME__HEIGHT__EQUALS_REFERENCE__ELEMENT__SUM__SEQUENCE_A"
+               type="P5__TASK__CONFIG__NAME__INDEX_T"/>
+   <xs:element name="P5__TASK__CONFIG__NAME__ASSERT__ARRAY__LIMIT" type="P5__LIMITS_T"/>
+   <xs:element name="P5__TASK__CONFIG__LIMIT" type="P5__LIMITS_T"/>
+   <xs:element name="P5__TASK__ATTR_ACCTION__REPLY_A" type="P5__TASK__ATTR_ACCTION_T"/>
+   <xs:element name=""
+               type="P5__TASK__ATTR_ACCTION_T P5__TASK__ATTR_ACCTION__SET__INIT_A"/>
+   <xs:element name="P5__TASK__ATTR_ACCTION__SET_A" type="P5__TASK__ATTR_ACCTION_T"/>
+   <xs:element name="P5__TASK__ATTR_ACCTION__REPLY_LIST_A"
+               type="P5__TASK__ATTR_ACCTION_T"/>
+   <xs:element name="P5__TASK__ATTR_ACCTION__IF_EXISTS_A"
+               type="P5__TASK__ATTR_ACCTION_T"/>
+   <xs:element name="P5__TASK__ATTR_INT__UNDEF_A" type="P5__TASK__ATTR_INT_T"/>
+   <xs:element name="P5__TASK__ATTR__LIMIT" type="P5__LIMITS_T"/>
+   <xs:element name="P5__TASK__CACHED__LIMIT" type="P5__LIMITS_T"/>
+   <xs:element name="P5__ROUTER__STATUS__FINAL" type="P5__ROUTER_T"/>
+   <xs:element name="P5__STATUS__INIT" type="P5__STATUS_T"/>
+</automation_driven.submodule.struct:read.xml>

+ 125 - 0
SE/stuff/P5_Automation_can-dev-res-working-1930/___SUBMODULES___/testing_pwm_amp/automation_driven.submodule.struct.read.xsl

@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:automation_driven="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"
+    xmlns:automation_driven.submodule.struct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven/automation_driven.submodule.struct.xsd"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    
+    exclude-result-prefixes="automation_driven"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    <xsl:param name="automation_driven:basedir"/>
+    <xsl:param name="automation_driven.submodule.struct:h" required="yes"/>
+    
+    <xsl:param name="text-encoding" as="xs:string" select="'iso-8859-1'"/>
+    
+    
+    
+    
+    
+    <xsl:template name="automation_driven.submodule.struct:read.xml" >
+        <xsl:variable name="vText" select=
+            "unparsed-text($automation_driven.submodule.struct:h,$text-encoding)"/>
+        
+        <!--<xsl:variable name="vLines" select=
+            "tokenize($vText, '&#xD;?&#xA;')[normalize-space()]"/>-->
+        
+        <automation_driven.submodule.struct:read.xml>
+            <!--<xsl:variable name="struct.h.txt">
+                <struct.h.txt>
+                    <xsl:for-each select="tokenize($vText, '&#xD;?&#xA;')[normalize-space()]">
+                        <token>
+                            <xsl:value-of select="."/>
+                        </token>
+                    </xsl:for-each>
+                </struct.h.txt>
+            </xsl:variable>-->
+            <!--<xsl:apply-templates mode="automation_driven.submodule.struct:read.xml" select="$struct.h.txt"/>-->    
+            
+            <xsl:analyze-string select="$vText" regex="typedef(.+) (.+);(.*)">
+                <xsl:matching-substring>
+                    <xsl:choose>
+                        <xsl:when test="matches(regex-group(1),'unsigned')">
+                            <xs:complexType>
+                                <xsl:attribute name="name" select="normalize-space(regex-group(2))"/>
+                                <xsl:attribute name="type" select="normalize-space(regex-group(1))"/>
+                                <!--<xsl:attribute name="type" select="tokenize(regex-group(1),' ')[1 to 2]"/>-->
+                                <!--<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-->
+                            </xs:complexType>
+                        </xsl:when>
+                        <xsl:when test="string-length(normalize-space(regex-group(1))) &gt; 0">
+                            <xs:complexType>
+                                
+                                <xsl:attribute name="name" select="normalize-space(regex-group(2))"/>
+                                <xsl:attribute name="type" select="normalize-space(regex-group(1))"/>
+                                <!--<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-->
+                            </xs:complexType>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <OTHER>
+                                <xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>
+                            </OTHER>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    <!--<xsl:element name="{normalize-space(regex-group(1))}">
+                        <xsl:value-of select="normalize-space(regex-group(2))"/>
+                    </xsl:element>-->
+                </xsl:matching-substring>
+            </xsl:analyze-string>
+            
+            <xsl:analyze-string select="$vText" regex="const(.+) (.+)=(.+)(.*);(.*)">
+                <xsl:matching-substring>
+                    <xsl:choose>
+                        <xsl:when test="matches(regex-group(1),'unsigned')">
+                            <xs:element>
+                                <xsl:attribute name="name" select="normalize-space(regex-group(2))"/>
+                                <xsl:attribute name="type" select="normalize-space(regex-group(1))"/>
+                                <!--<xsl:attribute name="type" select="tokenize(regex-group(1),' ')[1 to 2]"/>-->
+                                <!--<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-->
+                            </xs:element>
+                        </xsl:when>
+                        <xsl:when test="string-length(normalize-space(regex-group(1))) &gt; 0">
+                            <xs:element>
+                                
+                                <xsl:attribute name="name" select="normalize-space(regex-group(2))"/>
+                                <xsl:attribute name="type" select="normalize-space(regex-group(1))"/>
+                                <!--<xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>-->
+                            </xs:element>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <OTHERelement>
+                                <xsl:attribute name="name0" select="normalize-space(regex-group(0))"/>
+                            </OTHERelement>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    <!--<xsl:element name="{normalize-space(regex-group(1))}">
+                        <xsl:value-of select="normalize-space(regex-group(2))"/>
+                    </xsl:element>-->
+                </xsl:matching-substring>
+            </xsl:analyze-string>
+            
+            
+        </automation_driven.submodule.struct:read.xml>
+    </xsl:template>
+    
+    
+    
+    <xsl:template mode="automation_driven.submodule.struct:read.xml" match="struct.h.txt">
+        <struct.h.txt>
+            <xsl:apply-templates mode="#current"/>
+        </struct.h.txt>
+    </xsl:template>
+
+    <xsl:template mode="automation_driven.submodule.struct:read.xml" match="text()">
+        <text>
+            <xsl:value-of select="."/>
+        </text>
+    </xsl:template>
+
+
+    
+</xsl:stylesheet>