No XML formatted sitemap when XSL Generation is set to No

More
4 years 1 month ago - 4 years 1 month ago #8505 by Per
When XSL Generation is set to No, then one does not get an XML formatted sitemap. I have to save the code that is generated as XML in Firefox and then copy and past it in an XML formater, e.g. www.freeformatter.com / xml-formatter , to get nicely formatted in XML.

Why not getting the sitemap in XML formatted code when XSL Generation is set to No?
Last edit: 4 years 1 month ago by Per.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #8519 by JoomLine
Hello.
An XML sitemap is primarily a tool for indexing a site by robots, they don't care about text formatting. There is no sense in formatting it for them.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago - 4 years 1 month ago #8522 by Per
True, but it helps when one wants to check the sitemap if it's formatted. Now I have to format it, e.g. by using www.freeformatter.com to make it more readable.

JL-Sitemaps does a good job to create XML-sitemaps for articles on a multilingual website. It adds hreflang tags and image tags for the intro images.

There're two issues that I have to get in and correct manually: JL-Sitemap does not add the hreflang tags of he homepage in the default language (English), which it does in the other language (Spanish). Therefore I have to add this manually.

This is what this part of the code looks like after the XML-code has been formatted, but before my changes:
<url>
      <loc>https://my-site.com/en/</loc>
      <changefreq>weekly</changefreq>
      <priority>0.5</priority>
   </url>
   <url>
      <loc>https://my-site.com/es/</loc>
      <changefreq>weekly</changefreq>
      <priority>0.5</priority>
      <xhtml:link rel="alternate" hreflang="en-GB" href="https://my-site.com/en/" />
      <xhtml:link rel="alternate" hreflang="es-ES" href="https://my-site.com/es/" />
      <xhtml:link rel="alternate" hreflang="x-default" href="https://my-site.com/en/" />
   </url>

Furthermore, the hreflang are set to language and country specific variables for the two languages. This create a warning when validating the sitemap, because it's expected that x-default should not be country specific. Therefore I have to replace en-GB with en.

This is what the same code look like after my changes:
   <url>
      <loc>https://my-site.com/en/</loc>
      <changefreq>weekly</changefreq>
      <priority>0.5</priority>
      <xhtml:link rel="alternate" hreflang="en" href="https://my-site.com/en/" />
      <xhtml:link rel="alternate" hreflang="es-ES" href="https://my-site.com/es/" />
      <xhtml:link rel="alternate" hreflang="x-default" href="https://my-site.com/en/" />
   </url>
   <url>
      <loc>https://my-site.com/es/</loc>
      <changefreq>weekly</changefreq>
      <priority>0.5</priority>
      <xhtml:link rel="alternate" hreflang="en" href="https://my-site.com/en/" />
      <xhtml:link rel="alternate" hreflang="es-ES" href="https://my-site.com/es/" />
      <xhtml:link rel="alternate" hreflang="x-default" href="https://my-site.com/en/" />
   </url>

It would be handy if the XML-sitemap would be formatted to start with.

The Kunena extension does not work equal well on a multilingual website. It might partly depend on the fact that Kunena isn't really developed for multilingual websites, but by having one section each for English and Spanish, then it works fairly well. The problem is that the sitemap created by JL-Sitemaps even put the treads in the Spanish section in the English language version. Therefore, I have to correct it manually.

Overall JL-Sitemaps does a good job and it's an advantage that static sitemaps are generated, because then one can make manual corrections of the sitemap manually if needed.
Last edit: 4 years 1 month ago by Per.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #8525 by JoomLine
Created a discussion on this topic. We will be adding the formatted xml capability shortly.
github.com/Joomline/jlsitemap/issues/67

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago - 4 years 1 month ago #8526 by Per

JoomLine wrote: We will be adding the formatted xml capability shortly.


Excellent, then a good product will become even better :)
Last edit: 4 years 1 month ago by Per.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • чет не работает
    • You may have heard about the for a while now, but you still don't dare to visit them. It is time for you to lose your fear of these prostitute websites. Take your mobile phone, and visit it now. The escorts are local prostitutes you can access for a minimum amount.
    • In Component / Yandex Market XML
    • After searching the house and finding nothing,
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them
    • In Component / Afisha Joomla
    • search engine optimization
    • One crisp autumn afternoon, while playing near the house, Emma noticed something shiny half-buried in the dirt. She dug it up and found an old, ornate key with intricate designs. Excited, she wondered what it might open. With the key clutched tightly in her hand, she approached the old house. The door creaked open with surprising ease, and Emma stepped inside. The interior was just as dusty as the outside, but it had an air of mystery. She wandered through the rooms, discovering old furniture and forgotten toys. Each room told a story of a family that had once lived there long ago. As she explored, Emma came upon a small, locked chest in the corner of one room. Her heart raced as she inserted the key into the lock. With a satisfying click, the chest opened to reveal a collection of old photographs, letters, and a beautiful, hand-carved wooden box. Inside the wooden box was a small locket. When Emma opened it, she saw a picture of a young girl who looked strikingly similar to herself. Beside the locket was a letter addressed to "The Finder of the Key." The letter explained that the house had belonged to a family who had to leave quickly many years ago, leaving behind their cherished belongings. The letter's writer was the young girl’s great-grandparent, and the locket was a family heirloom meant to be passed down. Emma's heart swelled with joy as she realized that she had discovered a piece of her own history. She decided to bring the locket and the other treasures to her parents. They were amazed and touched by the find, and they decided to restore the old house, making it a special place to remember their family’s history. From that day on, the house was no longer forgotten. It became a cherished part of the town, where Emma and her family would often visit, sharing stories of the past and making new memories. And so, the little girl with the curious heart had not only uncovered a hidden treasure but had also brought new life to a piece of history, all with a simple, forgotten key.
    • In Component / JL TV
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.