The following is incorrect processing:
sabcmd 0.43 (August 21, 2000)

prompt:> sabcmd.exe natural-language.xsl p3p-statement.xml
<html xmlns:p3p="http://www.w3.org/2000/P3Pv1"><p>CatalogExample
    has the following privacy practices.</p></html>

The following is correct processing (from XT):

prompt:> xt p3p-statement.xml natural-language.xsl
<html xmlns:p3p="http://www.w3.org/2000/P3Pv1">
<p>CatalogExample
    has the following privacy practices.</p>
</html>

__
[1] natural-language.xsl
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:p3p="http://www.w3.org/2000/P3Pv1">

<xsl:template match="/">
    <html>
       <xsl:apply-templates select="/p3p:POLICY"/>
    </html>
</xsl:template>

<xsl:template match="p3p:POLICY">
    <p><xsl:value-of 
select="p3p:ENTITY/p3p:DATA-GROUP/p3p:DATA[@ref='#business.name']" />
    has the following privacy practices.</p>
</xsl:template>

</xsl:stylesheet>

__
[2] p3p-statement.xml
<POLICY xmlns="http://www.w3.org/2000/P3Pv1"
   discuri="http://www.catalog.example.com/PrivacyPracticeBrowsing.html">
  <ENTITY>
   <DATA-GROUP>
    <DATA ref="#business.name">CatalogExample</DATA>
    <DATA ref="#business.contact-info.postal.street.line1">4000 Lincoln 
Ave.</DATA>
    <DATA ref="#business.contact-info.postal.city">Birmingham</DATA>
    <DATA ref="#business.contact-info.postal.stateprov">MI</DATA>
    <DATA ref="#business.contact-info.postal.postalcode">48009</DATA>
    <DATA ref="#business.contact-info.postal.countrycode">USA</DATA>
    <DATA ref="#business.contact-info.online.email">[EMAIL PROTECTED]</DATA>
    <DATA ref="#business.contact-info.telecom.telephonenum.intcode">1</DATA>
    <DATA ref="#business.contact-info.telecom.telephonenum.loccode">248</DATA>
    <DATA 
ref="#business.contact-info.telecom.telephonenum.number">3926753</DATA>
   </DATA-GROUP>
  </ENTITY>
  <DISPUTES-GROUP>
   <DISPUTES resolution-type="independent"
     service="http://www.PrivacySeal.example.org"
     short-description="PrivacySeal.example.org">
    <REMEDIES><correct/></REMEDIES>
    <IMG src="http://www.PrivacySeal.example.org/Logo.gif"/>
   </DISPUTES>
  </DISPUTES-GROUP>
  <ACCESS><nonident/></ACCESS>
  <STATEMENT>
   <PURPOSE><admin/><develop/></PURPOSE>
   <RECIPIENT><ours/></RECIPIENT>
   <RETENTION><stated-purpose/></RETENTION>
   <DATA-GROUP>
    <DATA ref="#dynamic.clickstream.server"/>
    <DATA ref="#dynamic.http.useragent"/>
   </DATA-GROUP>
  </STATEMENT>
</POLICY>

_______________________
Regards,          http://www.mit.edu/~reagle/
Joseph Reagle     E0 D5 B2 05 B6 12 DA 65  BE 4D E3 C1 6A 66 25 4E
MIT LCS Research Engineer at the World Wide Web Consortium.

* This email is from an independent academic account and is
not necessarily representative of my affiliations.


Reply via email to