Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2015-04-17 14:06:12 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2015-04-17 14:06:12 -0400
commit30daa3c1d91a1c49dbe7b8bfd491d0565a661a34 (patch)
tree84dbecb06b4ba6800020bf0a561ed6d0a8507871
parent36c9e096251f6343ddaec3a07df6211b768bd973 (diff)
downloadliterate-xsl-30daa3c1d91a1c49dbe7b8bfd491d0565a661a34.tar.gz
literate-xsl-30daa3c1d91a1c49dbe7b8bfd491d0565a661a34.tar.bz2
literate-xsl-30daa3c1d91a1c49dbe7b8bfd491d0565a661a34.zip
Comments preceding stylesheet declaration no longer processed
The original intent of processing this was to try to generate useful documentation for any source. Now, this project is moving more toward expecting that the user make use of its literate features.
-rw-r--r--src/texinfo.xsl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/texinfo.xsl b/src/texinfo.xsl
index 5578133..eeca20f 100644
--- a/src/texinfo.xsl
+++ b/src/texinfo.xsl
@@ -34,14 +34,13 @@
<!--
Entry point
- Comments that precede the stylesheet definition will also be
- processed, since these are commonly used to describe the stylesheet
- as a whole.
+ Any comments preceding the root node will not be output; it is
+ assumed that a license/copyright header will be placed here, or text
+ describing the stylesheet.
-->
<template match="xsl:stylesheet|xsl:transform">
<apply-templates mode="xt:doc-gen"
- select="preceding-sibling::comment()
- |node()" />
+ select="node()" />
</template>