2013-05-31 38 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 }) 
) 

回答

相關問題