How do I do guid elements and need help with rel="self"

  • cerio
  • Proficient
  • Proficient
  • User avatar
  • Posts: 263
  • Loc: UK

Post 3+ Months Ago

Hi.
I created an RSS feed for my website but, although it validates, there are two things thrown up that I don't know how to deal with. One is guid elements and the other is rel="self"... see the validation report and the rss feed .xml below (I removed a few of the items, just to make it shorter for on here).

I am looking for step by step instructions of how to do the guid elements and how to sort the rel="self" thing.

Validation report
Code: [ Select ]
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

  # line 6, column 86: "self" link references a non-Atom representation: application/rss.xml [help]

  ... rel="self" type="application/rss.xml" />
                         ^

# line 6, column 86: Self reference doesn't match document location [help]

  ... rel="self" type="application/rss.xml" />
                         ^

# line 37, column 1: item should contain a guid element (27 occurrences) [help]

      </item>

Source: http://www.wafuku.co.uk/rss.xml
  1. This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
  2.   # line 6, column 86: "self" link references a non-Atom representation: application/rss.xml [help]
  3.   ... rel="self" type="application/rss.xml" />
  4.                          ^
  5. # line 6, column 86: Self reference doesn't match document location [help]
  6.   ... rel="self" type="application/rss.xml" />
  7.                          ^
  8. # line 37, column 1: item should contain a guid element (27 occurrences) [help]
  9.       </item>
  10. Source: http://www.wafuku.co.uk/rss.xml


Below is the rss.xml code

Code: [ Select ]
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. 
  3. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  4. 
  5. <channel>
  6. <atom:link href="rss.xml" rel="self" type="application/rss+xml" />
  7. 
  8. <title>Wafuku Kimonos New Items</title>
  9. 
 10. <link>http://www.wafuku.co.uk</link>
 11. 
 12. <description>New items on wafuku.co.uk</description>
 13. 
 14. <language>en</language>
 15. 
 16. <generator>http://www.wafuku.co.uk</generator>
 17. 
 18. <image>
 19. 
 20. <url>http://www.wafuku.co.uk/images/wafrss.png</url>
 21. 
 22. <title>Wafuku Kimonos New Items</title>
 23. 
 24. <link>http://www.wafuku.co.uk</link>
 25. 
 26. </image>
 27. 
 28. <pubDate>Sat, 23 Apr 2011 01:00:00 +0100</pubDate>
 29. 
 30. <item>
 31. <category>Misc Items</category>
 32. <title>2 Japanese Itomaki xi212</title>
 33. 
 34. <link>http://wafuku.co.uk/index.php?c=888&amp;p=102606</link>
 35. 
 36. <description>2 Japanese Itomaki - thread spool</description>
 37. </item>
 38.
 39. <item>
 40. <category>Samurai Items</category>
 41. <title>Tsuba Sword Guard sx8</title>
 42. 
 43. <link>http://wafuku.co.uk/index.php?c=30&amp;p=102605</link>
 44. 
 45. <description>Tsuba Sword Guard</description>
 46. </item>
 47.
 48. <item>
 49. <category>Footwear Boots</category>
 50. <title>Jika Tabi 24cm fb3</title>
 51. 
 52. <link>http://wafuku.co.uk/index.php?c=45&amp;p=102604</link>
 53. 
 54. <description>Jika Tabi 24cm</description>
 55. </item>
 56.
 57. <item>
 58. <category>Footwear Boots</category>
 59. <title>Jika Tabi 26cm fb2</title>
 60. 
 61. <link>http://wafuku.co.uk/index.php?c=45&amp;p=102603</link>
 62. 
 63. <description>Jika Tabi 26cm</description>
 64. </item>
 65.
 66. <item>
 67. <category>Women's Clothes Haori</category>
 68. <title>Leaf Squares Haori wh586</title>
 69. 
 70. <link>http://wafuku.co.uk/index.php?c=38&amp;p=102599</link>
 71. 
 72. <description>Leaf Squares Haori</description>
 73. </item>
 74.
 75. <item>
 76. <category>Obi Hanhaba</category>
 77. <title>Noh Characters Hanhaba Obi oh52</title>
 78. 
 79. <link>http://wafuku.co.uk/index.php?c=62&amp;p=102600</link>
 80. 
 81. <description>Noh Characters Hanhaba Obi</description>
 82. </item>
 83.
 84. <item>
 85. <category>Obi Hanhaba</category>
 86. <title>Glinting Loopy Waves Hanhaba Obi oh53</title>
 87. 
 88. <link>http://wafuku.co.uk/index.php?c=62&amp;p=102601</link>
 89. 
 90. <description>Glinting Loopy Waves Hanhaba Obi</description>
 91. </item>
 92.
 93. <item>
 94. <category>Unisex - Jinbei</category>
 95. <title>Ukiyoe Jinbei Jacket uhj3</title>
 96. 
 97. <link>http://wafuku.co.uk/index.php?c=2100&amp;p=102596</link>
 98. 
 99. <description>Ukiyoe Jinbei Jacket</description>
