Skip to content

Commit

Permalink
#9 more
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 1, 2021
1 parent 0902c42 commit 0026684
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/org/polystat/far/remove-false-inputs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="remove-false-inputs" version="2.0">
<!--
This XSL simply deletes the <input> elements that don't have
the required @found attribute. When the attribute is found, it
modifies it taking only the last part of it, after the last
right-arrow.
-->
<xsl:strip-space elements="*"/>
<xsl:template match="input[@found='']">
<!-- remove it -->
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/org/polystat/far/remove-input-perps.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="remove-input-perps" version="2.0">
<!--
This XSL deletes all <input> elements, which have at least
one variable with \perp value. It's obvious, that such a
situation is impossible: \perp can't come in as a value.
-->
<xsl:strip-space elements="*"/>
<xsl:template match="input[a[@x = '\perp']]">
<!-- just delete it -->
Expand Down

0 comments on commit 0026684

Please sign in to comment.