Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Julien Tremblay McLellan
XSweet
Commits
71bee4ca
Commit
71bee4ca
authored
Aug 13, 2018
by
Wendell Piez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating list inferencer
#152
parent
83a49088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
applications/list-promote/mark-lists.xsl
applications/list-promote/mark-lists.xsl
+2
-1
No files found.
applications/list-promote/mark-lists.xsl
View file @
71bee4ca
...
...
@@ -78,7 +78,8 @@
<xsl:function
name=
"xsw:list-level"
as=
"xs:integer?"
>
<xsl:param
name=
"whose"
as=
"element()"
/>
<xsl:variable
name=
"list-assignment"
select=
"tokenize($whose/@style,'\s*;\s*')[matches(.,'xsweet-list-level:')]"
/>
<!--<xsl:variable name="list-assignment" select="tokenize($whose/@style,'\s*;\s*')[matches(.,'xsweet-list-level:')]"/>-->
<xsl:variable
name=
"list-assignment"
select=
"$whose/@data-xsweet-list-level"
/>
<!-- level is only the value, ordinarily a whole number (zero or positive integer) -->
<xsl:sequence
select=
"if (exists($list-assignment)) then xs:integer(replace($list-assignment,'^.*list-level:\s*','')) else ()"
/>
</xsl:function>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment