Answer the question
In order to leave comments, you need to log in
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>
clean-eip-attributes = "1"
option does not help with this. Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question