Banshee
the secure PHP framework

Forum

HTML5

namonos
8 june 2016, 13:56
Hello
ist it possible to get an html5 doctype with xslt in banshee.
I found some solutions (e.g. https://stackoverflow.com/questions/3387127/set-html5-doctype-with-xslt) but then i have always two doctypes:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html><html>
...

Thank you for any help.
namonos
8 june 2016, 13:58
my xslt in layout_(...).xslt
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="layout_cdrw">
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
<html>
Hugo Leisink
8 june 2016, 23:13
That seems indeed be the only way to do that.
Message preview

The following BB-codes are available in a message:

  • [b]Bold text[/b]
  • [center]Center text or imagen[/center]
  • [color=color name or #RGB code]Colored text[/color]
  • [i]Italic text[/i]
  • [img]Link to image[/img]
  • [right]Align text or image right[/right]
  • [s]Strike-through text[/s]
  • [size=pixelsize]Big or small text[/size]
  • [u]Underlined text[/u]
  • [url]Link to website[/url]
  • [url=link to website]Link text[/url]