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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:39:35+00:00 2026-06-03T21:39:35+00:00

I am using Saxon to transform an XML file to XHTML. I am calling

  • 0

I am using Saxon to transform an XML file to XHTML. I am calling Saxon as a command-line instance through a Perl script.

I am getting the following error:

Validation error
FORG0001: Invalid date “-” (No year after ‘-‘)
Transformation failed: Run-time errors were reported

This error is caused by a non-date passed to an XSLT function that I have written that expects a date. However, I am using this function in many places in my XSLT file and I do not know which instance is causing the problem. I can troubleshoot manually but is it possible to have this transform error also point out what line in the XSLT is causing the issue?

  • 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-06-03T21:39:37+00:00Added an answer on June 3, 2026 at 9:39 pm

    Sorry you didn’t get an answer to this question. Do feel free to use Saxonica’s help lists and support forums, in which case we will always try to help; it’s hit-and-miss whether a question on StackOverflow gets noticed.

    Recent releases of Saxon produce an XSLT stack trace which shows the function/template calling stack at the point where a run-time error occurs. It’s not clear why you aren’t seeing this; it might be something to do with the Perl script.

    Another diagnostic technique is to use the -T option to produce a full execution trace; the final lines of the trace will tell you what code was being executed at the point of failure.

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

Sidebar

Related Questions

I am using Transformer to perform XSL transformation from XML to XHTML: import javax.xml.transform.Transformer;
I'll point out now, that I'm new to using saxon, and I've tried following
using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
I'm attempting to apply a stylesheet to an XML document using Saxon. Given an
I'm using XSLT 2 (Saxon 9.x) with Java and having the following problem ...
I am using net.sf.saxon.TransformerFactoryImpl to do some transformation to multiple XML files. I am
I need to transform one XML document into another using XSLT (for now from
I have a chained XSLT 2.0 transformation scenario (using saxon), like this: - I1.xml
I am using DITA OT for transforming the XML into xhtml. My xsl looks
Using the savon gem, I get the following request XML: <?xml version=1.0 encoding=UTF-8?> <soap:Envelope

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.