mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
updated resources checking scripts
This commit is contained in:
parent
13190d2788
commit
7e8bd11ea9
4 changed files with 4 additions and 2 deletions
18
scripts/resources/clean.xslt
Normal file
18
scripts/resources/clean.xslt
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="xml" indent="yes"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
<xsl:template match="comment()"/>
|
||||
<xsl:template match="node">
|
||||
<xsl:if test="@name != ''">
|
||||
<node name="{@name}">
|
||||
<xsl:apply-templates/>
|
||||
</node>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Add a link
Reference in a new issue