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)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ 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.