Re: Validation Error, Locating and Fixing
- I have tried trang, with no better out come, and the rnc looks ok to me -- though I am no expert. What should I look for, and do you know of a way of getting -- say -- line numbers for the error?
Haven't tried anything libxml2-based. Any suggestions
--- In firstname.lastname@example.org, Steinar Bang <sb@...> wrote:
> >>>>> "a_stephm" <stephm@...>:
> > 3. When I then attempt to load the .rnc with rng-c-load-schema
> > I get the following error message:
> > Incorrect Schema:"...nxml-mode/schema/xanx.rnc"
> > 4318 "Expected `}' but got `+'
> > 2. More to the point does this indicate some problem
> > with the xsd or the rng converter?
> What I would have done is to take a look at the generated rnc file and
> see if it looked sensible. I would also have tried to parse the schema
> with a different RNC implementation. Eg. can trang load it...? What
> about anything libxml2-based?
>>>>> "a_stephm" <stephm@...>:I don't know, and it's impossible to say from the description. Perhaps
> I have tried trang, with no better out come, and the rnc looks ok to
> me -- though I am no expert. What should I look for, and do you know
> of a way of getting -- say -- line numbers for the error?
you should ask on rng-users, perhaps with a posting of the actual schema
file as an attachment?
Perhaps ask first if it's ok to send the schema as an attachment? I
don't know what the list's attachment policy is..
> Haven't tried anything libxml2-based. Any suggestionsxmllint: http://xmlsoft.org/xmllint.html
It's a part of libxml2, and usually installed with it. It doesn't do
schema validation, so you will have to try validating a sample document,
and see if you get any schema errors.