2013-05-31 35 views
0

relax-ng中有一种方法可以指定属性名称必须与reg-ex匹配。例如html5中的数据属性。relax-ng compact:名称与reg-ex匹配的属性

<link rel="some-relation" href="/its-location/" data-color="blue" /> 

我希望我可以这样做......

LinkType |= (
    attribute rel { text }, 
    attribute data-* { text }*, 
    (attribute href_template { UriTemplate } | attribute href { Uri }) 
) 

回答

相关问题