No XML formatted sitemap when XSL Generation is set to No

More
3 years 7 months ago - 3 years 7 months 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: 3 years 7 months ago by Per.

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

More
3 years 7 months 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
3 years 7 months ago - 3 years 7 months 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: 3 years 7 months ago by Per.

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

More
3 years 7 months 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
3 years 7 months ago - 3 years 7 months 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: 3 years 7 months ago by Per.

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

Powered by Kunena Forum

Last from the forum

    • Достигните новых высот в карьере
    • Купить диплом ВятГСХА. В современном мире многие люди стремятся получить высшее образование, но не всегда у них есть возможность поступить в учебное заведение и успешно его закончить. В таком случае им может прийти в голову мысль о покупке диплома, чтобы иметь возможность устроиться на работу или продолжить обучение. Одним из вузов, дипломы которого можно купить, является ВятГСХА – Высшая школа аграрного дела. Это учебное заведение имеет хорошую репутацию и предлагает качественное образование в сфере сельского хозяйства. Поэтому диплом этого вуза будет ценным и полезным при поиске работы. Купить диплом ВятГСХА можно у специализированных организаций, которые занимаются изготовлением документов высшего образования. Они предлагают своим клиентам широкий выбор дипломов различных университетов, включая и ВятГСХА. При этом можно выбрать не только специальность и уровень образования, но и форму обучения – дневное, заочное или вечернее. Покупка диплома ВятГСХА является легким и быстрым способом получить нужный документ без лишних хлопот и затрат времени. Для этого достаточно обратиться к специалистам, ознакомиться с условиями сотрудничества и оформить заказ. В результате вам будет предоставлен официальный диплом, который ничем не будет отличаться от настоящего. Приобретение диплома ВятГСХА может быть полезным для тех, кто уже имеет определенный опыт работы, но хочет получить дополнительное образование для карьерного роста. Такой документ поможет вам увеличить свои шансы на получение желаемой должности и повысить свой профессиональный уровень. Кроме того, покупка диплома ВятГСХА может быть полезной для тех, кто столкнулся с проблемами при обучении в университете и не смог успешно его закончить. В этом случае такой документ станет отличным способом исправить ситуацию и получить желаемое образование. Таким образом, покупка диплома ВятГСХА может быть хорошим решением для тех, кто хочет улучшить свои карьерные перспективы и получить необходимое образование. Главное помнить, что важно выбирать проверенные организации, которые гарантируют качество услуг и конфиденциальность данных клиентов.
    • In Общий форум / Новости Joomline
    • Thread private label powder supplements
    • Our technical expertise is matched by our commitment to exceptional customer care. We believe in long-term partnership based on transparency, trust and mutual success. Our dedicated account managers will provide you with support and guidance during the entire process - from the initial consultation through to delivery. Our flexible production schedules combined with competitive pricing make it possible for you scale your business effectively. Experience unmatched innovation, quality and service when you choose us to manufacture your powder supplements. We will help your brand reach new heights. 
    • In English Forum / Component
    • Prison Cell Design
    •  Our prison cells were designed with safety as the primary consideration in mind. Our cells are built with robust materials and cutting-edge technologies to provide unmatched durability and resistance against tampering and escape attempts. Features like reinforced steel doors and windows that are shatterproof, as well as tamper proof locking mechanisms, ensure the safety of both staff and inmates. Our also incorporate integration points for seamless surveillance, further improving the overall security infrastructure.
    • In English Forum / Modules
© 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.