docbook v5 customization layer - german umlaute / oxygenxml
-
- Posts: 18
- Joined: Wed Sep 03, 2008 10:12 pm
docbook v5 customization layer - german umlaute / oxygenxml
Hello Docbook user
I am writing a customization layer and have 2 questions:
1) I wrote an xml testfile in UTF-8 encoding using german umlaute;
I specified in the customization file for html conversion
the related meta tag
is displayed correctly, but the german umlaute, e.g. ä is written like this: ä
What do I need to adjust so that the correct UTF-8 code for the letter ä will be displayed ?
2) Before using a customization layer for the html transformation Oxygenxml generated an html file which was immediately displayed; Now, using a customization layer for the html transformation the html code is only displayed in the lower window.
What do I need to adjust that the generated html file is displayed straight on ?
Thanks for your help.
regards, peter
I am writing a customization layer and have 2 questions:
1) I wrote an xml testfile in UTF-8 encoding using german umlaute;
I specified in the customization file for html conversion
Code: Select all
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
What do I need to adjust so that the correct UTF-8 code for the letter ä will be displayed ?
2) Before using a customization layer for the html transformation Oxygenxml generated an html file which was immediately displayed; Now, using a customization layer for the html transformation the html code is only displayed in the lower window.
What do I need to adjust that the generated html file is displayed straight on ?
Thanks for your help.
regards, peter
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: docbook v5 customization layer - german umlaute / oxygen
Post by sorin_ristache »
Hello Peter,
Anyway the browser displays the character correctly (i.e. ä) regardless of the representation in the HTML file, as the ä character or as the entity reference ä, because all browsers (I think) know how to represent the ä reference. So the exact representation in the HTML file does not really matter if the character is displayed correctly in the browser.
Regards,
Sorin
This is caused by the attribute method="html" of the element xsl:output in the XSLT stylesheet. The HTML serializer is imposed by this output method declaration and for the non-ASCII characters it does not guarantee that the Unicode codepoint is used. In particular the German umlaute characters are always represented as entity references (e.g. ä). If you change the method to "xml" you get the ä character.osprofi wrote:1) I wrote an xml testfile in UTF-8 encoding using german umlaute;
I specified in the customization file for html conversionthe related meta tagCode: Select all
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
is displayed correctly, but the german umlaute, e.g. ä is written like this: äCode: Select all
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
What do I need to adjust so that the correct UTF-8 code for the letter ä will be displayed ?
Anyway the browser displays the character correctly (i.e. ä) regardless of the representation in the HTML file, as the ä character or as the entity reference ä, because all browsers (I think) know how to represent the ä reference. So the exact representation in the HTML file does not really matter if the character is displayed correctly in the browser.
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