entaxy-public/ui/support/xslt/generate-provided-repo.xslt
2024-12-14 04:07:49 +03:00

27 lines
1.2 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/" exclude-result-prefixes="xs fn">
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0">
<xsl:attribute name="name">entaxy-platform-provided-ui-${project.version}</xsl:attribute>
<xsl:comment>This is autogenerated repo for UI modules provided by platform</xsl:comment>
<xsl:for-each select="//repository">
<repository><xsl:value-of select="@url" /></repository>
</xsl:for-each>
<feature name="entaxy-ui-platform-provided">
<xsl:attribute name="version">${project.version}</xsl:attribute>
<xsl:for-each select="//repository/feature">
<feature><xsl:value-of select="." /></feature>
</xsl:for-each>
</feature>
</features>
</xsl:template>
</xsl:stylesheet>