[isf-wifidog] Hotspot status XML + XSLT

Proulx François fproulx at lecameleon.net
Jeu 16 Juin 22:41:34 EDT 2005


Oh... Maybe it'd simpler for you guys if I send an example, since  
it's not yet on any production server.
My apologies for the UTF-8 conversion.

<?xml version="1.0"?>
<HotspotStatus>
   <GenerationDateTime>2005-06-17T02:06:58Z</GenerationDateTime>
   <Title>&#xCE;le sans fil: Points d'acc&#xE8;s les plus  
r&#xE9;cents</Title>
   <Description>La liste WiFiDog des points d'acc&#xE8;s les plus  
r&#xE9;cents ouverts par le r&#xE9;seau: &#xCE;le sans fil</Description>
   <DocumentVersion>1.0</DocumentVersion>
   <NetworkMetadata>
     <Name>&#xCE;le sans fil</Name>
     <WebsiteUrl>http://www.ilesansfil.org/</WebsiteUrl>
     <TechnicalEmail>tech at ilesansfil.org</TechnicalEmail>
     <ValidUsersCount>5064</ValidUsersCount>
     <OnlineUsersCount>0</OnlineUsersCount>
   </NetworkMetadata>
   <NodesMetadata>
     <NodesCount>2</NodesCount>
   </NodesMetadata>
   <NodesStatus>
     <Node>
       <Name>Caf&#xE9; l'Utopik / Parc &#xC9;milie-Gamelin</Name>
       <Status>down</Status>
       <Description>Caf&#xE9; / Bar / Salle de spectacle.  Le parc  
&#xC9;milie-Gamelin (aussi appel&#xE9; parc Berri) est &#xE9;galement  
couvert durant la saison estivale)</Description>
       <StreetAddress>552 Sainte-Catherine est</StreetAddress>
       <MapUrl>http://ca.maps.yahoo.com/maps_result?csz=Montreal 
+Quebec&amp;country=ca&amp;addr=552+Sainte-Catherine+east</MapUrl>
       <MassTransitInfo>M&#xE9;tro Berri-UQAM, sortir &#xE0; Sainte- 
Catherine et traverser la rue.</MassTransitInfo>
       <ContactPhoneNumber>514-844-1139</ContactPhoneNumber>
       <StreetAddress>552 Sainte-Catherine est</StreetAddress>
     </Node>
     <Node>
       <Name>Parc Jean-Marie Lamonde</Name>
       <Status>down</Status>
       <StreetAddress>Coin Villeray / Ch&#xE2;teaubriand</StreetAddress>
       <MapUrl>http://ca.maps.yahoo.com/maps_result?csz=Montreal 
+Quebec&amp;country=ca&amp;addr=7615+de+Chateaubriand</MapUrl>
       <ContactEmail>bock at step.polymtl.ca</ContactEmail>
       <StreetAddress>Coin Villeray / Ch&#xE2;teaubriand</StreetAddress>
     </Node>
   </NodesStatus>
</HotspotStatus>

On 16-Jun-2005, at 22:29 , Proulx François wrote:

> Here's my latest changelog.
>
> 2005-06-16 Francois Proulx <francois.proulx at gmail.com>
>     * Added XML output format for hotspot_status.php
>     * Rough draft v1.0
>     * TODO move to different classes once stabilized
>     * Can use XSLT, if activated ( XSLT_SUPPORT constant )
>     * ie : http://wifidog-auth.org/hotspot_status.php? 
> format=XML&xslt=http://wifidog-auth.org/xslt/hotspot_status.xsl
>     * or simply : http://wifidog-auth.org/hotspot_status.php? 
> format=XML
>
>
> It works great, but it's a rough draft, I'm open to comments on the  
> schema. We will have to make it cleaner... (ie move what's possible  
> in different classes : Network::export($dom, $parent_node) etc... )
>
> I wrote a proof of concept XSL, it worked by I don't much about  
> XSL. If anybody can give a hand...
>
> PS : It's not on the live server yet. Benoit should have look, by  
> saturday...
>
> See ya
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog

-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20050616/3d147c6b/attachment.htm


More information about the WiFiDog mailing list