edge_paths_with_PE_controll_to_PE.xsl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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:bp="https://procesy5.pl/biale_plamy-schema.xsd"
  5. exclude-result-prefixes="xs"
  6. version="2.0">
  7. <xsl:output indent="yes"/>
  8. <xsl:strip-space elements="*"/>
  9. <xsl:template match="edge_paths_with_PE_controll">
  10. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  11. </xsl:template>
  12. <xsl:template match="edge_paths_with_PE_controll" mode="edge_paths_with_PE.xml">
  13. <PE_candidates_dump>
  14. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  15. </PE_candidates_dump>
  16. </xsl:template>
  17. <xsl:template match="Path" mode="edge_paths_with_PE.xml">
  18. <LINESTRING>
  19. <xsl:attribute name="ID_Way" select="@id"/>
  20. <xsl:attribute name="Count" select="@Count"/>
  21. <xsl:attribute name="ID_Point_count" select="@Points_cnt"/>
  22. <xsl:attribute name="distance"/>
  23. <xsl:attribute name="dumb_frequency" select="''"/>
  24. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  25. </LINESTRING>
  26. </xsl:template>
  27. <xsl:template match="PointMatrixGroupPE" mode="edge_paths_with_PE.xml">
  28. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  29. </xsl:template>
  30. <xsl:template match="PointMatrixGroup" mode="edge_paths_with_PE.xml">
  31. <!--<test_matrux><xsl:copy-of select="."></xsl:copy-of></test_matrux>-->
  32. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  33. </xsl:template>
  34. <xsl:template match="odpalam_liczenie" mode="edge_paths_with_PE.xml">
  35. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  36. </xsl:template>
  37. <xsl:template match="koniec_wariantow" mode="edge_paths_with_PE.xml">
  38. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  39. </xsl:template>
  40. <xsl:template match="bp:Path_Point" mode="edge_paths_with_PE.xml">
  41. <xsl:copy-of select="."/>
  42. </xsl:template>
  43. <xsl:template match="variant" mode="edge_paths_with_PE.xml"/>
  44. </xsl:stylesheet>