[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>Île sans fil: Points d'accès les plus
récents</Title>
<Description>La liste WiFiDog des points d'accès les plus
récents ouverts par le réseau: Île sans fil</Description>
<DocumentVersion>1.0</DocumentVersion>
<NetworkMetadata>
<Name>Î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é l'Utopik / Parc Émilie-Gamelin</Name>
<Status>down</Status>
<Description>Café / Bar / Salle de spectacle. Le parc
Émilie-Gamelin (aussi appelé parc Berri) est également
couvert durant la saison estivale)</Description>
<StreetAddress>552 Sainte-Catherine est</StreetAddress>
<MapUrl>http://ca.maps.yahoo.com/maps_result?csz=Montreal
+Quebec&country=ca&addr=552+Sainte-Catherine+east</MapUrl>
<MassTransitInfo>Métro Berri-UQAM, sortir à 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âteaubriand</StreetAddress>
<MapUrl>http://ca.maps.yahoo.com/maps_result?csz=Montreal
+Quebec&country=ca&addr=7615+de+Chateaubriand</MapUrl>
<ContactEmail>bock at step.polymtl.ca</ContactEmail>
<StreetAddress>Coin Villeray / Châ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