a.binder 7 年 前
コミット
cd3b4a519f

+ 28 - 0
SE/schema/ant-object/default_db.NEURO_LAYER_COVERAGE/NEURO_LAYER_COVERAGE/build.xsl

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    
+    <xsl:template mode="procesy5_katalogi" match="xs:schema">
+        <xsl:for-each select="xs:element">
+            <xsl:choose>
+                <xsl:when test="contains(document-uri(root()),current()/@name)"/>
+                <xsl:otherwise>
+                    <xsl:message>
+                        266 will save to <xsl:value-of select="@name"/>
+                    </xsl:message>
+                    <xsl:result-document href="../{@name}/{@name}.xsd">
+                        <xsl:copy-of select="root()"/>
+                    </xsl:result-document>
+                    <xsl:result-document href="../{@name}/build.xml">
+                        <xsl:comment>#25 generated by neuro wind layer receptor scirpt </xsl:comment>
+                    </xsl:result-document>
+                </xsl:otherwise>
+            </xsl:choose>
+            
+        </xsl:for-each>
+    </xsl:template>
+    
+</xsl:stylesheet>

+ 16 - 0
SE/schema/ant-object/default_db.NEURO_MIND_LAYER_RECEPTOR/NEURO_MIND_LAYER_RECEPTOR/build_schema.xml

@@ -0,0 +1,16 @@
+<project name="NEURO_LAYER_COVERAGE" default="build" basedir=".">
+    
+    
+    <target name="build">
+        <xslt style="build.xsl" in="NEURO_MIND_LAYER_RECEPTOR.xsd" out="build.xml"
+            force="false">
+            <factory name="net.sf.saxon.TransformerFactoryImpl">
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="procesy5_katalogi"/>
+                <!-- {https://biuro.biall-net.pl/wfs/default_db/table/NEURO_MIND_LAYER.xsd}init -->
+            </factory>
+            <!--<xmlcatalog refid="dita-ot.dtd.catalog"/>-->
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>
+    </target>
+</project>