Copy link to clipboard
Copied
Hi all,
I have been trying to accomplish this task for some time now and have decided it's not possible. Thought I would ask before moving on, though...Is there a way to edit the DOCTYPE declaration that Frame10 outputs within a structured application? In other words, can I create a structured application that outputs an XHTML document with an HTML 5 declaration?
Instead of: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "dtd.dtd" []>
I want: <!DOCTYPE html>
Possible? Thanks.
Hi,
Not directly, Framemaker needs the PUBLIC/SYSTEM declaration in order to validate the generated XML.
What you can do is to add an export xsl transformation, where you can create the final xml output after validation. XSL like this would create the DOCTYPE declaration:
<xsl:template match="*[not(ancestor::*)]"> <!-- match to root element -->
<!-- Generate declaration -->
<xsl:text disable-output-escaping="yes"><!DOCTYPE </xsl:text><xsl:value-of select="name()"/><xsl:text disable-output-escapi
...Copy link to clipboard
Copied
Hi,
Not directly, Framemaker needs the PUBLIC/SYSTEM declaration in order to validate the generated XML.
What you can do is to add an export xsl transformation, where you can create the final xml output after validation. XSL like this would create the DOCTYPE declaration:
<xsl:template match="*[not(ancestor::*)]"> <!-- match to root element -->
<!-- Generate declaration -->
<xsl:text disable-output-escaping="yes"><!DOCTYPE </xsl:text><xsl:value-of select="name()"/><xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:element name="{name()}">
....
BR,
Martti
Copy link to clipboard
Copied
Thanks, MarttiP! Should have asked the forums a week ago.