100. </item>
101.
102. <item>
103. <category>Unisex - Hanten</category>
104. <title>Brick Wall Hanten uha3</title>
105. 
106. <link>http://wafuku.co.uk/index.php?c=2098&amp;p=102598</link>
107. 
108. <description>Ukiyoe Jinbei Jacket</description>
109. </item>
110.
111. <item>
112. <category>Unisex - Hanten</category>
113. <title>Lined Hanten uha2</title>
114. 
115. <link>http://wafuku.co.uk/index.php?c=2098&amp;p=102597</link>
116. 
117. <description>Lined Hanten Jacket</description>
118. </item>
119.
120. <item>
121. <category>Buddhist Clothing</category>
122. <title> Buddhist Priest's Wa Kesa bc17</title>
123. 
124. <link>http://wafuku.co.uk/index.php?c=80&amp;p=102602</link>
125. 
126. <description>Buddhist Priest's Wa Kesa</description>
127. </item>
128.
129. <item>
130. <category>Children's Japanese Clothes</category>
131. <title>Bugs Galore Jinbei &amp; Shorts Set cx11</title>
132. 
133. <link>http://wafuku.co.uk/index.php?c=2082&amp;p=102594</link>
134. 
135. <description>Bugs Galore Jinbei &amp; Shorts Set </description>
136. </item>

