| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?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"
- xmlns:xp5r="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/xinclude_p5_recurse/xinclude_p5_recurse.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
- <xsl:output indent="yes" />
- <xsl:strip-space elements="*"/>
-
- <xsl:include href="../../build_SE_basedir/build_SE.properties.xml.xsl"/>
- <xsl:include href="../system_cache__appinfo/escape_functions.xsl"/>
-
- <xsl:import-schema namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/xinclude_p5_recurse/xinclude_p5_recurse.xsd" schema-location="xinclude_p5_recurse.xsd"/>
-
-
- <xsl:include href="../system_cache__appinfo/basedir.xsl"/><!-- for <xsl:param name="basedir" required="yes"/> -->
- <xsl:include href="../system_cache__appinfo/default_db.instance.xml.xsl"/> <!-- for param name="default_db.instance.xml" required="yes" file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/ -->
-
- <xsl:param name="xp5r:xinclude_p5_recurse.cache_dir" select="concat($default_db.instance.xml,'/xinclude_p5_recurse/')"/>
-
- <xsl:template match="xp5r:cache" mode="xp5r:verify"/><!-- Todo to verify integrity -->
-
- <xsl:template match="xp5r:cache" >
- <xp5r:cache>
- <xsl:attribute name="mode" select="'default'"/>
- <xsl:variable name="xp5r:cache_dir"> <!-- to detect params to save or read -->
- <xsl:apply-templates mode="xp5r:cache_dir" select="."/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test=" doc-available($xp5r:cache_dir)">
- <xsl:message>#47-A $xp5r:cache_dir aviable at <xsl:value-of select="$xp5r:cache_dir"/></xsl:message>
- <xsl:comment>
- #47-A $xp5r:cache_dir aviable at <xsl:value-of select="$xp5r:cache_dir"/></xsl:comment>
- <xsl:copy-of select="doc($xp5r:cache_dir)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>#47-B $xp5r:cache_dir NOT aviable at <xsl:value-of select="$xp5r:cache_dir"/></xsl:message>
- <xsl:comment>
- #47-B $xp5r:cache_dir NOT aviable at <xsl:value-of select="$xp5r:cache_dir"/></xsl:comment>
- TODO to generate xslt to evaluate this cache and make ant build - paraller?
-
- </xsl:otherwise>
- </xsl:choose>
- </xp5r:cache>
- </xsl:template><!-- Todo to read normally data as regular file -->
-
-
- <xsl:template match="xp5r:cache" mode="xp5r:stylecheet_compile_for_build"> <!-- to analyze stylesheet and compile it to be executed by ANT with params based on build_SE.properties.xml.xsl -->
- <xsl:variable name="stylesheet.doc" select=""/>
- </xsl:template>
-
-
- <xsl:template match="xsl:stylesheet" mode="xp5r:xslt.params"/> <!-- to parse stylesheets relations to retrieve expected params to make ant build to postprocess -->
-
- <!--<xsl:function name="xp5r:cache_dir">
- <xsl:param name="xp5r:apply-template.mode"/>
- <xsl:param name="xp5r:id"/>
- <xsl:param name="xp5r:basedir"/>
- </xsl:function>-->
-
- <xsl:template mode="xp5r:cache_dir" match="xp5r:cache">
- <xsl:value-of select="$xp5r:xinclude_p5_recurse.cache_dir"/>
- <xsl:value-of select="system_cache__appinfo:translate_object_escaped_prefix_from_string(xp5r:apply-template/@mode)"/>
- <xsl:value-of select="system_cache__appinfo:translate_object_escaped_prefix_from_string(xp5r:apply-template/@name)"/>
- <xsl:value-of select="'/'"/><xsl:value-of select="@xp5r:id"/>
- <xsl:apply-templates mode="xp5r:cache_dir"/>
- </xsl:template>
-
- <xsl:template mode="xp5r:cache_dir" match="xp5r:apply-template">
- <xsl:apply-templates mode="xp5r:cache_dir"/>
- </xsl:template>
-
- <xsl:template mode="xp5r:cache_dir" match="xp5r:context-node">
- <xsl:apply-templates mode="xp5r:cache_dir" select="@*"/>
- </xsl:template>
-
- <xsl:template mode="xp5r:cache_dir" match="xp5r:with-param">
- <xsl:apply-templates mode="xp5r:cache_dir" select="@*"/>
- <xsl:if test="text()">
- <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(substring(text(),1,10))"/>
- </xsl:if>
- </xsl:template>
-
-
- <xsl:template match="@*" mode="xp5r:cache_dir">
- <xsl:value-of select="system_cache__appinfo:translate_object_escaped_prefix_from_string(name())"/>
- </xsl:template>
-
-
-
- <!-- to create instance of xp5r:cache in some xml templates @2018-01-01 -EOF -->
-
- <!-- <xsl:template match="apply-template" mode="xp5r:cache" xpath-default-namespace="http://www.w3.org/1999/XSL/Transform">
- <xp5r:cache xp5r:id="{generate-id(../.)}" xp5r:basedir=".">
- <xp5r:apply-template mode="system_cache__appinfo:build_flat_schema">
- <xsl:apply-templates mode="xp5r:cache" select="@*"/>
- <xsl:apply-templates mode="xp5r:cache"/>
- </xp5r:apply-template>
- </xp5r:cache>
- </xsl:template>
-
- <xsl:template match="select" mode="xp5r:cache"> <!-\- if select is given -\->
- <xsl:copy-of select="."/>
- </xsl:template>
- <xsl:template match="context-node" mode="xp5r:cache"> <!-\- if select is given -\->
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template match="with-param" mode="xp5r:cache" xpath-default-namespace="http://www.w3.org/1999/XSL/Transform">
- <xp5r:with-param>
- <xsl:apply-templates mode="xp5r:cache" select="@*"/>
- <xsl:apply-templates mode="xp5r:cache.with-param"/>
- </xp5r:with-param>
- </xsl:template>
-
- <xsl:template match="node()" mode="xp5r:cache.with-param">
- <xsl:copy-of select="node()"/>
- </xsl:template>
-
- <xsl:template match="@mode|@name" mode="xp5r:cache" xpath-default-namespace="http://www.w3.org/1999/XSL/Transform">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template match="@*" mode="xp5r:cache" xpath-default-namespace="http://www.w3.org/1999/XSL/Transform"/>
-
- -->
-
- <!-- -EOF to create instance of xp5r:cache in some xml templates @2018-01-01 -->
-
-
- </xsl:stylesheet>
|