473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with Relax NG

I'm trying to write a schema. I have a compact form version which works
fine, but the equivalent (?) xml format gets syntax errors from XML Nanny.
Here's the schema

<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"

xmlns:xs="http://www.w3.org/2001/XMLSchema">
<start>
<element name="test">
<element name="element1">
<text />
</element>
<ref name="element2" />
</element>
</start>

<define name="element2">
<oneOrMore>
<ref name="element3" />
</oneOrMore>
</define>

<define name="element3">
<zeroOrMore>
<element name="stringPattern">
<data type="text">
<param name="pattern">[0-9]+</param>
</data>
</element>
</zeroOrMore>
</define>
</grammar>
The error messages are:
ERROR:
Error type 'text' is not exported by type library
'http://relaxng.org/ns/structure/1.0'
line 22

ERROR:
Type library 'http://relaxng.org/ns/structure/1.0' does not allow type
parameters
line 22

Does this make sense to anyone here?

Thanks

Joe

Sep 10 '08 #1
0 1158

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Olivier Hoarau | last post by:
Hello, I have to validate a xml file, for that I use libxml and its function xmllint which needs the RELAX NG "full" schema of the file. I have only its RelaxNG compact schema, I have to...
8
by: euang | last post by:
Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003, and I am having major problems displaying...
6
by: Pieter | last post by:
I've read a lot of posts on "why relax ng is so very good" and on "why w3c xml schema should be the only schema language". I'm, however, still not clear on why I should prefer one over the other. ...
0
by: Henri Sivonen | last post by:
I have written a servlet wrapper and a custom entity resolver for Jing. My code needs to decide whether to instantiate a compact syntax schema reader or an XML syntax schema reader. I would very...
2
by: bauer_markus81 | last post by:
hallo, I have been looking at profound information about the strengths and weaknesses/limitations of Relax NG. I'd be grateful for comments. regards markus b.
10
by: Michael Strorm | last post by:
Hi! I've been having problems with a DTD. Having had the Sun XML validator reject a document, I put it through 'xmllint' for more information. 'Xmllint' noted a problem with the DTD itself;...
4
by: withtape | last post by:
Somebody please, please help me. I'm getting started using Relax NG to describe document schemas. After reading the grammar summarized by http://www.relaxng.org/spec-20011203.html (Section 5), I...
1
by: Torsten Munkelt | last post by:
Hi, I want to validate an XML document applying a combination of RELAX NG and Schematron. I have not found an appropriate validator. Would you please send me links to such validators. I would...
2
by: McSwell | last post by:
We have a small (~50 line) DTD and a slightly larger (~300 line) W3C schema that we need to convert to Relax NG. (And I have a larger W3C schema that I may some day convert.) I was hoping that...
3
by: katieh | last post by:
My website is made in flash. I have a dynamic image gallery within. How flash knows what to load into my gallery is it refers to my .xml document. Within flash, it displays the picture, and then in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.