| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xs"
- version="2.0">
- <!-- @2016-11 bindera: ten template ma przeparsowac plik dita i podstawic w nim sposob przetwarzania aby sciagnac stworzyc procesy w miejsce data-about.
- Potem do podpiecia do innych przetwarzan -->
-
- <xsl:output indent="yes" />
- <xsl:strip-space elements="*"/>
- <xsl:include href="PROCES_INCLUDE.xsl"/>
-
-
-
- <xsl:template match="topic" mode="DITA_PARSE_templ">
- <xsl:element name="{name()}">
- <xsl:apply-templates mode="#current" select="@*"/>
- <xsl:copy-of select="title"/>
- <xsl:copy-of select="body"/>
- <xsl:variable name="ID_PROCES" select="//.[@base='PROCES_INCLUDE']"/>
- <xsl:variable name="topic_id" select="@topic_sfx_mwx_yx"/>
- <!--<xsl:apply-templates mode="#current"/>-->
-
- <xsl:if test="$ID_PROCES">
- <xsl:call-template name="PROCES_INCLUDE">
- <xsl:with-param name="ID_PROCESS" select="$ID_PROCES"/>
- </xsl:call-template>
- </xsl:if>
-
- </xsl:element>
- </xsl:template>
-
-
- <xsl:template name="PROCES_INCLUDE">
- <xsl:param name="ID_PROCESS" required="yes"/>
- <xsl:variable name="proces_node" select="$CRM_PROCES.xml//item[ID=$ID_PROCESS]"/>
- <topic>
- <xsl:attribute name="id" select="concat('asd',$ID_PROCESS)"/>
- <title>
- <xsl:apply-templates mode="PROCES_TO_DITA_STRIP_HTML_TITLE" select="$proces_node/DESC/text()">
- <xsl:with-param name="limit" select="50"/>
- </xsl:apply-templates>
- </title>
- <body>
- <xsl:apply-templates mode="PROCES_TO_DITA_STRIP_HTML" select="$proces_node/OPIS/text()"/>
- </body>
- <xsl:for-each select="$CRM_PROCES.xml//item[PARENT_ID=$ID_PROCESS]">
- <xsl:call-template name="PROCES_INCLUDE">
- <xsl:with-param name="ID_PROCESS" select="ID"/>
- </xsl:call-template>
- </xsl:for-each>
- </topic>
- </xsl:template>
-
-
-
-
- <!--<xsl:template match="*" mode="DITA_PARSE_templ">
- <xsl:element name="{name()}">
- <xsl:apply-templates mode="#current" select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </xsl:element>
- </xsl:template>-->
-
- <xsl:template match="apiname[@base='PROCES_INCLUDE']" mode="DITA_PARSE_templ">
- generuje costam
-
-
- </xsl:template>
- <xsl:template match="@*" mode="DITA_PARSE_templ">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:template>
-
- </xsl:stylesheet>
|