Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  nxslt2 doesn't ...
 nxslt2 doesn't appear to validate as nxslt.exe did
 
mauburn
2 posts
Joined
3/22/2006

nxslt2 doesn't appear to validate as nxslt.exe did
Posted: 22 Mar 06 7:22 PM (United States)
Using nxslt.exe, I did the following:
  nxslt.exe PositAlert.xml -v -o PositAlert_valid.xml
and it worked fine - returning validated output. (FWIW: The XSD file for PositAlert.xml is in the same directory as PositAlert.xml.)

Now, when I try the exact same command with nxslt2.exe, I get the following error:

  An error occurred: System.ArgumentException: The XmlReader passed in to construct this XmlValidatingReaderImpl must be an instance of a System.Xml.XmlTextReader.
  Parameter name: reader

Help! Thanks...

- Mark

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: nxslt2 doesn't appear to validate as nxslt.exe did
Posted: 22 Mar 06 10:25 PM (N/A)

That probably has something to do with XInclude. Try to turn off XInclude processing using -xi option.

That's really disturbing, I'll investigate this issue.


Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
mauburn
2 posts
Joined
3/22/2006

Re: nxslt2 doesn't appear to validate as nxslt.exe did
Posted: 23 Mar 06 11:04 AM (United States)
Yup, the "-xi" option fixes things - and I can use it both with nxslt.exe and nxslt2.exe, which makes me happy. Thanks!

- Mark

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: nxslt2 doesn't appear to validate as nxslt.exe did
Posted: 11 Apr 06 1:24 PM (N/A)
Ok, I found the problem and will fix it in the next version.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: nxslt2 doesn't appear to validate as nxslt.exe did
Posted: 20 Jun 07 4:57 AM (Israel)
Looks like I can't fix it. DTD and XInclude are not compatible well  in .NET. When dealing with DTD, always turn off XInclude using -xi option. Sorry about that.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
  XML Lab Products  nxslt  nxslt2 doesn't ...
Forum Home  Search