Hi all,
I notice draft-ietf-netmod-rfc6020bis-09 still uses xpath1.0 as a notation for 
checking node references or dependencies.
I don’t know why we don’t use xpath3.0 or xpath2.0? xpath3.0 is more powerful 
than xpath1.0.
For example, xpath3.0 introduced conditional expression. It’s very useful for 
must statement.

If we have a schema tree like this:
List l {
  Key a;
  Leaf a {…}
  Leaf b {…}
  Leaf c {…}
  Leaf d {…}
}

If a= 5 and b=10 and c >20, then d must be less than 30 and greater than 15.
If use xpath1.0, the MUST statement should be:
Must “a != 5
 or b != 10
or c <=20
or  (a =5 and b = 10 and c>20 and d >15 and d < 30)”
if use xpath3.0:
must “if (a =5 and b = 10 and c>20)
then d>15 and d<30
else true()”

  if we feel xpath3.0 is too complicated, we can specify a small set of xpath 
grammar for YANG.

________________________________
冯冲
华为技术有限公司 Huawei Technologies Co., Ltd.
[Company_logo]

Phone:
Fax:
Mobile: 18519117316
Email: [email protected]
地址:南京市软件大道101号华为南京基地 邮编:210001
Huawei Technologies Co., Ltd.

http://www.huawei.com
________________________________
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, 
which
is intended only for the person or entity whose address is listed above. Any 
use of the
information contained herein in any way (including, but not limited to, total 
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify 
the sender by
phone or email immediately and delete it!
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to