I'm having trouble setting up P3P compliancy on my website and was hoping for some help. I followed directions on several websites but I'm just not getting it right. I'm using IBM's free P3P creator. This is the error I'm getting when running
http://www.w3.org/P3P/validator.html. I can't get it to work for Steps 1-3, Setp 2 and Step 3 and need to get all of them working (for affiliate compliancy):
Step 1: /w3c/p3p.xml Validation
URI:
http://www.mydomain.com/w3c/p3p.xmlStep 1-1: Access check
/w3c/p3p.xml can be retrieved.
Message: The content type of /w3c/p3p.xml is text/xml.
Step 1-2: Syntax check
/w3c/p3p.xml has no syntax errors.
Step 1-3: Policy URI check
/w3c/p3p.xml has some warnings or errors.
Error: The URI fragment identifier (#xxx) is necessary to specify a POLICY element in a POLICIES element.
P3P policy for
http://www.mydomain.com/ is [
http://www.mydomain.com/w3c/policy.xml] --------------------------
----------
----------
----------
----------
----------
----
Step 2: HTTP Protocol Validation ( HTTP headers )
HTTP headers have no P3P: header.
--------------------------
----------
----------
----------
----------
----------
----
Step 3: HTML File Validation
HTML document has no P3P compliant link tags.
Message: No valid P3P compliant <link> element.
--------------------------
----------
----------
----------
----------
----------
----
Here's my directory structure:
w3c
|__p3p.xml
|__policy.xml
|__privacy.html
--------------------------
--------
This is what I'm putting at the top of every page on my website:
<HEAD>
<link rel="P3Pv1" href="
http://www.mydomain.com/w3c/p3p.xml">
</HEAD>
--------------------------
--------
This is my p3p.xml:
<META xmlns="
http://www.w3.org/2002/01/P3Pv1">
<POLICY-REFERENCES>
<POLICY-REF about="
http://www.mydomain.com/w3c/policy.xml"
>
<INCLUDE>/*</INCLUDE>
<COOKIE-INCLUDE/>
</POLICY-REF>
</POLICY-REFERENCES>
</META>
--------------------------
--------
And this is my policy.xml:
<?xml version="1.0"?>
<POLICIES xmlns="
http://www.w3.org/2002/01/P3Pv1">
<!-- Generated by IBM P3P Policy Editor version Beta 1.12 built 2/27/04 1:19 PM -->
<!-- Expiry information for this policy -->
<EXPIRY date="Fri, 01 Jan 2010 12:00:00 GMT"/>
<POLICY
name="P3P"
discuri="
http://www.mydomain.com/w3c/privacy.html"
xml:lang="en">
<!-- Description of the entity making this policy statement. -->
<ENTITY>
<DATA-GROUP>
<DATA ref="#business.name">Acme Inc</DATA>
<DATA ref="#business.contact-inf
o.online.e
mail">cust
omerservic
e@mydomain
.com</DATA
>
<DATA ref="#business.contact-inf
o.online.u
ri">
http://www.mydomain.com</D
ATA>
<DATA ref="#business.contact-inf
o.telecom.
telephone.
number">1-
999-999-99
99</DATA>
<DATA ref="#business.contact-inf
o.postal.o
rganizatio
n">Acme Inc</DATA>
<DATA ref="#business.contact-inf
o.postal.s
treet">999
Test Street</DATA>
<DATA ref="#business.contact-inf
o.postal.c
ity">New York</DATA>
<DATA ref="#business.contact-inf
o.postal.s
tateprov">
NY</DATA>
<DATA ref="#business.contact-inf
o.postal.p
ostalcode"
>12345</DA
TA>
<DATA ref="#business.contact-inf
o.postal.c
ountry">US
A</DATA>
</DATA-GROUP>
</ENTITY>
<!-- Disclosure -->
<ACCESS><all/></ACCESS>
<!-- Disputes -->
<DISPUTES-GROUP>
<DISPUTES resolution-type="service" service="
http://mydomain.com/customerservice.html" short-description="New Dispute">
<LONG-DESCRIPTION></LONG-D
ESCRIPTION
>
<REMEDIES><correct/></REME
DIES>
</DISPUTES>
</DISPUTES-GROUP>
<!-- Statement for group "Acme Inc" -->
<STATEMENT>
<EXTENSION optional="yes">
<GROUP-INFO xmlns="
http://www.software.ibm.com/P3P/editor/extension-1.0.html" name="Acme Inc"/>
</EXTENSION>
<!-- No consequence specified -->
<!-- Use (purpose) -->
<PURPOSE><admin/><contact required="opt-in"/><curren
t/><develo
p/><pseudo
-analysis/
><pseudo-d
ecision/><
individual
-analysis/
><individu
al-decisio
n/><tailor
ing required="opt-in"/><histor
ical/><tel
emarketing
required="opt-in"/></PURPO
SE>
<!-- Recipients -->
<RECIPIENT><ours/></RECIPI
ENT>
<!-- Retention -->
<RETENTION><indefinitely/>
</RETENTIO
N>
<!-- Base dataschema elements. -->
<DATA-GROUP>
<DATA ref="#dynamic.clickstream"
/>
<DATA ref="#dynamic.http"/>
<DATA ref="#dynamic.clientevents
"/>
<DATA ref="#dynamic.searchtext"/
>
<DATA ref="#dynamic.interactionr
ecord"/>
<DATA ref="#user.name"/>
<DATA ref="#user.jobtitle"/>
<DATA ref="#user.business-info"/
>
<DATA ref="#user.employer"/>
<DATA ref="#user.home-info"/>
<DATA ref="#business.name"/>
<DATA ref="#dynamic.miscdata"><C
ATEGORIES>
<physical/
></CATEGOR
IES></DATA
>
<DATA ref="#dynamic.miscdata"><C
ATEGORIES>
<online/><
/CATEGORIE
S></DATA>
<DATA ref="#dynamic.miscdata"><C
ATEGORIES>
<purchase/
></CATEGOR
IES></DATA
>
</DATA-GROUP>
</STATEMENT>
<!-- End of policy -->
</POLICY>
</POLICIES>
What am I missing? I'm hoping someone can fluently see what the problem is since this is the first time I'm doing this. I would appreciate any help.
Start Free Trial