svn commit: r1928410 - apr/site/trunk/xdocs/stylesheets
| Newsgroups | gmane.comp.apache.apr.cvs |
|---|---|
| Message-ID | <175775725675.453589.14830557676442647536@svn02-us-east.apache.org> |
Author: dsahlberg
Date: Sat Sep 13 09:54:16 2025
New Revision: 1928410
Log:
In site/trunk
Remove unused macro relativize
* xdocs/stylesheets/site.vsl
As above
Modified:
apr/site/trunk/xdocs/stylesheets/site.vsl
Modified: apr/site/trunk/xdocs/stylesheets/site.vsl
==============================================================================
--- apr/site/trunk/xdocs/stylesheets/site.vsl Sat Sep 13 09:44:28 2025 (r1928409)
+++ apr/site/trunk/xdocs/stylesheets/site.vsl Sat Sep 13 09:54:16 2025 (r1928410)
@@ -11,21 +11,6 @@
##
## This is where the macros live
##
-#macro ( relativise $elem )
-#if ($elem.getAttribute("href"))
-#set ($href = $elem.getAttributeValue("href"))
-#if ($href.startsWith("/"))
-#set ($elem = $elem.setAttribute("href", "$relativePath$href"))
-#end
-#end
-#if ($elem.getAttribute("src"))
-#set ($href = $elem.getAttributeValue("src"))
-#if ($href.startsWith("/"))
-#set ($elem = $elem.setAttribute("src", "$relativePath$href"))
-#end
-#end
-#end
-##
##
#macro ( metaauthor $author $email )
<meta name="author" content="$author"><meta name="email" content="$email">
@@ -53,11 +38,7 @@
<h2><strong>$heading</strong></h2>
#end
<blockquote>
-## First, walk the tree and relativise any absolute path URI references
-##foreach ( $tw in $treeWalk.allElements($section) )
-##relativise ($tw)
-##end
-## Second, output the section-level children with transformers
+## Output the section-level children with transformers
#foreach ( $items in $section.getChildren() )
#if ($items.getName().equals("section"))
#set ($sublevel = $level + 1)
@@ -83,9 +64,6 @@ $items
<nav id="site-nav-menu">
#set ($menus = $project.selectNodes("body/menu"))
#foreach ( $menu in $menus )
-##foreach ( $tw in $menu.selectNodes("//*") )
-##relativise ($tw)
-##end
#set ($title = $menu.getChild("title"))
#if ($title.getAttributeValue("href"))
<p><b><a