| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?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:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
- 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:d2a="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
- exclude-result-prefixes="xs d2a system_cache__appinfo vc p5dkp p5bws p5dg"
- version="2.0">
-
-
- <xsl:include href="../documentation_generator/p5dg.filepath.xsl"/>
- <xsl:include href="d2a.new_ant_project.child.task.bash.syntaxdiagram.xsl"/>
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
- <xsl:param name="d2a:basedir"/>
- <xsl:param name="d2a:repository"/>
- <xsl:param name="WPS_Functions.basedir" required="yes"/>
-
- <xsl:param name="d2a.ditamap.INPUT" required="yes"/>
- <xsl:param name="d2a.new_module.INPUT" required="yes"/>
-
- <xsl:param name="d2a:basedir_ROOT_DITA_KEYREF" select="'basedir'"/>
-
- <xsl:function name="d2a:new_ant_project.write.path">
- <!--<xsl:param name="WPS_Functions.basedir"/>-->
- <xsl:param name="p5dg:filepath.true.path"/>
- <xsl:param name="p5dg:filename.true.path"/>
- <xsl:param name="PRODUCT"/>
- <xsl:value-of select="concat($p5dg:filepath.true.path,'/build_',$p5dg:filename.true.path,$PRODUCT,'.xml')"/>
- </xsl:function>
-
- <xsl:template match="d2a:new_ant_project" mode="d2a:new_ant_project.write.xml">
- <d2a:new_ant_project.write.xml>
- <xsl:apply-templates mode="#current"/>
- </d2a:new_ant_project.write.xml>
- </xsl:template>
-
- <xsl:template match="create_new_WPS_Function" mode="d2a:new_ant_project.write.xml">
- <xsl:message>#42 saving to <xsl:value-of select="d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'')"/></xsl:message>
- <result-document href="{d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'')}">
- <!--<xsl:copy-of select="project" copy-namespaces="no"/>-->
- </result-document>
- <xsl:result-document href="{d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'')}">
- <xsl:for-each select="project">
- <xsl:copy copy-namespaces="yes">
- <xsl:copy-of select="namespace::*"/>
- <xsl:copy-of select="@*"/>
- <include file="{d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'.PRODUCT')}" as="PRODUCT"/>
- <xsl:copy-of select="*" copy-namespaces="no"/>
- </xsl:copy>
- </xsl:for-each>
- </xsl:result-document>
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
-
- <xsl:template match="d2a:PRODUCT.new_ant_project" mode="d2a:new_ant_project.write.xml">
- <xsl:message>#42 saving to <xsl:value-of select="d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'.PRODUCT')"/></xsl:message>
-
- <result-document href="{d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'.PRODUCT')}">
- <!--<xsl:copy-of select="project"/>-->
- </result-document>
- <xsl:result-document href="{d2a:new_ant_project.write.path(ancestor-or-self::*/@p5dg:filepath.true.path,ancestor-or-self::*/@p5dg:filename.true.path,'.PRODUCT')}">
- <xsl:copy-of select="project"/>
- </xsl:result-document>
- </xsl:template>
-
- <xsl:template mode="d2a:new_ant_project.write.xml" match="text()|comment()|*"/>
-
- </xsl:stylesheet>
|