|
List Info
Thread: Correct behaviour of RelaxNG interleave
|
|
| Correct behaviour of RelaxNG interleave |

|
2007-01-24 07:57:50 |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I would like to ask, what is the correct behaviour of RelaxNG
interleave? Suppose we have the following example:
blueA = element blueA
blueB = element blueB
redA = element redA
redB = element redB
blue = blueA? & blueB?
red = redA? & redB?
profile_current = blue & red
start = element profile {
profile_current
}
Then is the following XML valid?
Or only these should be accepted?
Simply put: am I able to interlave both red and blue tags mutually or I
can only interleave blue tags followed with interleaved red ones and
vice-versa?
- --
Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o
Package Maintainer Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.cz http://www.suse.cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFt2XeASE5C6aRcUQRAq1OAKCdCtFbCs7qZf4BEoan0ux4/6UlDgCfW7Ic
NzaVxNgI6WGmrAkId5a2Wyw=
=Uvru
-----END PGP SIGNATURE-----
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
| Re: Correct behaviour of RelaxNG
interleave |

|
2007-01-24 08:23:22 |
|
* Pavol Rusnak wrote:
>I would like to ask, what is the correct behaviour of RelaxNG
>interleave? Suppose we have the following example:
The specification http://relaxng.org/spec-20011203.html#IDA2Z0R or
http://books.xmlschemata.org/relaxng/relax-CHP-6-SECT-7.html should
answer this. It seems you have found a bug in libxml2-2.6.27.
>blueA = element blueA
>blueB = element blueB
>redA = element redA
>redB = element redB
>
>blue = blueA? & blueB?
>red = redA? & redB?
>
>profile_current = blue & red
>start = element profile {
> profile_current
>}
>
>Then is the following XML valid?
>
>
>
>
Yes it is. Your test case somewhat simplified:
a = element a
b = element b
c = element c
d = element d
e = a & b
f = c & d
start = element root { e & f }
along with
MSV and Jing will correctly validate this document, but the current
version of libxml2 rejects it. If you want some other behavior, you
cannot use directly.
--
Björn Höhrmann · mailto:bjoern hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
| Re: Correct behaviour of RelaxNG
interleave |

|
2007-01-24 08:25:26 |
|
On Wed, Jan 24, 2007 at 02:57:50PM +0100, Pavol Rusnak wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
> I would like to ask, what is the correct behaviour of RelaxNG
> interleave? Suppose we have the following example:
>
> blueA = element blueA
> blueB = element blueB
> redA = element redA
> redB = element redB
>
> blue = blueA? & blueB?
> red = redA? & redB?
>
> profile_current = blue & red
> start = element profile {
> profile_current
> }
>
...
> Simply put: am I able to interlave both red and blue tags mutually or I
> can only interleave blue tags followed with interleaved red ones and
> vice-versa?
I don't know the compact syntax, I suggest you provide the XML one,
then the diagnostic should be fairly trivial.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
| Re: Correct behaviour of RelaxNG
interleave |

|
2007-01-24 08:30:07 |
|
* Bjoern Hoehrmann wrote:
>Your test case somewhat simplified:
>
> a = element a
> b = element b
> c = element c
> d = element d
>
> e = a & b
> f = c & d
>
> start = element root { e & f }
As Daniel asked, this would be
in the XML syntax.
--
Björn Höhrmann · mailto:bjoern hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
| Re: Correct behaviour of RelaxNG
interleave |

|
2007-01-24 08:37:02 |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bjoern Hoehrmann wrote:
> The specification http://relaxng.org/spec-20011203.html#IDA2Z0R or
> http://books.xmlschemata.org/relaxng/relax-CHP-6-SECT-7.html should
> answer this. It seems you have found a bug in libxml2-2.6.27.
Not me, mine colleagues Uwe Gansert and Martin Vidner had.
> MSV and Jing will correctly validate this document, but the current
> version of libxml2 rejects it. If you want some other behavior, you
> cannot use directly.
They found out that Jing and xmllint behave differently in this test
case. Will you file the report or I should do it ?
- --
Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o
Package Maintainer Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.cz http://www.suse.cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFt28OASE5C6aRcUQRArFfAJ9RUGnG7ZFMC+wxF+52sDsjkBoPOgCfcgKL
JRbvMf4QVUCo99sN7XbHxJk=
=8mXH
-----END PGP SIGNATURE-----
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
| Re: Correct behaviour of RelaxNG
interleave |

|
2007-01-24 08:39:08 |
|
* Pavol Rusnak wrote:
>They found out that Jing and xmllint behave differently in this test
>case. Will you file the report or I should do it ?
Please do.
--
Björn Höhrmann · mailto:bjoern hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
| Re: Correct behaviour of RelaxNG
interleave |

|
2007-01-24 08:51:33 |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bjoern Hoehrmann wrote:
> * Pavol Rusnak wrote:
>> They found out that Jing and xmllint behave differently in this test
>> case. Will you file the report or I should do it ?
>
> Please do.
Filed as libxml2 bug: http://bugzilla.gnome.org/show_bug.cgi?id=400223
- --
Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o
Package Maintainer Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
prusnak[at]suse.cz http://www.suse.cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFt3J1ASE5C6aRcUQRAs3+AKDRuwUmdJ14PmSzkoQDMF+UehQLhwCgtt6J
gFUsSaGyDM0a9jfBpFvLubc=
=j1Zi
-----END PGP SIGNATURE-----
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mail.gnome.org/mailman/listinfo/xml
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|