Date: Tue, 6 Jan 2004 21:35:14 +0100 (CET) From: Martin Horcicka <horcicka@freebsd.cz> To: freebsd-doc@freebsd.org Subject: List of mirrors on home page Message-ID: <20040106210551.N60079@www.freebsd.cz>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-466879252-1073421314=:60079 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, Rudolf Cejka found a problem with the list of mirrors on home page. When I export fresh doc and www trees from CVS and do "cd www/en; make index.html" then I get empty list of mirrors: >From index.html: <font color="#990000"><b>Select a server near you:</b></font><br /> <select name="goto"> </select><input type="submit" value=" Go " /><br /> <font color="#990000"><b>Language:</b></font> <a The problem seems to be in the XSLT template html-index-mirrors-options-list defined in www/share/sgml/includes.misc.xsl. When I add the -v option to XSLTPROCOPTS the relevant part of the output is: call-template: name html-index-mirrors-options-list Handling param mirrors.xml select $mirrors.xml Building variable mirrors.xml select $mirrors.xml Evaluating variable mirrors.xml Lookup variable mirrors.xml found variable mirrors.xml Object is a string : /home/horcicka/tmp/www/en/../../doc/./sh... applying template 'html-index-mirrors-options-list' Registering param mirrors.xml param mirrors.xml defined by caller xsltForEach: select document($mirrors.xml)/mirrors/entry[country/@role != 'primary' and host[@type = 'www']/url[@proto = 'httpv6']] Lookup variable mirrors.xml found variable mirrors.xml Initializing keys on /home/horcicka/tmp/www/en/../../doc/./share/sgml/mirrors.xml xsltForEach: select evaluates to 0 nodes xsltForEach: select document($mirrors.xml)/mirrors/entry[country/@role != 'primary' and host[@type = 'www']/url[@proto = 'http']] Lookup variable mirrors.xml found variable mirrors.xml xsltForEach: select evaluates to 0 nodes call-template returned: name html-index-mirrors-options-list When the only thing I do is applying attached patch - i.e. instead of: country/@role != 'primary' write: not(country/@role = 'primary') in the definition of html-index-mirrors-options-list template then everything works fine: call-template: name html-index-mirrors-options-list Handling param mirrors.xml select $mirrors.xml Building variable mirrors.xml select $mirrors.xml Evaluating variable mirrors.xml Lookup variable mirrors.xml found variable mirrors.xml Object is a string : /home/horcicka/tmp/www/en/../../doc/./sh... applying template 'html-index-mirrors-options-list' Registering param mirrors.xml param mirrors.xml defined by caller xsltForEach: select document($mirrors.xml)/mirrors/entry[not(country/@role = 'primary') and host[@type = 'www']/url[@proto = 'httpv6']] Lookup variable mirrors.xml found variable mirrors.xml Initializing keys on /home/horcicka/tmp/www/en/../../doc/./share/sgml/mirrors.xml xsltForEach: select evaluates to 7 nodes Has anyone met this problem as well? On www.FreeBSD.org everything looks fine so I suppose the problem can be on our machine. We use libxslt-1.1.1. Martin --0-466879252-1073421314=:60079 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch Content-Transfer-Encoding: BASE64 Content-ID: <20040106213514.Y60079@www.freebsd.cz> Content-Description: Content-Disposition: attachment; filename=patch LS0tIHd3dy9zaGFyZS9zZ21sL2luY2x1ZGVzLm1pc2MueHNsLm9yaWcJVHVl IEphbiAgNiAyMToxODoyOSAyMDA0DQorKysgd3d3L3NoYXJlL3NnbWwvaW5j bHVkZXMubWlzYy54c2wJVHVlIEphbiAgNiAyMToxOToyMyAyMDA0DQpAQCAt MTA1LDcgKzEwNSw3IEBADQogICA8eHNsOnRlbXBsYXRlIG5hbWU9Imh0bWwt aW5kZXgtbWlycm9ycy1vcHRpb25zLWxpc3QiPg0KICAgICA8eHNsOnBhcmFt IG5hbWU9Im1pcnJvcnMueG1sIiBzZWxlY3Q9IicnIiAvPg0KIA0KLSAgICA8 eHNsOmZvci1lYWNoIHNlbGVjdD0iZG9jdW1lbnQoJG1pcnJvcnMueG1sKS9t aXJyb3JzL2VudHJ5W2NvdW50cnkvQHJvbGUgIT0gJ3ByaW1hcnknIGFuZA0K KyAgICA8eHNsOmZvci1lYWNoIHNlbGVjdD0iZG9jdW1lbnQoJG1pcnJvcnMu eG1sKS9taXJyb3JzL2VudHJ5W25vdChjb3VudHJ5L0Byb2xlID0gJ3ByaW1h cnknKSBhbmQNCiAgICAgICAgICAgICAgICAgICAgICAgICAgIGhvc3RbQHR5 cGUgPSAnd3d3J10vdXJsW0Bwcm90byA9ICdodHRwdjYnXV0iPg0KICAgICAg IDx4c2w6c29ydCBzZWxlY3Q9ImNvdW50cnkiIC8+DQogDQpAQCAtMTIzLDcg KzEyMyw3IEBADQogICAgICAgPC94c2w6Zm9yLWVhY2g+DQogICAgIDwveHNs OmZvci1lYWNoPg0KIA0KLSAgICA8eHNsOmZvci1lYWNoIHNlbGVjdD0iZG9j dW1lbnQoJG1pcnJvcnMueG1sKS9taXJyb3JzL2VudHJ5W2NvdW50cnkvQHJv bGUgIT0gJ3ByaW1hcnknIGFuZA0KKyAgICA8eHNsOmZvci1lYWNoIHNlbGVj dD0iZG9jdW1lbnQoJG1pcnJvcnMueG1sKS9taXJyb3JzL2VudHJ5W25vdChj b3VudHJ5L0Byb2xlID0gJ3ByaW1hcnknKSBhbmQNCiAgICAgICAgICAgICAg ICAgICAgICAgICAgIGhvc3RbQHR5cGUgPSAnd3d3J10vdXJsW0Bwcm90byA9 ICdodHRwJ11dIj4NCiAgICAgICA8eHNsOnNvcnQgc2VsZWN0PSJjb3VudHJ5 IiAvPg0KIA0K --0-466879252-1073421314=:60079--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040106210551.N60079>