| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?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:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:param name="temp" required="yes"/>
- <xsl:param name="uuid" required="yes"/>
- <xsl:param name="postprocess_modules.xml" required="yes"/>
- <xsl:param name="basedir" required="yes"/>
- <xsl:param name="threadcount" select="'10'"/>
-
- <xsl:template mode="system_cache__appinfo:preprocess" match="preprocess_dita">
- <project basedir="{$temp}" name="project_for_{local-name()}" default="default">
- <property name="uuid" value="{$uuid}"/>
- <property name="temp" value="{$temp}"/>
- <target name="default">
- <parallel threadcount="{$threadcount}">
- <xsl:apply-templates mode="system_cache__appinfo:preprocess"/>
- </parallel>
- </target>
- </project>
- </xsl:template>
-
- <xsl:template mode="system_cache__appinfo:postprocess" match="postprocess_dita">
- <project basedir="{$temp}" name="project_for_{local-name()}" default="default">
- <property name="uuid" value="{$uuid}"/>
- <property name="temp" value="{$temp}"/>
- <target name="default">
- <parallel threadcount="{$threadcount}">
- <xsl:apply-templates mode="system_cache__appinfo:postprocess"/>
- </parallel>
- </target>
- </project>
- </xsl:template>
-
-
- <xsl:template mode="system_cache__appinfo:postprocess" match="base64_to_image">
- <xsl:choose>
- <xsl:when test="@srcfile and @dstfile">
- <exec executable="base64">
- <arg line="-i {@srcfile}"/>
- <arg line="-o {@dstfile}"/>
- <arg line="-D"/>
- </exec>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">#29 Not set @srcfile or @dstfile</xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template mode="system_cache__appinfo:preprocess" match="gml_to_image">
- <xsl:choose>
- <xsl:when test="@srcfile and @dstfile and @fileindex">
-
- <echo> convert gml 2 png for <xsl:value-of select="@srcfile"/> to <xsl:value-of select="@dstfile"/> , @fileindex=<xsl:value-of select="@fileindex"/>; - tymczasowy sposob mapowania do konfigu</echo>
- <xsl:variable name="current_node" select="."/>
- <xsl:variable name="postprocess_modules" select="doc($postprocess_modules.xml)"/>
- <xsl:for-each select="$postprocess_modules/postprocess_modules/node()[name()= current()/name()]">
- <xsl:for-each select="*">
- <sequential>
- <xsl:element name="{name()}">
- <xsl:copy-of select="@*"/>
- <property name="basedir" value="{$basedir}"/>
- <xsl:for-each select="property">
- <xsl:element name="{name()}">
- <xsl:attribute name="name" select="@name"/>
- <xsl:attribute name="value" select="$current_node/@*[name()= current()/@name]"/>
- <!--<xsl:copy-of select="@*"/>-->
- </xsl:element>
- </xsl:for-each>
- </xsl:element>
- </sequential>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">#29 Not set @srcfile or @dstfile</xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- </xsl:stylesheet>
|