Document is always 'Valid', even when invalid

Oxygen general issues.
eeverman
Posts: 10
Joined: Fri Feb 22, 2008 10:07 pm

Document is always 'Valid', even when invalid

Post by eeverman »

I have oXygen 9.1, build 2007121417 (more detail below).

I have a largish XML document (41K lines) that uses an XML Schema,
which is referenced with a file location in the root tag. Code completion
prompts work, however, the document is always marked as valid,
even when I go in and start changing element names.

The schema is made up of several files which are imported into the
main schema file, so I created a custom validation scenario which
includes all those files, but it didn't help.

* How do I get Oxygen to correctly validate this file?
* Is adding the root Schema file plus all the imported schema files
to a custom validation scenario the right track? (though it didn't help)
* And if adding all these files to a validation scenario is required,
it would be very helpful to be able to select them all at once,
rather then selecting them individually.


System Details:

Oxygen 9.1, build 2007121417

Libraries
Apache Xerces-J 2.9.1
Apache Xalan Java 2.7.0
SAXON_6 6.5.5
Saxon9B 9.0.0.2
Libxslt 1.1.15 (Windows / Mac OS X)
Apache FOP 0.94
oNVDL 20070122
Trang 20030619
Apache NekoHTML 0.9.5
W3C CssValidator 2.0
SVNKit 1.1.4
Java Secure Channel 0.1.28
Apache XML Security 1.4.0
Database Drivers Package 1

Frameworks
OASIS DocBook XML DTD 5.0RC7
DocBook XSL 1.73.2
DITA Open Toolkit 1.4.1
TEI P4 2004-07
TEI P5 2007-09
TEI XSL 5.7

System Properties
apple.awt.graphics.UseQuartz false
apple.awt.showGrowBox true
apple.awt.window.position.forceSafeCreation true
apple.laf.useScreenMenuBar true
apple.lang.DisableCompatibilityClasspath true
awt.nativeDoubleBuffering true
awt.toolkit apple.awt.CToolkit
com.apple.macos.smallTabs true
com.apple.macos.useScreenMenuBar true
com.apple.mrj.application.apple.menu.about.name Oxygen
com.apple.mrj.application.growbox.intrudes true
com.apple.smallTabs true
com.oxygenxml.editor.home.url file:/Applications/oxygen/
com.oxygenxml.editor.lib.dir /Applications/oxygen/lib
com.oxygenxml.editor.plugins.dir /Applications/oxygen/plugins
com.oxygenxml.is.eclipse.plugin false
file.encoding MacRoman
file.encoding.pkg sun.io
file.separator /
gopherProxySet false
java.awt.graphicsenv apple.awt.CGraphicsEnvironment
java.awt.printerjob apple.awt.CPrinterJob
java.class.path /Applications/oxygen/Oxygen.app/../lib/oxygen.jar
java.class.version 49.0
java.endorsed.dirs /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
java.ext.dirs /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
java.home /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.io.tmpdir /tmp
java.library.path /Applications/oxygen/Oxygen.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version 1.5.0_13-b05-237
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.5
java.vendor Apple Inc.
java.vendor.url http://www.apple.com/
java.vendor.url.bug http://bugreport.apple.com/
java.version 1.5.0_13
java.vm.info mixed mode, sharing
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Apple Inc.
java.vm.version 1.5.0_13-119
javax.xml.parsers.DocumentBuilderFactory org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
javax.xml.parsers.SAXParserFactory org.apache.xerces.jaxp.SAXParserFactoryImpl
line.separator \n
mrj.version 1040.1.5.0_13-237
org.apache.xerces.xni.parser.XMLParserConfiguration org.apache.xerces.parsers.XIncludeAwareParserConfiguration
org.xml.sax.driver org.apache.xerces.parsers.SAXParser
os.arch i386
os.name Mac OS X
os.version 10.5.2
path.separator :
sun.arch.data.model 32
sun.awt.exception.handler apple.awt.CToolkit$EventQueueExceptionHandler
sun.boot.class.path /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed/serializer.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed/xalan_no_bcel.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed/xercesImpl.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed/xml-apis.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar
sun.boot.library.path /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries
sun.cpu.endian little
sun.cpu.isalist
sun.io.unicode.encoding UnicodeLittle
sun.jnu.encoding MacRoman
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level unknown
user.country US
user.dir /Applications/oxygen
user.home /Users/eeverman
user.language en
user.name eeverman
user.timezone America/Chicago
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Document is always 'Valid', even when invalid

Post by sorin_ristache »

Hello,
eeverman wrote:* Is adding the root Schema file plus all the imported schema files
to a custom validation scenario the right track? (though it didn't help)
No, it is not the right track. You do not need a validation scenario in your case where you specify the schema in the XML file and the XML file is not used as a fragment of other XML file. Press the Validate Document button on the Validate toolbar and oXygen validates the edited XML file against the schema specified in the xsi:schemaLocation attribute.


Regards,
Sorin
Post Reply