Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Collection>
  3. <Content>
  4. <ID>12</ID>
  5. <Type>Content</Type>
  6. <Title>Office Location #1</Title>
  7. <QuickLink>/office.aspx?id=12</QuickLink>
  8. <Teaser>
  9. <p>
  10. <span class="infoBold">My Group</span>
  11. <br />
  12. WPO
  13. <br />
  14. Office Location #1
  15. <br />
  16. Wp, NY 090801
  17. <br />
  18. 986.362.3265
  19. </p>
  20. </Teaser>
  21. <Html>
  22. <root>
  23. <Location>
  24. <location />
  25. <office>WPO</office>
  26. <Address>
  27. <image>
  28. <img src="someing.png" />
  29. </image>
  30. <Address1>Office Location #1</Address1>
  31. <Address2 />
  32. <City>Wp</City>
  33. <State>NY</State>
  34. <zip>09081</zip>
  35. <phone>986.362.3265</phone>
  36. <fax />
  37. <urgent_care_phone />
  38. </Address>
  39. </Location>
  40. </root>
  41. </Html>
  42. </Content>
  43. <Content>
  44. <ID>48</ID>
  45. <Type>Content</Type>
  46. <Title>Office Location #3</Title>
  47. <QuickLink>/office.aspx?id=48</QuickLink>
  48. <Teaser>
  49. <p>
  50. <span class="infoBold">My Group</span>
  51. <br />
  52. WPO
  53. <br />
  54. Office Location #3
  55. <br />
  56. Wp, NY 090801
  57. <br />
  58. 986.362.3265
  59. </p>
  60. </Teaser>
  61. <Html>
  62. <root>
  63. <Location>
  64. <location />
  65. <office>WPO</office>
  66. <Address>
  67. <image>
  68. <img src="someing.png" />
  69. </image>
  70. <Address1>Office Location #3</Address1>
  71. <Address2 />
  72. <City>Wp</City>
  73. <State>NY</State>
  74. <zip>09081</zip>
  75. <phone>986.362.3265</phone>
  76. <fax />
  77. <urgent_care_phone />
  78. </Address>
  79. </Location>
  80. </root>
  81. </Html>
  82. </Content>
  83. <Content>
  84. <ID>36</ID>
  85. <Type>Content</Type>
  86. <Title>Office Location #2</Title>
  87. <QuickLink>/office.aspx?id=36</QuickLink>
  88. <Teaser>
  89. <p>
  90. <span class="infoBold">My Group</span>
  91. <br />
  92. WPO
  93. <br />
  94. Office Location #2
  95. <br />
  96. Wp, NY 090801
  97. <br />
  98. 986.362.3265
  99. </p>
  100. </Teaser>
  101. <Html>
  102. <root>
  103. <Location>
  104. <location>WP</location>
  105. <office>WPO</office>
  106. <Address>
  107. <image>
  108. <img src="someing.png" />
  109. </image>
  110. <Address1>Office Location #2</Address1>
  111. <Address2 />
  112. <City>Wp</City>
  113. <State>NY</State>
  114. <zip>09081</zip>
  115. <phone>986.362.3265</phone>
  116. <fax />
  117. <urgent_care_phone />
  118. </Address>
  119. </Location>
  120. </root>
  121. </Html>
  122. </Content>
  123. </Collection>
  124.  
  125. FOR EACH ENTRY inside `Collection/Content/`:
  126.  
  127. Html/root/Location/location (if not blank show it)
  128. Html/root/Location/Address {
  129. /Address1
  130. /Address2 (if not blank show it)
  131. /City
  132. /State
  133. /zip
  134. /phone
  135. /fax (if not blank show it)
  136. }
  137.  
  138. Html/root/Location/location (if not blank show it)
  139. Html/root/Location/Address {
  140. /Address1
  141. /Address2 (if not blank show it)
  142. /City
  143. /State
  144. /zip
  145. /phone
  146. /fax (if not blank show it)
  147. }
  148.  
  149. Html/root/Location/location (if not blank show it)
  150. Html/root/Location/Address {
  151. /Address1
  152. /Address2 (if not blank show it)
  153. /City
  154. /State
  155. /zip
  156. /phone
  157. /fax (if not blank show it)
  158. }
  159.  
  160. <xsl:for-each select="Collection/Content/Html">
  161. <div class="serviceHolder brClear">
  162. <xsl:value-of select="root/Location/Address/Address1" />
  163. <xsl:value-of select="root/Location/Address/Address2" />
  164. <xsl:value-of select="root/Location/Address/City" />
  165. <xsl:value-of select="root/Location/Address/State" />
  166. <xsl:value-of select="root/Location/Address/zip" />
  167. <xsl:value-of select="root/Location/Address/phone" />
  168. <a href="{QuickLink}" title="Test">Get Direction</a>
  169. </div>
  170. </xsl:for-each>
  171.  
  172. <a href="{QuickLink}" title="Test">Get Direction</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement