Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

xslt-xml-to-json

XSLT template which converts XML to JSON. (If you are ever stuck in 2002)

Usage

Sample XML

<plant>
  <common>Bloodroot</common>
  <botanical>Sanguinaria canadensis</botanical>
  <zone>4</zone>
  <light>Mostly Shady</light>
  <price>$2.44</price>
  <availability>031599</availability>
</plan>

In your XSLT:

<xsl:include href="xml-to-json.xsl"/>

<xsl:call-template name="xml-to-json2">
  <xsl:with-param name="data" select="plant"/>
</xsl:call-template>

About

XSLT template which converts XML to JSON. Very useful if you managed to go back in time and are now stuck in 2002.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages