"<html> proprietary attribute 'xmlns:date'"
This is an open discussion with 4 replies, filed under XSLT.
Search
Re-order the stylesheet namespaces and declare the the XSL Transform first, then the EXSLT dates-and-times and then add extension-element-prefixes="date"
at end of the stylesheet declaration like so...
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>
Thanks, bzerangue, but this doesn't change the resulting HTML. That was the first thing I tried ...
Did you add the extension-element-prefixes="date"
? I was getting the same outcome you were until I added that extension namespace.
That's it - thank you! I didn't save my template correctly ...
Create an account or sign in to comment.
I'm using the EXSLT date and time extension on one of my sites. It's all working but something is wrong as the resulting HTML contains a wrong declaration:
(See the
xmlns:date
attribute in the html tag?)This is the head of the XSL file:
Does anybody know where my mistake is?