postprocess.xsl 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  5. exclude-result-prefixes="xs"
  6. version="2.0">
  7. <xsl:output indent="yes"/>
  8. <xsl:strip-space elements="*"/>
  9. <xsl:param name="temp" required="yes"/>
  10. <xsl:param name="uuid" required="yes"/>
  11. <xsl:template mode="system_cache__appinfo:postprocess" match="postprocess_dita">
  12. <project basedir="{$temp}" name="project_for_{local-name()}" default="default">
  13. <target name="default">
  14. <xsl:apply-templates mode="system_cache__appinfo:postprocess"/>
  15. </target>
  16. </project>
  17. </xsl:template>
  18. <xsl:template mode="system_cache__appinfo:postprocess" match="base64_to_image">
  19. <xsl:choose>
  20. <xsl:when test="@srcfile and @dstfile">
  21. <exec executable="base64">
  22. <arg line="-i {@srcfile}"/>
  23. <arg line="-o {@dstfile}"/>
  24. <arg line="-D"/>
  25. </exec>
  26. </xsl:when>
  27. <xsl:otherwise>
  28. <xsl:message terminate="yes">#29 Not set @srcfile or @dstfile</xsl:message>
  29. </xsl:otherwise>
  30. </xsl:choose>
  31. </xsl:template>
  32. <xsl:template mode="system_cache__appinfo:postprocess" match="gml_to_image">
  33. <xsl:choose>
  34. <xsl:when test="@srcfile and @dstfile">
  35. <echo>TODO convert gml 2 png for <xsl:value-of select="@srcfile"/> to <xsl:value-of select="@dstfile"/> </echo>
  36. </xsl:when>
  37. <xsl:otherwise>
  38. <xsl:message terminate="yes">#29 Not set @srcfile or @dstfile</xsl:message>
  39. </xsl:otherwise>
  40. </xsl:choose>
  41. </xsl:template>
  42. </xsl:stylesheet>