element-filename.xsl 2.0 KB

12345678910111213141516171819202122232425262728293031
  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:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  5. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  6. exclude-result-prefixes="xs"
  7. version="2.0">
  8. <xsl:param name="p5_simpleSchema_map:simpleSchema.local" select="concat($default_db.instance.xml,'/simpleSchema/')"/> <!-- file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/simpleSchema/ -->
  9. <xsl:function name="p5_simpleSchema_map:element-filename">
  10. <!-- go_recurse_from_root_by_build_element_cache , go_recurse_from_root_by_build_complexType , -->
  11. <xsl:param name="parent_type"/>
  12. <xsl:param name="namespace_uri_param"/>
  13. <xsl:choose>
  14. <xsl:when test="substring-before(system_cache__appinfo:translate_object_escaped_prefix_from_string(system_cache__appinfo:prefix_from_targetNamespace( $system_cache__appinfo:vrtfNamespaces,$namespace_uri_param )),':')">
  15. <xsl:value-of select="concat($p5_simpleSchema_map:simpleSchema.local,'/', system_cache__appinfo:get_object_prefix(system_cache__appinfo:translate_object_escaped_prefix_from_string(system_cache__appinfo:prefix_from_targetNamespace( $system_cache__appinfo:vrtfNamespaces,$namespace_uri_param ))),'/',system_cache__appinfo:clean_object_prefix($parent_type),'.xml')"/>
  16. </xsl:when>
  17. <xsl:otherwise>
  18. <xsl:value-of select="concat($p5_simpleSchema_map:simpleSchema.local,'/', system_cache__appinfo:prefix_from_targetNamespace( $system_cache__appinfo:vrtfNamespaces,$namespace_uri_param ),'/',system_cache__appinfo:clean_object_prefix($parent_type),'.xml')"/>
  19. </xsl:otherwise>
  20. </xsl:choose>
  21. </xsl:function>
  22. </xsl:stylesheet>