Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  2. <xsl:output method="text"/>
  3. <xsl:template match="/">
  4. { "DataCollection": [
  5. <xsl:for-each select="DataCollection/Technicians">
  6. { "id": "<xsl:value-of select="Technician/@id"/>",
  7. "firstname:" <xsl:value-of select="Technician/firstname"/>",
  8. "lastname:" <xsl:value-of select="Technician/lastname"/>",
  9. "birthday:" <xsl:value-of select="Technician/birthday"/>",
  10. "email:" <xsl:value-of select="Technician/email"/>"
  11. }
  12. <xsl:if test="position() != last()">,</xsl:if>
  13. </xsl:for-each>
  14. ] }
  15. </xsl:template>
  16.  
  17. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement