File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,25 +4,33 @@ class EntriesFilter < Docs::EntriesFilter
44 def get_name
55 name = super
66 name . remove! 'XPath.'
7+ name . remove! 'Reference.'
8+ name . remove! 'Guides.'
79 name . remove! 'XSLT.'
810 name . remove! 'Axes.'
911 name . remove! 'Element.'
10- name . prepend 'xsl:' if slug =~ /XSLT\/ Element/
12+ name . prepend 'xsl:' if slug =~ /XSLT\/ (Reference \/ )? Element/
1113 name << '()' if name . gsub! ( 'Functions.' , '' )
1214 name
1315 end
1416
1517 def get_type
16- if slug =~ /XSLT\/ Element/
18+ if slug =~ /XSLT\/ (Reference \/ )? Element/
1719 'XSLT Elements'
18- elsif slug . start_with? ( 'XPath/Axes' )
20+ elsif slug =~ / \A XPath \/ (Reference \/ )?Axes/
1921 'XPath Axes'
20- elsif slug . start_with? ( 'XPath/Functions' )
22+ elsif slug =~ / \A XPath \/ (Reference \/ )?Functions/
2123 'XPath Functions'
2224 else
2325 'Miscellaneous'
2426 end
2527 end
28+
29+ # The axes are documented on a single page, one <dt> per axis
30+ def additional_entries
31+ return [ ] unless slug =~ /\A XPath\/ (Reference\/ )?Axes\z /
32+ css ( 'dt[id]' ) . map { |node | [ node [ 'id' ] , node [ 'id' ] , 'XPath Axes' ] }
33+ end
2634 end
2735 end
2836end
Original file line number Diff line number Diff line change 11module Docs
22 class XsltXpath < Mdn
3- # release = '2022-09-06 '
3+ # release = '2026-11-29 '
44 self . name = 'XSLT & XPath'
55 self . slug = 'xslt_xpath'
6- self . base_url = 'https://developer.mozilla.org/en-US/docs/Web'
6+ self . base_url = 'https://developer.mozilla.org/en-US/docs/Web/XML '
77 self . root_path = '/XSLT'
88 self . initial_paths = %w( /XPath )
99
You can’t perform that action at this time.
0 commit comments