Highlighted

How to make right XML tags exporting to ePub

New Here ,
Jul 13, 2020

Copy link to clipboard

Copied

I have a very simple document structure. I have InDesign paragraph styles called h1, h2, h3, h4. When they are exported to ePub, InDesign make all elements as P elements:

 

<p class="h4">

 

How can I make heading elements? I mean, this:

<h4 class="whatever">
Adobe Community Professional
Correct answer by Bevi_Chagnon___PubCom | Adobe Community Professional

First, they are not XML tags.

They are a hybrid of the HTML mark-up tag set that are required by the EPUB standard.

 

Just because they have pointy brackets and similar names to XML tags, they are not XML.  XML = extensible mark-up language, which means that anyone can make up their own tag names and rules of usage.

 

That's the opposite in HTML, EPUB, and PDF/UA where you must use a given set of pre-defined tags and use them correctly as prescribed by the rules (aka, guildlines, standards).

 

You control which tag ends up in the exported EPUB in the Export Tagging section of your paragraph style definition. See below.

Set export tags for EPUB.Set export tags for EPUB.

 

This is a very elementary question about how EPUB works. Lynda.com/Linked-In Learning has excellent online training in the basics of EPUB. And you can sign up for a month's worth of free access.

 

Topics

EPUB, How to

Views

22

Likes

Translate

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

How to make right XML tags exporting to ePub

New Here ,
Jul 13, 2020

Copy link to clipboard

Copied

I have a very simple document structure. I have InDesign paragraph styles called h1, h2, h3, h4. When they are exported to ePub, InDesign make all elements as P elements:

 

<p class="h4">

 

How can I make heading elements? I mean, this:

<h4 class="whatever">
Adobe Community Professional
Correct answer by Bevi_Chagnon___PubCom | Adobe Community Professional

First, they are not XML tags.

They are a hybrid of the HTML mark-up tag set that are required by the EPUB standard.

 

Just because they have pointy brackets and similar names to XML tags, they are not XML.  XML = extensible mark-up language, which means that anyone can make up their own tag names and rules of usage.

 

That's the opposite in HTML, EPUB, and PDF/UA where you must use a given set of pre-defined tags and use them correctly as prescribed by the rules (aka, guildlines, standards).

 

You control which tag ends up in the exported EPUB in the Export Tagging section of your paragraph style definition. See below.

Set export tags for EPUB.Set export tags for EPUB.

 

This is a very elementary question about how EPUB works. Lynda.com/Linked-In Learning has excellent online training in the basics of EPUB. And you can sign up for a month's worth of free access.

 

Topics

EPUB, How to

Views

23

Likes

Translate

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
Adobe Community Professional ,
Jul 13, 2020

Copy link to clipboard

Copied

First, they are not XML tags.

They are a hybrid of the HTML mark-up tag set that are required by the EPUB standard.

 

Just because they have pointy brackets and similar names to XML tags, they are not XML.  XML = extensible mark-up language, which means that anyone can make up their own tag names and rules of usage.

 

That's the opposite in HTML, EPUB, and PDF/UA where you must use a given set of pre-defined tags and use them correctly as prescribed by the rules (aka, guildlines, standards).

 

You control which tag ends up in the exported EPUB in the Export Tagging section of your paragraph style definition. See below.

Set export tags for EPUB.Set export tags for EPUB.

 

This is a very elementary question about how EPUB works. Lynda.com/Linked-In Learning has excellent online training in the basics of EPUB. And you can sign up for a month's worth of free access.

 

Bevi Chagnon | Designer & Technologist for Accessible InDesign + PDFs | Books @ www.PubCom.com/books — NEW! Accessible InDesign + PDF

Likes

Translate

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
Reply
Loading...
New Here ,
Jul 13, 2020

Copy link to clipboard

Copied

Perfect answer! Thank you so much.

Likes

Translate

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
Reply
Loading...