IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Xslt transform: No document type declaration specified Options · View
mgordon
Posted: Wednesday, February 7, 2018 11:36:14 PM
Rank: Newbie

Joined: 2/7/2018
Posts: 2
Location: Australia
Hi

I have an evaluation version of RaptorXML server 2018, I have some XSLT templates that have been generated using style vision which I am wanting to transform against an object which has been serialized to XML when I call the XMLValidator.IsValid() function against this XML I get the following error message:

FatalError: file:///C:/data.xml:2: No document type declaration specified.
Hint: An XML document can't be valid without DTD, but it can still be well-for


My Question is MUST I have a DTD to perform an XSLT transform using RaptorXML server, is there some way I can tell it to ignore the missing DTD?

I am using C# as my programming language
K101
Posted: Thursday, February 8, 2018 7:07:12 AM
Rank: Advanced Member

Joined: 2/27/2009
Posts: 564
If you're calling isValid(), you're trying to validate the document. What do you want to validate it against? You can validate it against a DTD or an XML schema.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.