Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="text"/>
- <xsl:template match="/">
- { "DataCollection": [
- <xsl:for-each select="DataCollection/Technicians">
- { "id": "<xsl:value-of select="Technician/@id"/>",
- "firstname:" <xsl:value-of select="Technician/firstname"/>",
- "lastname:" <xsl:value-of select="Technician/lastname"/>",
- "birthday:" <xsl:value-of select="Technician/birthday"/>",
- "email:" <xsl:value-of select="Technician/email"/>"
- }
- <xsl:if test="position() != last()">,</xsl:if>
- </xsl:for-each>
- ] }
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement