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 359611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:24:37+00:00 2026-05-12T12:24:37+00:00

I have a program that uses XSL-FO (org.apache.fop.apps.Driver) to generate a PDF print out

  • 0

I have a program that uses XSL-FO (org.apache.fop.apps.Driver) to generate a PDF print out from an XML file.

I’m working on the Stylesheets (xsl) & I’m trying to make the debugging easier. I have the XML & the XSL file, now I just want my editor to show me the generated PDF as I’m working on the XSL file.

I tried several editors & they gave errors that the program doesn’t seem to have a problem with.

it seems that the problem is that the editor expects to see :

<ATTRVALUE attribute_id="92" attrname="Date Required" attr_value="" />

while the actual XML the program generates is

<ATTRVALUE attribute_id="92" attrname="Date Required" attr_value />

As you can see the empty attr_value is plainly missing the =”” – is there a way for me to make the editor less strict? So it can generate the PDF just like the program I have does?

  • 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-12T12:24:37+00:00Added an answer on May 12, 2026 at 12:24 pm
    <ATTRVALUE attribute_id="92" attrname="Date Required" attr_value />
    

    That line is invalid as has been mentioned before. The program that thinks it’s okay is probably using it’s own custom XML parser which will just ignore these invalid attributes. It makes me have doubts about the programming qualities of the people who created that program. It just seems to me that they’re just writing this XML as text instead through an XML-DOM mechanism. Still, that should be okay but unfortunately, their code has a bug.

    Most -if not all- XML editors, parsers and transformers will validate the XML before it’s processed. So unfortunately there’s no good solution to fix this problem from within the XSLT file. Using a RegEx, you could remove the invalid attributes or make them valid by appending =”” to them, but there’s no way to do this before the XSLT will validate the XML.

    To solve this, the program needs to be changed to generate valid XML. Because right now, this could be considered a very serious bug. (Unless the program just uses this fake XML for internal purposes.)

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

Sidebar

Related Questions

I have a program that uses the mt19937 random number generator from boost::random. I
I have a program that uses JAMA and need to test is a matrix
I have a Python program that uses the threading module. Once every second, my
I have a Windows C# program that uses a C++ dll for data i/o.
I have a java client program that uses mdns with service discovery to find
I have a small command line program that uses the Team System API. When
I have a program that spits out both standard error and standard out, and
I have a program that spits out an Excel workbook in Excel 2003 XML
I have a program that creates a Windows user account using the NetUserAdd() API
I have a program that monitors debug messages and I have tried using a

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.