Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Editing DOCTYPE declaration

New Here ,
Jan 02, 2012 Jan 02, 2012

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.

TOPICS
Structured

Views

641
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Jan 02, 2012 Jan 02, 2012

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">&lt;!DOCTYPE </xsl:text><xsl:value-of select="name()"/><xsl:text disable-output-escapi

...

Votes

Translate
Contributor ,
Jan 02, 2012 Jan 02, 2012

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">&lt;!DOCTYPE </xsl:text><xsl:value-of select="name()"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
<xsl:element name="{name()}">

....

BR,

Martti

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 03, 2012 Jan 03, 2012

Copy link to clipboard

Copied

LATEST

Thanks, MarttiP! Should have asked the forums a week ago.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines