| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?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"
- xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
- xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
- xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
-
- <xsl:param name="p5ant.WPS_Functions.PRODUCT.name.input" required="yes" />
- <xsl:param name="p5ant.WPS_Functions.PRODUCT.prefix.input" required="yes"/>
- <xsl:param name="p5ant.WPS_Functions.PRODUCT.module.input" />
- <xsl:param name="p5ant.xsl" required="yes"/>
-
-
- <xsl:variable name="p5ant.WPS_Functions.PRODUCT.module.input.string">
- <xsl:choose>
- <xsl:when test="$p5ant.WPS_Functions.PRODUCT.module.input">
- <xsl:value-of select="concat('.',$p5ant.WPS_Functions.PRODUCT.module.input)"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:template match="p5ant:project" mode="p5ant:create_new_WPS_Function.project" > <!-- xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd" -->
- <xsl:element name="project" inherit-namespaces="yes">
- <xsl:namespace name="{$p5ant.WPS_Functions.PRODUCT.prefix.input}" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.name.input,'.xsd')"/>
- <xsl:if test="string-length($p5ant.WPS_Functions.PRODUCT.module.input) > 0"><xsl:namespace name="{$p5ant.WPS_Functions.PRODUCT.prefix.input}{$p5ant.WPS_Functions.PRODUCT.module.input.string}" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.name.input,$p5ant.WPS_Functions.PRODUCT.module.input.string,'.xsd')"/></xsl:if>
- <!--<xsl:namespace name="{$p5ant.WPS_Functions.PRODUCT.prefix.input}{$p5ant.WPS_Functions.PRODUCT.module.input.string}" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.prefix.input,$p5ant.WPS_Functions.PRODUCT.module.input.string,'.xsd')"/>-->
- <!--<xsl:namespace name="test" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'.xsd')"/>-->
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:element>
- <!--<project basedir="../../." name="{$p5ant.WPS_Functions.PRODUCT.name.input}" default="default"
- xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
- xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
- >
-
- </project>-->
- </xsl:template>
-
- <xsl:template match="*" mode="p5ant:create_new_WPS_Function.project" > <!-- xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd" -->
- <xsl:variable name="namespace-uri-for-prefix" select=" namespace-uri-for-prefix(prefix-from-QName(node-name(.)),.)"/>
- <xsl:choose>
- <xsl:when test="$namespace-uri-for-prefix='http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd'">
- <xsl:element name="p5suis:{local-name()}" namespace="{$namespace-uri-for-prefix}">
- <xsl:if test="@name"><xsl:attribute name="name" select="@name"/></xsl:if>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{local-name()}">
- <xsl:if test="@name"><xsl:attribute name="name" select="@name"/></xsl:if>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <xsl:template match="p5ant.condition[@property and p5ant.isset]" mode="p5ant:create_new_WPS_Function.project" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
- <xsl:choose>
- <xsl:when test="p5ant.isset[contains(@property,'\$\{')]">
- <xsl:comment>#66 property is unset in config generation <xsl:value-of select="p5ant.isset/@property"/></xsl:comment>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="property" inherit-namespaces="no">
- <xsl:attribute name="name" select="@property"/>
-
- <xsl:copy-of select="@location"/>
- <xsl:copy-of select="@value"/>
-
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="p5ant.condition" mode="p5ant:create_new_WPS_Function.project" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
- <xsl:comment>#78 incorrect expected input cond</xsl:comment>
- </xsl:template>
-
- <xsl:template match="p5ant:project" mode="p5ant:create_new_WPS_Function.PRODUCT" > <!-- xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd" -->
- <xsl:element name="project" inherit-namespaces="yes" >
- <xsl:namespace name="{$p5ant.WPS_Functions.PRODUCT.prefix.input}" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.name.input,'.xsd')"/>
- <xsl:if test="string-length($p5ant.WPS_Functions.PRODUCT.module.input) > 0"><xsl:namespace name="{$p5ant.WPS_Functions.PRODUCT.prefix.input}{$p5ant.WPS_Functions.PRODUCT.module.input.string}" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.name.input,$p5ant.WPS_Functions.PRODUCT.module.input.string,'.xsd')"/></xsl:if>
- <xsl:namespace name="p5xsl" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd'"/>
- <!--<xsl:namespace name="test" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'.xsd')"/>-->
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="p5ant:create_new_WPS_Function.project"/>
-
- <target name="p5xsls.xml" depends="basedir" xsl:exclude-result-prefixes="#all">
- <description>
- TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
- </description>
- <echoxml namespacepolicy="elementsOnly">
- <xsl:attribute name="file">
- <xsl:text>${</xsl:text><xsl:value-of select="$p5ant.WPS_Functions.PRODUCT.prefix.input"/><xsl:text>.include.xsl.p5xsls.xml}</xsl:text>
- </xsl:attribute>
- <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
- <namespaces.list xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
- <namespaces.list.namespace prefix="{$p5ant.WPS_Functions.PRODUCT.prefix.input}" namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/{$p5ant.WPS_Functions.PRODUCT.name.input}/{$p5ant.WPS_Functions.PRODUCT.name.input}.xsd" xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"/>
- </namespaces.list>
- <include.list xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
- <include.list.href href="{$p5ant.xsl}" xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"/>
- </include.list>
- </stylesheet_buildlist>
- </echoxml>
- </target>
-
- </xsl:element>
- </xsl:template>
-
-
-
- </xsl:stylesheet>
|