/usr/share/doc/libxml-xslt-perl/examples/grammar.xsl is in libxml-xslt-perl 0.48-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match='/'>
<HTML>
<HEAD>
<TITLE>Example application of XML::XSLT</TITLE>
</HEAD>
<BODY BGCOLOR="#EEEEEE" BACKGROUND="gifs/achtergrond.gif">
<CENTER>
<H1>Example application of XML::XSLT</H1>
<I>Extraction of grammar rules from Recommendations</I>
</CENTER>
<xsl:for-each select=".//prod">
[<xsl:value-of select="position()" />] <xsl:value-of select="lhs" /> ::= <xsl:apply-templates select=".//rhs" /> <BR />
</xsl:for-each>
</BODY>
</HTML>
</xsl:template>
<xsl:template match='rhs'>
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
|