[xml2rfc] shorter refs to i-ds

mrose@dbc.mtview.ca.us (Marshall Rose) Mon, 11 November 2002 00:37 UTC

From: mrose@dbc.mtview.ca.us
Date: Sun, 10 Nov 2002 16:37:48 -0800
Subject: [xml2rfc] shorter refs to i-ds
In-Reply-To: <E18B1bE-000GHA-00@rip.psg.com>
References: <E18Ay4w-000AhW-00@rip.psg.com> <20021110132659.1369578a.mrose+internet.xml2rfc@dbc.mtview.ca.us> <E18B1bE-000GHA-00@rip.psg.com>
Message-ID: <20021110163748.7b489dc4.mrose@dbc.mtview.ca.us>

> > - provide a way of mapping the anchor strings within the main
> >   document, e.g.,
> >     <?rfc anchormap='%I-D\.ietf-(*)%\1%'?>
> >   which would give you
> >     [ipngwg-addr-arch-v3]  Gupta, M. ...
> 
> sure.  better.  or, to be grotty
> 
>    this is some document text which has an embedded reference
>    <xref target="I-D.ietf-ipngwg-addr-arch-v3"></xref> in it.
> ...
> <references>
>   <?rfc include="reference.I-D.ietf-ipngwg-addr-arch-v3" label="foo" ?>
>   </references>
> 
> producing
> 
>    [foo]    Gupta, M. and S. Deering, "IP Version 6 Addressing
> 	    Architecture", draft- ietf-ipngwg-addr-arch-v3-11 
> 	    (work in progress), October 2002.

unfortunately, the architecture of xml2rfc does the include
processing before any xml processing actually occurs, so it's not
easy to modify the "<?rfc include" mechanism.
    
so, do you want me to implement the regexp-based subsitution
mechanism?
    
/mtr