Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5842453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:01:11+00:00 2026-05-22T12:01:11+00:00

I am getting the error entity 0slash was referenced but not declared whenever I

  • 0

I am getting the error “entity 0slash was referenced but not declared” whenever I try to convert .fo file to .pdf with apache fop 1.0

I found out you can declare entities in DTD, however, my .fo file has no DTD. Is it supposed to have one? If not, how can I solve this problem? Prefereably without using additional .xsl or whatever files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:01:12+00:00Added an answer on May 22, 2026 at 12:01 pm

    (NOTE: In my answer I’m using the “Oslash” (oh slash) instead of the “0slash” (zero slash) you have in your question. Since you can’t begin an entity name with a digit, I’m assuming that the zero is a typo.)

    You have a couple of options:

    1. You can modify whatever is creating your XSL-FO to output hex references instead of the ISO entity references. In this instance Ø would be Ø.

    2. You can declare the entity in the internal subset of a DOCTYPE declaration.

    Here is a sample XSL-FO with the DOCTYPE added:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE fo:root [
    <!ENTITY Oslash "&#xD8;">
    ]>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:layout-master-set>
            <fo:simple-page-master master-name="page">
                <fo:region-body region-name="body"></fo:region-body>
            </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="page">
            <fo:flow flow-name="body">
              <fo:block>Hello World! &Oslash;</fo:block>
            </fo:flow>
        </fo:page-sequence>
    </fo:root>
    

    If you process this with FOP, you get: Hello World! Ø

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting error to convert T to Entity public T Add(T entity) {
I'm getting the error Cannot remove an entity that has not been attached. when
I'm getting an error when I try to persist an entity from a class.
Im getting the error the type or namespace name 'Entity' could not be found
I keep getting an error in my production environment but not in my development.
getting error while try to start service
I wrote following code...but i am getting Error like: Error 1 'LoginDLL.Class1.Login(string, string, string)':
hi im new to c# and was trying to code but getting error can
Please refer my previous post here . I did changes accordingly but getting error.
I'm getting an error when trying to persist a many to one entity: Internal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.