FOXY configuration info
Table of Contents
HTTP PatternsTransformation rulesRule groups

FOXY - Home

Note: This is an auto-generated description of FOXY's example configuration files.



FOXY patterns

If the HTTP-request points to host:portand the URL-paththen
www.infosys.tuwien.ac.at:80equals '/'
  • apply rule-group exampleLinkExtractor
foxy.sourceforge.net:80startsWith '/examples/form/index.html'
  • apply rule-group exampleForm
foxy.sourceforge.net:80startsWith '/examples/gallery/index.html'
  • apply rule-group exampleGallery
www.tuwien.ac.at:80startsWith '/'
  • apply rule-group exampleLinkExtractor
www.gmx.com:allstartsWith '/'
  • apply rule-group gmx.wap.login
Constraints:
  • HTTP-Header-field user-agent containsRegExp '.*(wap|WAP|CLDC|MIDP|MMP).*'
www.gmx.com:allstartsWith '/'
  • apply rule-group gmx.com
www.gmx.net:allstartsWith '/'
  • apply rule-group gmx.wap.menu
Constraints:
  • HTTP-Header-field user-agent containsRegExp '.*(wap|WAP|CLDC|MIDP|MMP).*'
www.gmx.net:allstartsWith '/'
  • apply rule-group gmx.net
www.microsoft.com:80startsWith '/'
  • apply rule-group microsoft
www.yahoo.com:80equals '/'
  • redirect to 'http://sourceforge.net/projects/foxy/'
www.sun.com:80equals '/'
  • apply rule-group foxyInfo
www.google.com:80startsWith '/'
  • set HTTP-(request-)header-field User-Agent to 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'
www.google.de:80startsWith '/'
  • set HTTP-(request-)header-field User-Agent to 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'
www.google.at:80startsWith '/'
  • set HTTP-(request-)header-field User-Agent to 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'
www.foxy.org:80startsWith '/'
  • redirect to 'http://foxy.sourceforge.net/'
www.foxy.com:allstartsWith '/'
  • redirect to 'http://foxy.sourceforge.net/'
www.foxy.net:allstartsWith '/'
  • redirect to 'http://foxy.sourceforge.net/'

top

FOXY rules

Rule IDWhat to do
extractLinks
    XQuery-Transformation, import from file 'templates/extractLinks.xql'
addFilteredByFoxy
    a detailed description of LayoutPage is not yet available
prepareGMX
    XSL-Transformation, import from file 'templates/prepareGMX.xsl'
splitGMX
    a detailed description of LayoutPage is not yet available
tableSplit
    XSL-Transformation, import from file 'templates/tableSplit.xsl'
splitGallery
    a detailed description of LayoutPage is not yet available
splitForm
    a detailed description of LayoutPage is not yet available
addFoxyPresents
    a detailed description of LayoutPage is not yet available
removeEntities
    search for &[^;]*; replace with
gmx2table
    XQuery-Transformation, script:
    xquery version "1.0"; document { <html> { let $h := //*[name(.)='head'] return <head>{$h}</head> } <body> { let $l := //*[name(.)='form' and @name='login'] (: let $p := //*[name(.)='li' and @class='product'] :) let $t := //*[name(.)='li' and @class='topic'] let $s := //*[name(.)='li' and @class='shopping'] return <table border="1"> <tr><th colspan="3">GMX - Login and Menus</th></tr> <tr><td width="33%">Login</td><!--td>Produkte</td--><td>Themen</td><td>Shopping</td> </tr> <tr> <td>{$l}</td><!--td>{$p}</td--><td>{$t}</td><td>{$s}</td></tr> </table> } </body> </html> }
gmx2wapMenu
  • set HTTP-(response-)header-field Content-Type to 'text/vnd.wap.wml'
  • set HTTP-(response-)header-field Connection to 'close'
  • XQuery-Transformation, import from file 'templates/gmx2wapMenu.xql'
gmx2wapLogin
  • set HTTP-(response-)header-field Content-Type to 'text/vnd.wap.wml'
  • set HTTP-(response-)header-field Connection to 'close'
  • XQuery-Transformation, import from file 'templates/gmx2waplogin.xql'
html2wml
    XSL-Transformation, import from file 'templates/html2wml.xsl'
win2lin
    search for Windows replace with Linux
mic2gnu
    search for Microsoft replace with GNU

top

FOXY rule groups

Rule-Group ID includes rules
foxyInfo
  1. addFoxyPresents
  2. addFilteredByFoxy
exampleGallery
  1. tableSplit
  2. splitGallery
exampleForm
  1. splitForm
exampleLinkExtractor
  1. removeEntities
  2. extractLinks
gmx.wap.login
  1. removeEntities
  2. gmx2wapLogin
  3. html2wml
gmx.wap.menu
  1. removeEntities
  2. gmx2wapMenu
  3. html2wml
gmx.com
  1. removeEntities
  2. gmx2table
gmx.net
  1. removeEntities
  2. prepareGMX
  3. splitGMX
microsoft
  1. mic2gnu
  2. win2lin

top