272. 
273. </channel>
274. 
275. </rss>
  1.   1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2.   2. 
  3.   3. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  4.   4. 
  5.   5. <channel>
  6.   6. <atom:link href="rss.xml" rel="self" type="application/rss+xml" />
  7.   7. 
  8.   8. <title>Wafuku Kimonos New Items</title>
  9.   9. 
  10.  10. <link>http://www.wafuku.co.uk</link>
  11.  11. 
  12.  12. <description>New items on wafuku.co.uk</description>
  13.  13. 
  14.  14. <language>en</language>
  15.  15. 
  16.  16. <generator>http://www.wafuku.co.uk</generator>
  17.  17. 
  18.  18. <image>
  19.  19. 
  20.  20. <url>http://www.wafuku.co.uk/images/wafrss.png</url>
  21.  21. 
  22.  22. <title>Wafuku Kimonos New Items</title>
  23.  23. 
  24.  24. <link>http://www.wafuku.co.uk</link>
  25.  25. 
  26.  26. </image>
  27.  27. 
  28.  28. <pubDate>Sat, 23 Apr 2011 01:00:00 +0100</pubDate>
  29.  29. 
  30.  30. <item>
  31.  31. <category>Misc Items</category>
  32.  32. <title>2 Japanese Itomaki xi212</title>
  33.  33. 
  34.  34. <link>http://wafuku.co.uk/index.php?c=888&amp;p=102606</link>
  35.  35. 
  36.  36. <description>2 Japanese Itomaki - thread spool</description>
  37.  37. </item>
  38.  38.
  39.  39. <item>
  40.  40. <category>Samurai Items</category>
  41.  41. <title>Tsuba Sword Guard sx8</title>
  42.  42. 
  43.  43. <link>http://wafuku.co.uk/index.php?c=30&amp;p=102605</link>
  44.  44. 
  45.  45. <description>Tsuba Sword Guard</description>
  46.  46. </item>
  47.  47.
  48.  48. <item>
  49.  49. <category>Footwear Boots</category>
  50.  50. <title>Jika Tabi 24cm fb3</title>
  51.  51. 
  52.  52. <link>http://wafuku.co.uk/index.php?c=45&amp;p=102604</link>
  53.  53. 
  54.  54. <description>Jika Tabi 24cm</description>
  55.  55. </item>
  56.  56.
  57.  57. <item>
  58.  58. <category>Footwear Boots</category>
  59.  59. <title>Jika Tabi 26cm fb2</title>
  60.  60. 
  61.  61. <link>http://wafuku.co.uk/index.php?c=45&amp;p=102603</link>
  62.  62. 
  63.  63. <description>Jika Tabi 26cm</description>
  64.  64. </item>
  65.  65.
  66.  66. <item>
  67.  67. <category>Women's Clothes Haori</category>
  68.  68. <title>Leaf Squares Haori wh586</title>
  69.  69. 
  70.  70. <link>http://wafuku.co.uk/index.php?c=38&amp;p=102599</link>
  71.  71. 
  72.  72. <description>Leaf Squares Haori</description>
  73.  73. </item>
  74.  74.
  75.  75. <item>
  76.  76. <category>Obi Hanhaba</category>
  77.  77. <title>Noh Characters Hanhaba Obi oh52</title>
  78.  78. 
  79.  79. <link>http://wafuku.co.uk/index.php?c=62&amp;p=102600</link>
  80.  80. 
  81.  81. <description>Noh Characters Hanhaba Obi</description>
  82.  82. </item>
  83.  83.
  84.  84. <item>
  85.  85. <category>Obi Hanhaba</category>
  86.  86. <title>Glinting Loopy Waves Hanhaba Obi oh53</title>
  87.  87. 
  88.  88. <link>http://wafuku.co.uk/index.php?c=62&amp;p=102601</link>
  89.  89. 
  90.  90. <description>Glinting Loopy Waves Hanhaba Obi</description>
  91.  91. </item>
  92.  92.
  93.  93. <item>
  94.  94. <category>Unisex - Jinbei</category>
  95.  95. <title>Ukiyoe Jinbei Jacket uhj3</title>
  96.  96. 
  97.  97. <link>http://wafuku.co.uk/index.php?c=2100&amp;p=102596</link>
  98.  98. 
  99.  99. <description>Ukiyoe Jinbei Jacket</description>
  100. 100. </item>
  101. 101.
  102. 102. <item>
  103. 103. <category>Unisex - Hanten</category>
  104. 104. <title>Brick Wall Hanten uha3</title>
  105. 105. 
  106. 106. <link>http://wafuku.co.uk/index.php?c=2098&amp;p=102598</link>
  107. 107. 
  108. 108. <description>Ukiyoe Jinbei Jacket</description>
  109. 109. </item>
  110. 110.
  111. 111. <item>
  112. 112. <category>Unisex - Hanten</category>
  113. 113. <title>Lined Hanten uha2</title>
  114. 114. 
  115. 115. <link>http://wafuku.co.uk/index.php?c=2098&amp;p=102597</link>
  116. 116. 
  117. 117. <description>Lined Hanten Jacket</description>
  118. 118. </item>
  119. 119.
  120. 120. <item>
  121. 121. <category>Buddhist Clothing</category>
  122. 122. <title> Buddhist Priest's Wa Kesa bc17</title>
  123. 123. 
  124. 124. <link>http://wafuku.co.uk/index.php?c=80&amp;p=102602</link>
  125. 125. 
  126. 126. <description>Buddhist Priest's Wa Kesa</description>
  127. 127. </item>
  128. 128.
  129. 129. <item>
  130. 130. <category>Children's Japanese Clothes</category>
  131. 131. <title>Bugs Galore Jinbei &amp; Shorts Set cx11</title>
  132. 132. 
  133. 133. <link>http://wafuku.co.uk/index.php?c=2082&amp;p=102594</link>
  134. 134. 
  135. 135. <description>Bugs Galore Jinbei &amp; Shorts Set </description>
  136. 136. </item>
  137. 272. 
  138. 273. </channel>
  139. 274. 
  140. 275. </rss>


