Files
qt-creator/src/qtcreatorplugin2json.xsl
hjk 93b7528431 Rename pluginjsonmetadata.xsl -> qtcreatorplugin2json.xsl
The original name inconveniently starts with 'plugin', creating a
conflict for shell tab completion when trying to enter src/plugins/...
taking extra keystrokes to resolve.

Change-Id: I7fa59d767aa900f73cd643dfab0d5b2131652a2d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-12-20 12:41:09 +01:00

31 lines
953 B
XML

<?xml version="1.0"?>
<!-- XSL sheet to transform Qt Creator's pluginspec files into json files required
for the new Qt 5 plugin system. -->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="plugin vendor category description url"/>
<xsl:template match="/">
{
<xsl:apply-templates/>
}
</xsl:template>
<xsl:template match="license"/>
<xsl:template match="dependencyList"/>
<xsl:template match="copyright"/>
<xsl:template match="argumentList"/>
<xsl:template match="vendor">
"Vendor" : "<xsl:apply-templates/>",
</xsl:template>
<xsl:template match="platform">
"Platform" : "<xsl:apply-templates/>",
</xsl:template>
<xsl:template match="category">
"Category" : "<xsl:apply-templates/>",
</xsl:template>
<xsl:template match="description">
"Description" : "<xsl:apply-templates/>",
</xsl:template>
<xsl:template match="url">
"Url" : "<xsl:apply-templates/>"
</xsl:template>
</xsl:stylesheet>