View Single Post
  #1 (permalink)  
Old August 23rd, 2006, 04:11 AM
rjonk rjonk is offline
Authorized User
Join Date: May 2006
Location: Haarlem, , Netherlands.
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default Testing XML if it is wellformed

I've been searching the book XSLT2 ans Path2 for a way how I can test external xml documents if it is well formed or not.

My question is two ways
What is the easiest way to test if an xml document is well formed and/or well balanced before I want to process the document with my xslt. Does the saxon processor provides a way to test well formed xml for instance in a .bat file before calling an xslt template.
Is it possible to test nodes in an external document with the document() or doc()function without having an input xml document. Or do I always have to use a dummy xml as input if I only want to test a node in an external document with the document function.
Reply With Quote