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.

Check current document if is valid Options · View
jodekirk
Posted: Friday, May 13, 2016 6:25:41 PM
Rank: Newbie

Joined: 12/14/2006
Posts: 4
I want to create a button that checks if the current document is valid. I tried the sample code but it doesn't work.

When debugging the following script I get the error: 'Application' is undefined.

Code:
var x = Application.ActiveDocument;
var err = "";
var v = x.IsValid(err);
alert(err);


How do I change this script in StyleVision so I can validate the current document in Authentic?

Also how do you validate the document according to the DTD and also the "additional validation" in the .sps file?

I also tried the sample code here but it didn't work either:
http://manual.altova.com/Stylevision/stylevisionenterprise/index.html?integpl_htmlapplev_checkdocvalidity.htm
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.