55 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <!--
 | |
|   ~~~~~~licensing~~~~~~
 | |
|   platform-provided-modules
 | |
|   ==========
 | |
|   Copyright (C) 2020 - 2024 EmDev LLC
 | |
|   ==========
 | |
|   You may not use this file except in accordance with the License Terms of the Copyright
 | |
|   Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
 | |
|   rights to the Software and any copies are the property of the Copyright Holder. Unless
 | |
|   it is explicitly allowed the Copyright Holder, the User is prohibited from using the
 | |
|   Software for commercial purposes to provide services to third parties.
 | |
|   
 | |
|   The Copyright Holder hereby declares that the Software is provided on an "AS IS".
 | |
|   Under no circumstances does the Copyright Holder guarantee or promise that the
 | |
|   Software provided by him will be suitable or not suitable for the specific purposes
 | |
|   of the User, that the Software will meet all commercial and personal subjective
 | |
|   expectations of the User, that the Software will work properly, without technical
 | |
|   errors, quickly and uninterruptedly.
 | |
|   
 | |
|   Under no circumstances shall the Copyright Holder or its Affiliates is not liable
 | |
|   to the User for any direct or indirect losses of the User, his expenses or actual
 | |
|   damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
 | |
|   or damage to data, property, etc.
 | |
|   ~~~~~~/licensing~~~~~~
 | |
|   -->
 | |
| 
 | |
| <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="text" version="1.0" encoding="UTF-8" indent="yes"/>
 | |
| 	
 | |
| 	<xsl:template match="/">
 | |
| 		<xsl:apply-templates select="child::element()" />
 | |
| 	</xsl:template>	
 | |
| 	
 | |
| 	<xsl:template match="//*:feature[*:capability]">
 | |
| 		<xsl:variable name="current-feature" select="." />
 | |
| 		<xsl:for-each select="./*:capability">
 | |
| 			<xsl:for-each select=".//text()">
 | |
| 				<xsl:variable name="cap" select="normalize-space(.)" />
 | |
| 				<xsl:choose>
 | |
| 					<xsl:when test="starts-with($cap,'entaxy.ui.module;')">
 | |
| 						<xsl:text><![CDATA[<feature>]]></xsl:text><xsl:value-of select="$current-feature/@name" /><xsl:text><![CDATA[</feature>]]></xsl:text><xsl:text>
 | |
| </xsl:text>
 | |
| 					</xsl:when>
 | |
| 				</xsl:choose>
 | |
| 			</xsl:for-each>	
 | |
| 		</xsl:for-each>
 | |
| 	</xsl:template>
 | |
| 	
 | |
| 	<xsl:template name="default-remove" match="node()|@*">
 | |
| 		<xsl:apply-templates select="node()|@*" />
 | |
| 	</xsl:template>	
 | |
| 	
 | |
| </xsl:stylesheet>
 |