Folding sometimes not available
Posted: Wed Oct 21, 2020 4:54 pm
Dear all,
why would there be occasions when oxygen seems not to recognize where it could fold my code?
I have a long xslt stylesheet where no folding triangle buttons are available in the gutter. When I delete everything except the following, it still does not work:
When I add this same code to a new document, it is possible to fold. But I am reluctant to post the full stylesheet. There must be something in it tripping up oxygen's folding logic...
The code seems well-formed, the lines in the gutter indicating the extent of the currently focused element are working, and in oxygen for linux, the very same code can be folded. In oxygen for windows, however, it cannot. I have folding enabled in the settings and in fact, in the next tab, there is an xml file that folds nicely...
So I guess my question is: What factors can influence folding?
Best,
Andreas
why would there be occasions when oxygen seems not to recognize where it could fold my code?
I have a long xslt stylesheet where no folding triangle buttons are available in the gutter. When I delete everything except the following, it still does not work:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs"
version="2.0">
<xsl:variable name="identifiedAbbr">
<xsl:apply-templates select="/" mode="identify-abbr"/>
<xsl:message select="'INFO: identified abbreviations.'"/>
</xsl:variable>
<!-- identity transform -->
<xsl:template match="@*|node()" mode="identify-abbr">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="identify-abbr"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
The code seems well-formed, the lines in the gutter indicating the extent of the currently focused element are working, and in oxygen for linux, the very same code can be folded. In oxygen for windows, however, it cannot. I have folding enabled in the settings and in fact, in the next tab, there is an xml file that folds nicely...
So I guess my question is: What factors can influence folding?
Best,
Andreas