D
D
den-masonov2017-05-31 12:37:49
HTML
den-masonov, 2017-05-31 12:37:49

How to remove an attribute from the output HTML?

I use UMI.CMS with XSLT templating engine. When validating the final HTML, I get a lot of errors:

Error: Attribute xmlns:umi not allowed here.
From line 1, column 110; to line 2, column 108
rict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
          xmlns:umi="http://www.umi-cms.ru/TR/umi"
          xml:lang="ru" lang="ru">
<head>

The system settings clean-eip-attributes = "1"option does not help with this.
How to remove an attribute from the output HTML?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2017-05-31
@den-masonov

The clean-eip-attributes = "1"option only removes the Edit-in-place attributes.
Your problem is XSLT responsibility .
To solve in templates using the attribute exclude-result-prefixes, you need to exclude unnecessary namespaces:

<xsl:stylesheet version="1.0"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:date="http://exslt.org/dates-and-times"
      xmlns:udt="http://umi-cms.ru/2007/UData/templates"
      xmlns:umi="http://www.umi-cms.ru/TR/umi"
      exclude-result-prefixes="xsl date udt umi">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question