Hi Paul,
I am really sorry about that i will take care in the future
RegardsDharmendra Kumar Singh
On Thursday, 22 June 2017 4:20 PM, Paul Swennenhuis
wrote:
Oops ...
Not recommended to post 8 Mb to the list Dharmendra.
Paul
On 21-6-2017 8:14, Dharmendra Singh wrote:
Oops ...
Not recommended to post 8 Mb to the list Dharmendra.
Paul
On 21-6-2017 8:14, Dharmendra Singh wrote:
Hi all,
I have loaded the RNG schema using function db:store and also loaded
the XML in the DB which has to be validated, but i am getting the
error, below is my code:
let $binar
Thanks Marc and Christian,
As said Christian i have done as well
validate:rng(doc('/onix/jats/EL.2015.2835.xml'),'/relaxng/publishers-51cr.rnc',true())
and i am getting the same error : [bxerr:BXVA0001] Validation failed:
file:///C:/Users/DHARME~1.SIN/AppData/Local/Temp/BaseX-8123818404127734568.
> How have you loaded the 'publishers-51cr.rnc' schema into database because i
> am loading the schama using function db:store so it is being loaded as
> binary then i am retrieving using function db:retrive so i it can be
> problem in loading the schema.
Yes, that’s fine. Have you tried to dire
HI Christian,
How have you loaded the 'publishers-51cr.rnc' schema into database because i am
loading the schama using function db:store so it is being loaded as binary
then i am retrieving using function db:retrive so i it can be problem in
loading the schema.
On Wednesday, 21 June 201
As Marc said, the third argument needs to be set to true.
I created a new 'onix' database with a single XML document and the
passed on RelaxNG file, and the validatio could be successfully
started (it stopped with the error message '[bxerr:BXVA0001]
Validation failed', because my XML document did
Hi Marc,
I have done as you said to use true() as third param but still i am getting the
same error, below is my code.
let $binary := db:retrieve('onix','/relaxng/publishers-51cr.rnc')let $schema :=
bin:decode-string($binary)let $input :=
db:open('onix')returnvalidate:rng($input,$schema,true())
No problem. Just use the validate:rng#3. Provide true() as the third
param and it should happily process compact syntax for you.
Getting includes to work is a different matter though so your schema
should probably be standalone. Otherwise, maybe, store the schemas on
the filesystem.
Cheers,
--Marc
jing/trang is a Java tool for converting Relax NG schemas and for
validating with these schemas. If you are using oXygen XML, it is
integrated with the product and you can use it to convert rnc to rng.
It is maintained on Github
(https://github.com/relaxng/jing-trang/releases), although I don’
Hi Gerrit,
Thanks for your response can you please explain what is trang is this a
function or something else, can you please provide me the example or sample to
convert rnc file to rng using trang
RegardsDharmendra Kumar Singh
On Wednesday, 21 June 2017 1:06 PM, "Imsieke, Gerrit, le-tex"
Dear Singh,
Could you please pass us on your schema file?
Thanks in advance,
Christian
On Wed, Jun 21, 2017 at 8:20 AM, Dharmendra Singh wrote:
> Hi all,
>
> I have loaded the RNG schema using function db:store and also loaded the XML
> in the DB which has to be validated, but i am getting th
Hi Dharmendra,
The function validate:rng() seems to only accept a Relax NG *XML syntax*
document as its 2nd argument. You can convert the rnc file to rng using
trang and store it in the DB as a regular XML file.
Gerrit
On 6/21/17 8:20 AM, Dharmendra Singh wrote:
Hi all,
I have loaded the R
12 matches
Mail list logo