[rfc-i] sourcecode preparation

Joe Hildebrand (jhildebr) jhildebr at cisco.com
Fri Feb 12 12:48:13 PST 2016


Say my input XML3RFCv3 doc has this:

<sourcecode src="foo/bar.py"/>

Is it reasonable that the preptool might output this?

<sourcecode name="bar.py" type="python">

code here
</sourcecode>

If so, we would need to following two preptool rules:

- If a <sourcecode> element contains a src attribute, but not a name attribute, copy the basename of the src attribute into the name attribute
- If a <sourcecode> element contains a src attribute, but not a type attribute, and the preptool can tell what the type attribute should be from the filename in the src attribute, the tool MAY insert the correct type attribute.

Thoughts?

-- 
Joe Hildebrand





More information about the rfc-interest mailing list