Skip to content

sd-92/xslt-xml-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages