Untitled


SUBMITTED BY: Guest

DATE: Dec. 11, 2013, 6:08 a.m.

FORMAT: Text only

SIZE: 6.9 kB

HITS: 905

  1. <items>
  2. <item id="00100537" label="A/137i r" lcn="005417713" notes="A/137-160"/>
  3. <item id="00100538" label="A/137i v" lcn="" notes=""/>
  4. <item id="00100539" label="A/137ii r" lcn="" notes=""/>
  5. <item id="00100540" label="A/137ii v" lcn="" notes=""/>
  6. <item id="00100678" label="A/159iii v" lcn="" notes=""/>
  7. <item id="00100679" label="A/159iv r" lcn="" notes=""/>
  8. <item id="00100680" label="A/159iv v" lcn="" notes=""/>
  9. <item id="00100681" label="A/160i r" lcn="" notes=""/>
  10. <item id="00100682" label="A/160i v" lcn="" notes=""/>
  11. <item id="00100683" label="A/160ii r" lcn="" notes=""/>
  12. <item id="00100684" label="A/160ii v" lcn="" notes=""/>
  13. <item id="00100685" label="A/160iii r" lcn="" notes=""/>
  14. <item id="00100686" label="A/160iii v" lcn="" notes=""/>
  15. <item id="00100687" label="A/161i r" lcn="005417714" notes="A/161-182"/>
  16. <item id="00100688" label="A/161i v" lcn="" notes=""/>
  17. <item id="00100819" label="A/182ii v" lcn="" notes=""/>
  18. <item id="00100820" label="A/182iii r" lcn="" notes=""/>
  19. <item id="00100821" label="A/182iii v" lcn="" notes=""/>
  20. <item id="00100822" label="A/183i r" lcn="005417715" notes="A/183-218"/>
  21. <item id="00100823" label="A/183i v" lcn="" notes=""/>
  22. <item id="00100975" label="A/216iii r" lcn="" notes=""/>
  23. <item id="00100976" label="A/216iii v" lcn="" notes=""/>
  24. <item id="00100977" label="A/217i r" lcn="" notes=""/>
  25. <item id="00100978" label="A/217i v" lcn="" notes=""/>
  26. <item id="00100979" label="A/217ii r" lcn="" notes=""/>
  27. <item id="00100980" label="A/217ii v" lcn="" notes=""/>
  28. <item id="00100981" label="A/218i r" lcn="" notes=""/>
  29. <item id="00100982" label="A/218i v" lcn="" notes=""/>
  30. <item id="00100983" label="A/218ii r" lcn="" notes=""/>
  31. <item id="00100984" label="A/218ii v" lcn="" notes=""/>
  32. <item id="00100985" label="A/219i r" lcn="005417716" notes="A/219-248"/>
  33. <item id="00100986" label="A/219 v" lcn="" notes=""/>
  34. <item id="00100987" label="A/219ii r" lcn="" notes=""/>
  35. <item id="00101061" label="A/248 r" lcn="" notes=""/>
  36. <item id="00101062" label="A/248 v" lcn="" notes=""/>
  37. </items>
  38. <xsl:for-each select="/items/item[@lcn='005417714']/following-sibling::*">
  39. <xsl:for-each select="/items/item[@lcn='005417714']">
  40. <xsl:for-each select="following-sibling::*[
  41. generate-id(preceding-sibling::item[@lcn != ''][1])
  42. = generate-id(current())]">
  43. </xsl:for-each>
  44. </xsl:for-each>
  45. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  46. <xsl:output omit-xml-declaration="yes" indent="yes"/>
  47. <xsl:key name="kfItem" match="item[@lcn = '']"
  48. use="generate-id(preceding-sibling::item[@lcn != ''][1])"/>
  49. <xsl:template match="/*">
  50. <items>
  51. <xsl:apply-templates select="item[@lcn != '']"/>
  52. </items>
  53. </xsl:template>
  54. <xsl:template match="item">
  55. <lcn lcn="{@lcn}">
  56. <xsl:copy-of select="."/>
  57. <xsl:copy-of select="key('kfItem', generate-id())"/>
  58. </lcn>
  59. </xsl:template>
  60. </xsl:stylesheet>
  61. <items>
  62. <lcn lcn="005417713">
  63. <item id="00100537" label="A/137i r" lcn="005417713" notes="A/137-160"/>
  64. <item id="00100538" label="A/137i v" lcn="" notes=""/>
  65. <item id="00100539" label="A/137ii r" lcn="" notes=""/>
  66. <item id="00100540" label="A/137ii v" lcn="" notes=""/>
  67. <item id="00100678" label="A/159iii v" lcn="" notes=""/>
  68. <item id="00100679" label="A/159iv r" lcn="" notes=""/>
  69. <item id="00100680" label="A/159iv v" lcn="" notes=""/>
  70. <item id="00100681" label="A/160i r" lcn="" notes=""/>
  71. <item id="00100682" label="A/160i v" lcn="" notes=""/>
  72. <item id="00100683" label="A/160ii r" lcn="" notes=""/>
  73. <item id="00100684" label="A/160ii v" lcn="" notes=""/>
  74. <item id="00100685" label="A/160iii r" lcn="" notes=""/>
  75. <item id="00100686" label="A/160iii v" lcn="" notes=""/>
  76. </lcn>
  77. <lcn lcn="005417714">
  78. <item id="00100687" label="A/161i r" lcn="005417714" notes="A/161-182"/>
  79. <item id="00100688" label="A/161i v" lcn="" notes=""/>
  80. <item id="00100819" label="A/182ii v" lcn="" notes=""/>
  81. <item id="00100820" label="A/182iii r" lcn="" notes=""/>
  82. <item id="00100821" label="A/182iii v" lcn="" notes=""/>
  83. </lcn>
  84. <lcn lcn="005417715">
  85. <item id="00100822" label="A/183i r" lcn="005417715" notes="A/183-218"/>
  86. <item id="00100823" label="A/183i v" lcn="" notes=""/>
  87. <item id="00100975" label="A/216iii r" lcn="" notes=""/>
  88. <item id="00100976" label="A/216iii v" lcn="" notes=""/>
  89. <item id="00100977" label="A/217i r" lcn="" notes=""/>
  90. <item id="00100978" label="A/217i v" lcn="" notes=""/>
  91. <item id="00100979" label="A/217ii r" lcn="" notes=""/>
  92. <item id="00100980" label="A/217ii v" lcn="" notes=""/>
  93. <item id="00100981" label="A/218i r" lcn="" notes=""/>
  94. <item id="00100982" label="A/218i v" lcn="" notes=""/>
  95. <item id="00100983" label="A/218ii r" lcn="" notes=""/>
  96. <item id="00100984" label="A/218ii v" lcn="" notes=""/>
  97. </lcn>
  98. <lcn lcn="005417716">
  99. <item id="00100985" label="A/219i r" lcn="005417716" notes="A/219-248"/>
  100. <item id="00100986" label="A/219 v" lcn="" notes=""/>
  101. <item id="00100987" label="A/219ii r" lcn="" notes=""/>
  102. <item id="00101061" label="A/248 r" lcn="" notes=""/>
  103. <item id="00101062" label="A/248 v" lcn="" notes=""/>
  104. </lcn>
  105. </items>

comments powered by Disqus