XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Convertic EDI files into XML (7)
-> + Type2 Authentication missing D... (6)
-> + Please help in a simple conver... (5)
-> + Doc/Literal Wrapped (4)
-> + Error starting Stylus Studio (9)
-> + WYSIWYG Menu Bar and Tab Missi... (2)
-> + XML file size limits (2)
-> + XML Publisher (2)
-> + cant get namespace declaration... (5)
-> + Fixed Width to XML (3)
-> - file to xml conversion (1)
-> + Create Multiple Page (3)
-> + Flat file conversion with colu... (3)
-> + New Line character problem in ... (2)
-> + need help - stylus doesn't sta... (2)
-> - command line StylusValidator ... (3)
-> ->command line StylusValid...
-> ->command line StylusValid...
-> + Help unistalling (2)
-> + recurse problem analysis (3)
-> - Newbie: WSAD and file paths (1)
-> - Stylus StudioŽ 2009 XML Enterp... (1)
-- Previous [841-860] [861-880] [881-900] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Rosilyn SeaySubject: command line StylusValidator can not find schema
Author: Rosilyn Seay
Date: 17 Mar 2009 02:26 PM
when attempting to validate using command line and forcing a schema using command:
StylusValidator -schema myfile.xsd myfile.xml

I receive the error "document has no schema and cannot be validated". The schema exists. The xml validates against it if I use the GUI. If I do a directory on the schema file, exactly as it is in command line, the file shows up. However, apparently the validator can not find it.

Postnext
(Deleted User) Subject: command line StylusValidator can not find schema
Author: (Deleted User)
Date: 02 Apr 2009 02:44 AM
Hi Rosilyn,
it could be that the message is misleading; I cannot say it for sure without seeing the actual XML file, but I am inclined to think that the message it should have been printed is "your XML has validation errors".
Could you attach your sample files (or send them to stylus-field-report at progress.com) so that we can investigate further?

Thanks,
Alberto

Posttop
Eng AdminSubject: command line StylusValidator can not find schema
Author: Eng Admin
Date: 12 Oct 2010 06:40 PM
I am also having a similar issue and since it appears that this issue did not receive response from the original poster I thought I would just add onto the same string.

From what I can tell, even when I try to force a validation against a schema file the program only wants to utilize the schema listed on line 2 of the XML (modified sample shown below.

First 2 lines of XML:
<?xml version="1.0"?>
<import xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="\\networkshare\schemas\listedschema.xsd">

Command Line Used:
stylusvalidator.exe -schema:\\networkshare2\otherschemas\forcedschema.xsd \\networkshare3\xmls\samplexml.xml

Error Received:
File file://\\\\networkshare3\xmls\samplexml.xml (ln 2, Col 123): Cannot open listedschema.xsd

Seems like it still wants to validate against the schema listed in the XML, not against the schema listed in the command.

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.