XSLT Google Directory Category Hack

Paul Prescod posted the following, cool XSLT hack to FoRK. It uses Google’s XML interface to list in which Mozilla directories a query subject appears.

<?xml version="1.0"?>

<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xsl:version="1.0">

    <ul>

     <xsl:for-each

select="document('http://www.google.com/xml?q=whump.com')//CAT/GN">

         <li>

         <xsl:value-of select="."/>

         </li>

     </xsl:for-each>

     </ul>

</html>

Possibly Related posts (machine generated):

  1. PHP from XSLT
  2. The Parameter Envelope Pattern
  3. Conway’s Life in XSLT
  4. Emulating AxKit/Cocoon 1.0 in PHP with DOMXML
  5. Keyed lookups in XSLT 1.0

More like this: , .