Thank you for looking at if for me.

Regards,
Cerio
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • cerio
  • Proficient
  • Proficient
  • User avatar
  • Posts: 263
  • Loc: UK

Post 3+ Months Ago

Ok. I did some searching and found some info about GUID.
I have now added a GUID line to each item code...
Code: [ Select ]
<item>
<category>Misc Items</category>
        <title>2 Japanese Itomaki xi212</title>

        <link>http://wafuku.co.uk/index.php?c=888&amp;p=102606</link>

        <description>2 Japanese Itomaki - thread spool</description>
        <guid isPermaLink="true">http://wafuku.co.uk/index.php?c=888&amp;p=102606</guid>
    </item>
    
    <item>
<category>Samurai Items</category>
        <title>Tsuba Sword Guard sx8</title>

        <link>http://wafuku.co.uk/index.php?c=30&amp;p=102605</link>

        <description>Tsuba Sword Guard</description>
        <guid isPermaLink="true">http://wafuku.co.uk/index.php?c=30&amp;p=102605</guid>
    </item>
  1. <item>
  2. <category>Misc Items</category>
  3.         <title>2 Japanese Itomaki xi212</title>
  4.         <link>http://wafuku.co.uk/index.php?c=888&amp;p=102606</link>
  5.         <description>2 Japanese Itomaki - thread spool</description>
  6.         <guid isPermaLink="true">http://wafuku.co.uk/index.php?c=888&amp;p=102606</guid>
  7.     </item>
  8.     
  9.     <item>
  10. <category>Samurai Items</category>
  11.         <title>Tsuba Sword Guard sx8</title>
  12.         <link>http://wafuku.co.uk/index.php?c=30&amp;p=102605</link>
  13.         <description>Tsuba Sword Guard</description>
  14.         <guid isPermaLink="true">http://wafuku.co.uk/index.php?c=30&amp;p=102605</guid>
  15.     </item>


I am not sure it is correct. It validates ok but have I got the correct link in the guid? I put in the same one as the link to the item.

To be honest, I'm not actually sure what the guid line does, only that the validator advised it was there, so an explanation of that would be helpful. I think it stops the RSS feed listing stuff more than once when it reads the updated rss file again but I'm not certain of that.

I'd like to know if the way I have done it is correct and I still need help with the rel="self" bit, which I haven't found the solution for.

When it comes to the rel="self" bit, I have done exactly what the w3.org page said to do at http://feed2.w3.org/docs/warning/MissingAtomSelfLink.html yet their validator says it is wrong...
Code: [ Select ]
# This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
#
#  # line 6, column 86: "self" link references a non-Atom representation: application/rss.xml [help]
#
#  ... rel="self" type="application/rss.xml" />
#             ^
#
# # line 6, column 86: Self reference doesn't match document location [help]
#
#  ... rel="self" type="application/rss.xml" />
  1. # This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
  2. #
  3. #  # line 6, column 86: "self" link references a non-Atom representation: application/rss.xml [help]
  4. #
  5. #  ... rel="self" type="application/rss.xml" />
  6. #             ^
  7. #
  8. # # line 6, column 86: Self reference doesn't match document location [help]
  9. #
  10. #  ... rel="self" type="application/rss.xml" />


so I'm at a loss to know what to do now.

Cerio

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.