[rfc-i] xml2rfc v3: publish the relax ng schema of draft-hoffman-xml2rfc-15

Carsten Bormann cabo at tzi.org
Mon Jan 19 12:49:20 PST 2015


On 2015-01-19 17:59, Paul Kyzivat wrote:
> Extracting from the xml based on the artwork type= attribute is pretty
> straightforward, and it should work with both v2 and v3 shouldn't it?

Yes.

ruby -r rexml/document -r open-uri -e "puts
REXML::XPath.first(REXML::Document.new(open(%q{http://tools.ietf.org/id/draft-iab-xml2rfcv2-00.xml})),
%{//artwork[@type='application/relax-ng-compact-syntax']}).text"

(Code-Golfing not included today.)

BTW, the RNC schema seems to work for me.

Gruesse, Carsten


More information about the rfc-interest mailing list