XHTML empty tags reformatted
Oxygen general issues.
-
- Posts: 5
- Joined: Mon Jan 28, 2008 1:17 am
XHTML empty tags reformatted
Oxygen 9.1, build 2007122116
When I open an XHTML document containing empty tags (for use in background graphics ), e.g. <div class="background-roundcorner"></div>, then edit in author mode, and when finished go back to text mode, the empty tags have been automatically removed and changed into one-tag formulations, with opening and closing in the same tag (OK for some XHTML tags like <br />, but not for <div>). The empty tags themselves are not edited in author mode, only the normal text content paragraphs.
Before author -mode editing:
After autor editing:
In XHTML this will make the layout break in the browser. I have tried to find out how to turn off the automatic reformulation of the tags, but did not find it.
Thanks in advance!
Gerhard
When I open an XHTML document containing empty tags (for use in background graphics ), e.g. <div class="background-roundcorner"></div>, then edit in author mode, and when finished go back to text mode, the empty tags have been automatically removed and changed into one-tag formulations, with opening and closing in the same tag (OK for some XHTML tags like <br />, but not for <div>). The empty tags themselves are not edited in author mode, only the normal text content paragraphs.
Before author -mode editing:
Code: Select all
<div class="background-roundcorner"></div>
Code: Select all
<div class="background-roundcorner" />
Thanks in advance!
Gerhard
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
This is the first problem reported in this post where a reply was also posted.
Regards,
Sorin
This is the first problem reported in this post where a reply was also posted.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: XHTML empty tags reformatted
Post by sorin_ristache »
Hello,
The pretty-print options are applied when transforming the Author document to the text form of Text page when you switch from Author page to Text page. You have to select the option Expand empty elements available in Preferences -> Editor / Format / XML.
Regards,
Sorin
The pretty-print options are applied when transforming the Author document to the text form of Text page when you switch from Author page to Text page. You have to select the option Expand empty elements available in Preferences -> Editor / Format / XML.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service