edge_paths_with_PE_controll_to_PE.xsl 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. <PE_candidates_dump>
  11. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  12. </PE_candidates_dump>
  13. </xsl:template>
  14. <xsl:template match="edge_paths_with_PE_controll" mode="edge_paths_with_PE.xml">
  15. <PE_candidates_dump>
  16. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  17. </PE_candidates_dump>
  18. </xsl:template>
  19. <xsl:template match="Path" mode="edge_paths_with_PE.xml">
  20. <LINESTRING>
  21. <xsl:attribute name="ID_Way" select="@id"/>
  22. <xsl:attribute name="Count" select="@Count"/>
  23. <xsl:attribute name="ID_Point_count" select="@Points_cnt"/>
  24. <xsl:attribute name="distance"/>
  25. <xsl:attribute name="dumb_frequency" select="''"/>
  26. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  27. </LINESTRING>
  28. </xsl:template>
  29. <xsl:template match="PointMatrixGroupPE" mode="edge_paths_with_PE.xml">
  30. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  31. </xsl:template>
  32. <xsl:template match="PointMatrixGroup" mode="edge_paths_with_PE.xml">
  33. <!--<test_matrux><xsl:copy-of select="."></xsl:copy-of></test_matrux>-->
  34. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  35. </xsl:template>
  36. <xsl:template match="odpalam_liczenie" mode="edge_paths_with_PE.xml">
  37. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  38. </xsl:template>
  39. <xsl:template match="koniec_wariantow" mode="edge_paths_with_PE.xml">
  40. <xsl:apply-templates mode="edge_paths_with_PE.xml"/>
  41. </xsl:template>
  42. <xsl:template match="bp:Path_Point" mode="edge_paths_with_PE.xml">
  43. <xsl:copy-of select="."/>
  44. </xsl:template>
  45. <xsl:template match="variant" mode="edge_paths_with_PE.xml"/>
  46. <xsl:template match="*" mode="edge_paths_with_PE.xml">
  47. <xsl:message>Matched node not needed <xsl:value-of select="name()"/></xsl:message>
  48. </xsl:template>
  49. <xsl:template match="text()" mode="edge_paths_with_PE.xml">
  50. <xsl:message>Matched text: <xsl:value-of select="."/></xsl:message>
  51. </xsl:template>
  52. </xsl:stylesheet>