N
N
NilanMayers2017-10-20 13:33:06
XSL & XSLT
NilanMayers, 2017-10-20 13:33:06

How to design a sitemap?

Hello. There is one sitemap.xml file. And I need to impose at least some design on it. I don't know much about xml. The beginning of the file looks like this, then everything is according to the standard. I suspect that the problem lies somewhere here. The bottom line is that the file absolutely refuses to accept xsl styles, if I include a link to the style file, it either does not show anything at all, or gives an error. I also tried to write a piece of xsl in the file itself. Gives an error message.

<?xml version='1.0' encoding='UTF-8'?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>...

How to form at least such a table from loc, priority, lastmod and changefreq as here at the bottom of the site sites.znu.edu.ua/webprog/lect/1210.ukr.html page ? By the way, following the advice from here, I tried to do it, but it gave an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-10-20
@Maksclub

the client wants the design to be poured into it

your task as an expert is to help the client not to make a game, grow this quality in yourself, it will come in handy and will allow you to earn and grow as a pro.
Talk him out of it, it just doesn't need anyone

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question