Search the web
Sign In
New User? Sign Up
rng-users · RELAX NG users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Jing dataypes question   Message List  
Reply | Forward Message #1059 of 1126 |
Re: [rng-users] Jing dataypes question

Hi Hugh,

Jing surely checks XML Schema datatypes including anyURI. See en example
below.

test.xml

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="test.rng" type="xml"?>
<test>%</test>

test.rng

<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<ref name="test"/>
</start>
<define name="test">
<element name="test">
<data type="anyURI"/>
</element>
</define>
</grammar>

this gives

SystemID: C:\george\test\test.xml
Severity: error
Description: bad character content for element
Start location: 3:15

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


hcayless wrote:
> Hi,
>
> I'm fairly new to RelaxNG, and so my apologies in advance if I'm missing
something basic. Does the jing command line program take XML schema dataypes
into account during validation? It appears to me not to be doing so. I've got
a lot of files I want to validate against a RelaxNG schema (a TEI schema, which
uses the built in XSD datatypes), but it doesn't catch the fact that there's an
attribute which is supposed to be an xsd:anyUri, but isn't. I've also been
playing with rnv (http://sourceforge.net/projects/rnv/) which does catch this
error.
>
> My question is whether I'm doing something wrong in invoking jing, or if this
is expected behavior and I should be implementing my own code around jing to do
this.
>
> Thanks,
> Hugh
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>



Wed Jul 1, 2009 4:45 am

george_bina
Offline Offline
Send Email Send Email

Forward
Message #1059 of 1126 |
Expand Messages Author Sort by Date

Hi, I'm fairly new to RelaxNG, and so my apologies in advance if I'm missing something basic. Does the jing command line program take XML schema dataypes into...
hcayless
Offline Send Email
Jul 1, 2009
12:07 am

Hi Hugh, Jing surely checks XML Schema datatypes including anyURI. See en example below. test.xml <?xml version="1.0" encoding="UTF-8"?> <?oxygen...
George Cristian Bina
george_bina
Offline Send Email
Jul 1, 2009
4:45 am

Thanks George, It looks like rnv obeys the spirit of the spec "Note: Spaces are, in principle, allowed in the ·lexical space· of anyURI, however, their use...
Hugh Cayless
hcayless
Offline Send Email
Jul 1, 2009
3:09 pm

... Yes, it does. But are you talking about ID or IDREF? Cheers, Makoto...
MURATA Makoto (FAMILY...
mktmurata
Offline Send Email
Jul 1, 2009
4:58 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help