diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-01-11 11:11:11 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-01-15 22:28:45 +0100 |
commit | 484b3f78d5bc5a2ae47c4f52d0bb4c5ead80aa2d (patch) | |
tree | 72ab830f9f2951dc4e05799ff52bf56ded2e3422 /xsl | |
parent | devbook-guide: Explain <codesample>. (diff) | |
download | devmanual-484b3f78d5bc5a2ae47c4f52d0bb4c5ead80aa2d.tar.gz devmanual-484b3f78d5bc5a2ae47c4f52d0bb4c5ead80aa2d.tar.bz2 devmanual-484b3f78d5bc5a2ae47c4f52d0bb4c5ead80aa2d.zip |
xsl/lang.highlight.c.xsl: Define the myPos variable.
This was undeclared, leading to a runtime error:
runtime error: file xsl/lang.highlight.c.xsl line 35 element variable
Variable 'myPos' has not been declared.
XPath error : Undefined variable
runtime error: file xsl/lang.highlight.c.xsl line 35 element variable
Failed to evaluate the expression of variable 'quotePos'.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/lang.highlight.c.xsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xsl/lang.highlight.c.xsl b/xsl/lang.highlight.c.xsl index d2d115e..730182c 100644 --- a/xsl/lang.highlight.c.xsl +++ b/xsl/lang.highlight.c.xsl @@ -32,6 +32,7 @@ <!-- Scan for quotes... --> <xsl:for-each select="exslt:node-set($tokenizedData)"> + <xsl:variable name="myPos" select="position()"/> <xsl:variable name="quotePos" select="count(../*[@delimiter='"' and position() < $myPos])"/> <xsl:variable name="commentOpen" select="count(str:tokenize_plasmaroo(substring-before($data, concat(' ', '/*'))))"/> <xsl:variable name="commentClosed" select="count(str:tokenize_plasmaroo(substring-before($data, concat(' ', '*/'))))"/> |