
From: Chris.Newman@Sun.COM (Chris Newman)
Date: Fri, 21 Feb 2003 12:12:46 -0800
Subject: [xml2rfc] rfc2xml
In-Reply-To: <Pine.LNX.4.44.0302202102150.12419-100000@clarinet.u-strasbg.fr>
References: <Pine.LNX.4.44.0302202102150.12419-100000@clarinet.u-strasbg.fr>
Message-ID: <2147483647.1045829566@nifty-jr.west.sun.com>

There is my heuristic text RFC to HTML converter:

        http://www.apps.ietf.org/rfc/

I did briefly examine the idea of making it convert a text RFC to XML, but 
although the heuristics are pretty good, it does not carry enough state to 
generate XML because it's a one pass converter.  If someone wishes to 
tackle that task of a heuristic text RFC to XML converter, I'd be glad to 
provide my source code and a discussion of what it got right and what it 
got wrong.

                - Chris

begin  quotation by Mickaël Hoerdt on 2003/2/20 21:05 +0100:
> I'm looking for the mirror command of xml2rfc, that is with
> a rfc, producing the xml source to reformat it in other forms.



From: hoerdt@clarinet.u-strasbg.fr (=?ISO-8859-1?Q?Micka=EBl_Hoerdt?=)
Date: Thu, 20 Feb 2003 21:05:19 +0100 (CET)
Subject: [xml2rfc] rfc2xml
Message-ID: <Pine.LNX.4.44.0302202102150.12419-100000@clarinet.u-strasbg.fr>

Hello,

I'm looking for the mirror command of xml2rfc, that is with
a rfc, producing the xml source to reformat it in other forms.


Thanks,

Hoerdt Mickael



From: julian.reschke@gmx.de (Julian Reschke)
Date: Wed, 19 Feb 2003 09:35:06 +0100
Subject: [xml2rfc] Using XSLT
In-Reply-To: <138AA78F80DCE84B8EE424399FFBF9C9133A0E@exchange.ad.skymv.com>
Message-ID: <JIEGINCHMLABHJBIGKBCOEECGIAA.julian.reschke@gmx.de>

http://www.dankohn.com/draft-kohn-news-article-01.xml

displays  XSLT-formatted on my machine. Maybe you need to upgrade your
Mozilla version?

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

> -----Original Message-----
> From: xml2rfc-admin@lists.xml.resource.org
> [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Dan Kohn
> Sent: Wednesday, February 19, 2003 9:31 AM
> To: Henrik Levkowetz
> Cc: xml2rfc@lists.xml.resource.org
> Subject: RE: [xml2rfc] Using XSLT
>
>
> Thanks for the advice, but that didn't quite do it. I still get the same
> error after making the change you suggest.  Further, I see apache.org
> serving out the rfc2629.xslt as text/plain, yet IE6 shows Fielding's
> draft fine but not mine.
>
> Any other suggestions?
>
>           - dan
> --
> Dan Kohn <mailto:dan@dankohn.com>
> <http://www.dankohn.com/>  <tel:+1-650-327-2600>
>
> -----Original Message-----
> From: Henrik Levkowetz [mailto:henrik@levkowetz.com]
> Sent: Tuesday, February 18, 2003 10:33
> To: Dan Kohn
> Cc: xml2rfc@lists.xml.resource.org
> Subject: Re: [xml2rfc] Using XSLT
>
>
> On Tue, 18 Feb 2003 09:55:23 -0800
> "Dan Kohn" <dan@dankohn.com> wrote:
>
> > Can anyone tell me why
> > <http://www.apache.org/~fielding/uri/rev-2002/rfc2396bis.xml> displays
> > as nicely formatted HTML in IE and Mozilla but
> > <http://www.dankohn.com/draft-kohn-news-article-01.xml> does not?
>
> www.dankohn.com serves up /rfc2629.xslt with a Content-Type of
> text/plain
> instead of application/xml. One way of fixing this is to add the
> following
> line to your .htaccess file:
>
> AddType application/xml .xslt
>
> This requires you to have AllowOverride FileInfo configured for apache
> (which is the default).
>
> 	Henrik
>
> --
>   "What a waste it is to lose one's mind. Or not to have a mind is
>   being very wasteful. How true that is."
>     -- J. Danforth Quayle
>
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@lists.xml.resource.org
> http://lists.xml.resource.org/mailman/listinfo/xml2rfc
>



From: dan@dankohn.com (Dan Kohn)
Date: Wed, 19 Feb 2003 00:31:26 -0800
Subject: [xml2rfc] Using XSLT
Message-ID: <138AA78F80DCE84B8EE424399FFBF9C9133A0E@exchange.ad.skymv.com>

Thanks for the advice, but that didn't quite do it. I still get the same
error after making the change you suggest.  Further, I see apache.org
serving out the rfc2629.xslt as text/plain, yet IE6 shows Fielding's
draft fine but not mine.

Any other suggestions?

          - dan
--
Dan Kohn <mailto:dan@dankohn.com>
<http://www.dankohn.com/>  <tel:+1-650-327-2600>

-----Original Message-----
From: Henrik Levkowetz [mailto:henrik@levkowetz.com] 
Sent: Tuesday, February 18, 2003 10:33
To: Dan Kohn
Cc: xml2rfc@lists.xml.resource.org
Subject: Re: [xml2rfc] Using XSLT


On Tue, 18 Feb 2003 09:55:23 -0800
"Dan Kohn" <dan@dankohn.com> wrote:

> Can anyone tell me why
> <http://www.apache.org/~fielding/uri/rev-2002/rfc2396bis.xml> displays
> as nicely formatted HTML in IE and Mozilla but
> <http://www.dankohn.com/draft-kohn-news-article-01.xml> does not?

www.dankohn.com serves up /rfc2629.xslt with a Content-Type of
text/plain
instead of application/xml. One way of fixing this is to add the
following
line to your .htaccess file:

AddType application/xml .xslt

This requires you to have AllowOverride FileInfo configured for apache
(which is the default).

	Henrik

-- 
  "What a waste it is to lose one's mind. Or not to have a mind is
  being very wasteful. How true that is."  
    -- J. Danforth Quayle



From: henrik@levkowetz.com (Henrik Levkowetz)
Date: Tue, 18 Feb 2003 19:32:40 +0100
Subject: [xml2rfc] Using XSLT
In-Reply-To: <138AA78F80DCE84B8EE424399FFBF9C904FAB7@exchange.ad.skymv.com>
References: <138AA78F80DCE84B8EE424399FFBF9C904FAB7@exchange.ad.skymv.com>
Message-ID: <20030218193241.4f564a23.henrik@levkowetz.com>

On Tue, 18 Feb 2003 09:55:23 -0800
"Dan Kohn" <dan@dankohn.com> wrote:

> Can anyone tell me why
> <http://www.apache.org/~fielding/uri/rev-2002/rfc2396bis.xml> displays
> as nicely formatted HTML in IE and Mozilla but
> <http://www.dankohn.com/draft-kohn-news-article-01.xml> does not?

www.dankohn.com serves up /rfc2629.xslt with a Content-Type of text/plain
instead of application/xml. One way of fixing this is to add the following
line to your .htaccess file:

AddType application/xml .xslt

This requires you to have AllowOverride FileInfo configured for apache
(which is the default).

	Henrik

-- 
  "What a waste it is to lose one's mind. Or not to have a mind is
  being very wasteful. How true that is."  
    -- J. Danforth Quayle


From: dan@dankohn.com (Dan Kohn)
Date: Tue, 18 Feb 2003 09:55:23 -0800
Subject: [xml2rfc] Using XSLT
Message-ID: <138AA78F80DCE84B8EE424399FFBF9C904FAB7@exchange.ad.skymv.com>

Can anyone tell me why
<http://www.apache.org/~fielding/uri/rev-2002/rfc2396bis.xml> displays
as nicely formatted HTML in IE and Mozilla but
<http://www.dankohn.com/draft-kohn-news-article-01.xml> does not?

I would guess it has something to do with my extensive use of external
entities, except that IE and Mozilla open (and transform) the file fine
off of my hard disk.  It only breaks over the web.  Both rfc2629.dtd and
rfc2629.xslt are present in the same web directory, so I can't figure
out the breakage.

Thanks in advance for any help.

          - dan
--
Dan Kohn <mailto:dan@dankohn.com>
<http://www.dankohn.com/>  <tel:+1-650-327-2600>


From: mrose+internet.xml2rfc@dbc.mtview.ca.us (Marshall Rose)
Date: Mon, 10 Feb 2003 09:16:36 -0800
Subject: [xml2rfc] xml2rfc v1.17 released
Message-ID: <20030210091636.4245a35e.mrose+internet.xml2rfc@dbc.mtview.ca.us>

in this release:

- a few bug fixes/enhancements for the include file facility

- the %c/startAt addition for lists

- some minor bugs fixed.

enjoy!

/mtr


From: henrik@levkowetz.com (Henrik Levkowetz)
Date: Sat, 8 Feb 2003 00:03:11 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <JIEGINCHMLABHJBIGKBCIELIGGAA.julian.reschke@gmx.de>
References: <20030207110152.4501df2f.henrik@levkowetz.com> <JIEGINCHMLABHJBIGKBCIELIGGAA.julian.reschke@gmx.de>
Message-ID: <20030208000311.06e7413b.henrik@levkowetz.com>

Julian,

On Fri, 7 Feb 2003 11:20:51 +0100, "Julian Reschke"
<julian.reschke@gmx.de> wrote:
> The main difference is that it's much much easier to calculate the
> sequence number in a stateless way. With my proposal, it's just the
> position within the list of all <t> elements that are child of <list>
> elements with the same counter value. With the current ad hoc
> implementation, it's much harder.

Ok, I see.  I'm fine with doing things this way, but I guess you
might have to get buy-in from those that needed the global counter
lists in the first place.

> BTW: I have no objection to startAt. However I'd like to see a use
> case first.

Ok. Currently my needs have only been format-style lists with
start-at 1 on each new invocation.

	Henrik


From: julian.reschke@gmx.de (Julian Reschke)
Date: Fri, 7 Feb 2003 11:20:51 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <20030207110152.4501df2f.henrik@levkowetz.com>
Message-ID: <JIEGINCHMLABHJBIGKBCIELIGGAA.julian.reschke@gmx.de>

The main difference is that it's much much easier to calculate the sequence
number in a stateless way. With my proposal, it's just the position within
the list of all <t> elements that are child of <list> elements with the same
counter value. With the current ad hoc implementation, it's much harder.

BTW: I have no objection to startAt. However I'd like to see a use case
first.

In general, I really dislike the current trendf towards overloading current
RFC2629 elements (such as the format string stuff). This makes it very very
hard to come up with compatible implementations. If in the end only
Marshall's tool can provide the desired output, the value of a generic XML
format vanishes.

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

> -----Original Message-----
> From: xml2rfc-admin@lists.xml.resource.org
> [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Henrik
> Levkowetz
> Sent: Friday, February 07, 2003 11:02 AM
> To: Julian Reschke
> Cc: mrose+internet.xml2rfc@dbc.mtview.ca.us;
> xml2rfc@lists.xml.resource.org
> Subject: Re: [xml2rfc] 1.15 format style list numbering does not reset
>
>
> Mmm,
> 	This removes the possibility of starting a counter at
> some number other than 1. Not that I use that possibility
> currently, though.
>
> 	However, I don't see that it improves things in any
> way with respect to local state, compared to implementing the
> other proposal by making every format style counter global, and
> re-initializing it with a new value when you come across the
> startAt attribute?
>
> 	Henrik
>
>
> On Fri, 7 Feb 2003 10:25:44 +0100, "Julian Reschke"
> <julian.reschke@gmx.de> wrote:
> > OK,
> >
> > here's a proposal for an alternative that avoids local state, has the
> > same features and IMHO make things much easier to understand:
> >
> > 1) list counters are local and start with 1, unless:
> >
> > 2) there's a "counter" attribute on the list that identifies a global
> > counter variable.
> >
> > So the code for the original requirement (global counter of
> > requirements) would be written as:
> >
> > <list style="format R%d" counter="requirements">
> > ...
> >
> >
> > Julian
> >
> > --
> > <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
> >
> > > -----Original Message-----
> > > From: xml2rfc-admin@lists.xml.resource.org
> > > [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Marshall
> > > Rose Sent: Friday, January 31, 2003 1:45 AM
> > > To: Henrik Levkowetz
> > > Cc: xml2rfc@lists.xml.resource.org
> > > Subject: Re: [xml2rfc] 1.15 format style list numbering does not
> > > reset
> > >
> > >
> > > > > there's no way to reset it. you have to use a different format
> > > > > string.
> > > >
> > > > Ok. I think having the option to specify a startAt="..." attribute
> > > > would make it even more flexible ... and work for the draft I'm
> > > > handling right now .. ,:-]
> > >
> > > ok.
> > >
> > > > > > Feature query:
> > > > > >   There seems to be no way of using letters instead of numbers
> > > > > >   in the format style list. On a whim I tried style="format
> > > > > >   [%c]" and style="letters format [%d]" without success; then
> > > > > >   I checked the tcl code and saw that there's no provisions
> > > > > >   for that. It would be nice to have, for now I'll use
> > > > > >   style="hanging" and label manually.
> > > > >
> > > > > it's easy enough to add this, if you want.
> > > >
> > > > Yes, please, that would be very good. In the current draft I've
> > > > seen it makes sense both stylistically and to some extent
> > > > semantically
> > > to have this
> > > > option. So if it's not a tough nut....
> > >
> > > i'll add something and send it to you for testing.
> > >
> > > /mtr
> > > _______________________________________________
> > > xml2rfc mailing list
> > > xml2rfc@lists.xml.resource.org
> > > http://lists.xml.resource.org/mailman/listinfo/xml2rfc
> > >
>
>
>
> 		Henrik
>
> --
>
> If you think last Tuesday was a drag, wait till you see what happens
> tomorrow!
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@lists.xml.resource.org
> http://lists.xml.resource.org/mailman/listinfo/xml2rfc
>



From: henrik@levkowetz.com (Henrik Levkowetz)
Date: Fri, 7 Feb 2003 11:01:52 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <JIEGINCHMLABHJBIGKBCKELGGGAA.julian.reschke@gmx.de>
References: <20030130164452.070df5f9.mrose+internet.xml2rfc@dbc.mtview.ca.us> <JIEGINCHMLABHJBIGKBCKELGGGAA.julian.reschke@gmx.de>
Message-ID: <20030207110152.4501df2f.henrik@levkowetz.com>

Mmm, 
	This removes the possibility of starting a counter at
some number other than 1. Not that I use that possibility
currently, though.

	However, I don't see that it improves things in any
way with respect to local state, compared to implementing the
other proposal by making every format style counter global, and 
re-initializing it with a new value when you come across the
startAt attribute?

	Henrik


On Fri, 7 Feb 2003 10:25:44 +0100, "Julian Reschke"
<julian.reschke@gmx.de> wrote:
> OK,
> 
> here's a proposal for an alternative that avoids local state, has the
> same features and IMHO make things much easier to understand:
> 
> 1) list counters are local and start with 1, unless:
> 
> 2) there's a "counter" attribute on the list that identifies a global
> counter variable.
> 
> So the code for the original requirement (global counter of
> requirements) would be written as:
> 
> <list style="format R%d" counter="requirements">
> ...
> 
> 
> Julian
> 
> --
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
> 
> > -----Original Message-----
> > From: xml2rfc-admin@lists.xml.resource.org
> > [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Marshall
> > Rose Sent: Friday, January 31, 2003 1:45 AM
> > To: Henrik Levkowetz
> > Cc: xml2rfc@lists.xml.resource.org
> > Subject: Re: [xml2rfc] 1.15 format style list numbering does not
> > reset
> >
> >
> > > > there's no way to reset it. you have to use a different format
> > > > string.
> > >
> > > Ok. I think having the option to specify a startAt="..." attribute
> > > would make it even more flexible ... and work for the draft I'm
> > > handling right now .. ,:-]
> >
> > ok.
> >
> > > > > Feature query:
> > > > >   There seems to be no way of using letters instead of numbers
> > > > >   in the format style list. On a whim I tried style="format
> > > > >   [%c]" and style="letters format [%d]" without success; then
> > > > >   I checked the tcl code and saw that there's no provisions
> > > > >   for that. It would be nice to have, for now I'll use
> > > > >   style="hanging" and label manually.
> > > >
> > > > it's easy enough to add this, if you want.
> > >
> > > Yes, please, that would be very good. In the current draft I've
> > > seen it makes sense both stylistically and to some extent
> > > semantically
> > to have this
> > > option. So if it's not a tough nut....
> >
> > i'll add something and send it to you for testing.
> >
> > /mtr
> > _______________________________________________
> > xml2rfc mailing list
> > xml2rfc@lists.xml.resource.org
> > http://lists.xml.resource.org/mailman/listinfo/xml2rfc
> >



		Henrik

-- 

If you think last Tuesday was a drag, wait till you see what happens
tomorrow!


From: julian.reschke@gmx.de (Julian Reschke)
Date: Fri, 7 Feb 2003 10:25:44 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <20030130164452.070df5f9.mrose+internet.xml2rfc@dbc.mtview.ca.us>
Message-ID: <JIEGINCHMLABHJBIGKBCKELGGGAA.julian.reschke@gmx.de>

OK,

here's a proposal for an alternative that avoids local state, has the same
features and IMHO make things much easier to understand:

1) list counters are local and start with 1, unless:

2) there's a "counter" attribute on the list that identifies a global
counter variable.

So the code for the original requirement (global counter of requirements)
would be written as:

<list style="format R%d" counter="requirements">
...


Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

> -----Original Message-----
> From: xml2rfc-admin@lists.xml.resource.org
> [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Marshall Rose
> Sent: Friday, January 31, 2003 1:45 AM
> To: Henrik Levkowetz
> Cc: xml2rfc@lists.xml.resource.org
> Subject: Re: [xml2rfc] 1.15 format style list numbering does not reset
>
>
> > > there's no way to reset it. you have to use a different format string.
> >
> > Ok. I think having the option to specify a startAt="..." attribute would
> > make it even more flexible ... and work for the draft I'm handling right
> > now .. ,:-]
>
> ok.
>
> > > > Feature query:
> > > >   There seems to be no way of using letters instead of numbers in
> > > >   the format style list. On a whim I tried style="format [%c]" and
> > > >   style="letters format [%d]" without success; then I checked the
> > > >   tcl code and saw that there's no provisions for that. It would be
> > > >   nice to have, for now I'll use style="hanging" and label manually.
> > >
> > > it's easy enough to add this, if you want.
> >
> > Yes, please, that would be very good. In the current draft I've seen it
> > makes sense both stylistically and to some extent semantically
> to have this
> > option. So if it's not a tough nut....
>
> i'll add something and send it to you for testing.
>
> /mtr
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@lists.xml.resource.org
> http://lists.xml.resource.org/mailman/listinfo/xml2rfc
>



From: julian.reschke@gmx.de (Julian Reschke)
Date: Sun, 2 Feb 2003 22:00:38 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <20030202152443.37dea20c.henrik@levkowetz.com>
Message-ID: <JIEGINCHMLABHJBIGKBCAEBCGGAA.julian.reschke@gmx.de>

Oh well.

So how many counters are there? Does %c get it's own counter?

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

> -----Original Message-----
> From: xml2rfc-admin@lists.xml.resource.org
> [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Henrik
> Levkowetz
> Sent: Sunday, February 02, 2003 3:25 PM
> To: Julian Reschke
> Cc: mrose+internet.xml2rfc@dbc.mtview.ca.us;
> xml2rfc@lists.xml.resource.org
> Subject: Re: [xml2rfc] 1.15 format style list numbering does not reset
>
>
> The way I've understood it, <list> elements with style "format ....." has
> one counter per unique format string, and this counter is not
> reset between
> <list> invocations, by default.
>
> The startAt attribute would not change the incrementation characteristics
> for the counter, only change the current value. So
>
>     <list style="format [%d]">
>        <t>Able</t>
>        <t>Baker</t>
>     </list>
>
>     <list startAt="1" style="format [%d]">
>        <t>Charlie</t>
>        <t>Delta</t>
>     </list>
>
>     <list style="format [%d]">
>        <t>Echo</t>
>        <t>Foxtrot</t>
>     </list>
>
> produces:
>
>    [1] Able
>
>    [2] Baker
>
>    [1] Charlie
>
>    [2] Delta
>
>    [3] Echo
>
>    [4] Foxtrot
>
> or you could do
>
>     <list startAt="100" style="format [%d]">
>        <t>Able</t>
>        <t>Baker</t>
>     </list>
>
>     <list startAt="200" style="format [%d]">
>        <t>Charlie</t>
>        <t>Delta</t>
>     </list>
>
>     <list style="format [%d]">
>        <t>Echo</t>
>        <t>Foxtrot</t>
>     </list>
>
> resulting in:
>
>    [100] Able
>
>    [101] Baker
>
>    [200] Charlie
>
>    [201] Delta
>
>    [202] Echo
>
>    [203] Foxtrot
>
> 	Henrik
>
> On Sun, 2 Feb 2003 13:46:26 +0100, "Julian Reschke"
> <julian.reschke@gmx.de> wrote:
> > > From: xml2rfc-admin@lists.xml.resource.org
> > > [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of
> Marshall Rose
> > > Sent: Friday, January 31, 2003 1:45 AM
> > > To: Henrik Levkowetz
> > > Cc: xml2rfc@lists.xml.resource.org
> > > Subject: Re: [xml2rfc] 1.15 format style list numbering does not reset
> > >
> > >
> > > > > there's no way to reset it. you have to use a different
> format string.
> > > >
> > > > Ok. I think having the option to specify a startAt="..."
> attribute would
> > > > make it even more flexible ... and work for the draft I'm
> handling right
> > > > now .. ,:-]
> > >
> > > ok.
> >
> > So what does that mean if a document contains lists with and without
> > startAt? Where should the counter start for a list where "startAt" is
> > missing, but there was a previous list where startAt was specified?
> >
> > I'd really like to avoid local state here, because it makes XSLT
> > transformations (which try to be stateless) a complete mess.
> >
> > Julian
> >
> > --
> > <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
>
>
>
> 		Henrik
>
> --
>
> Living your life is a task so difficult, it has never been
> attempted before.
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@lists.xml.resource.org
> http://lists.xml.resource.org/mailman/listinfo/xml2rfc
>



From: swb@employees.org (Scott W Brim)
Date: Sun, 2 Feb 2003 10:25:06 -0500
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <20030202152443.37dea20c.henrik@levkowetz.com>
References: <20030130164452.070df5f9.mrose+internet.xml2rfc@dbc.mtview.ca.us> <JIEGINCHMLABHJBIGKBCMEAEGGAA.julian.reschke@gmx.de> <20030202152443.37dea20c.henrik@levkowetz.com>
Message-ID: <20030202152506.GB1904@sbrim-w2k>

Agreed.

On Sun, Feb 02, 2003 03:24:43PM +0100, Henrik Levkowetz allegedly wrote:
> The way I've understood it, <list> elements with style "format ....." has
> one counter per unique format string, and this counter is not reset between
> <list> invocations, by default.
> 
> The startAt attribute would not change the incrementation characteristics
> for the counter, only change the current value. So
> 
>     <list style="format [%d]">
>        <t>Able</t>
>        <t>Baker</t>
>     </list>
> 
>     <list startAt="1" style="format [%d]">
>        <t>Charlie</t>
>        <t>Delta</t>
>     </list>
> 
>     <list style="format [%d]">
>        <t>Echo</t>
>        <t>Foxtrot</t>
>     </list>
> 
> produces:
> 
>    [1] Able
> 
>    [2] Baker
> 
>    [1] Charlie
> 
>    [2] Delta
> 
>    [3] Echo
> 
>    [4] Foxtrot
> 
> or you could do
> 
>     <list startAt="100" style="format [%d]">
>        <t>Able</t>
>        <t>Baker</t>
>     </list>
> 
>     <list startAt="200" style="format [%d]">
>        <t>Charlie</t>
>        <t>Delta</t>
>     </list>
> 
>     <list style="format [%d]">
>        <t>Echo</t>
>        <t>Foxtrot</t>
>     </list>
> 
> resulting in:
> 
>    [100] Able
> 
>    [101] Baker
> 
>    [200] Charlie
> 
>    [201] Delta
> 
>    [202] Echo
> 
>    [203] Foxtrot
> 
> 	Henrik


From: henrik@levkowetz.com (Henrik Levkowetz)
Date: Sun, 2 Feb 2003 15:24:43 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <JIEGINCHMLABHJBIGKBCMEAEGGAA.julian.reschke@gmx.de>
References: <20030130164452.070df5f9.mrose+internet.xml2rfc@dbc.mtview.ca.us> <JIEGINCHMLABHJBIGKBCMEAEGGAA.julian.reschke@gmx.de>
Message-ID: <20030202152443.37dea20c.henrik@levkowetz.com>

The way I've understood it, <list> elements with style "format ....." has
one counter per unique format string, and this counter is not reset between
<list> invocations, by default.

The startAt attribute would not change the incrementation characteristics
for the counter, only change the current value. So

    <list style="format [%d]">
       <t>Able</t>
       <t>Baker</t>
    </list>

    <list startAt="1" style="format [%d]">
       <t>Charlie</t>
       <t>Delta</t>
    </list>

    <list style="format [%d]">
       <t>Echo</t>
       <t>Foxtrot</t>
    </list>

produces:

   [1] Able

   [2] Baker

   [1] Charlie

   [2] Delta

   [3] Echo

   [4] Foxtrot

or you could do

    <list startAt="100" style="format [%d]">
       <t>Able</t>
       <t>Baker</t>
    </list>

    <list startAt="200" style="format [%d]">
       <t>Charlie</t>
       <t>Delta</t>
    </list>

    <list style="format [%d]">
       <t>Echo</t>
       <t>Foxtrot</t>
    </list>

resulting in:

   [100] Able

   [101] Baker

   [200] Charlie

   [201] Delta

   [202] Echo

   [203] Foxtrot

	Henrik

On Sun, 2 Feb 2003 13:46:26 +0100, "Julian Reschke" <julian.reschke@gmx.de> wrote:
> > From: xml2rfc-admin@lists.xml.resource.org
> > [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Marshall Rose
> > Sent: Friday, January 31, 2003 1:45 AM
> > To: Henrik Levkowetz
> > Cc: xml2rfc@lists.xml.resource.org
> > Subject: Re: [xml2rfc] 1.15 format style list numbering does not reset
> >
> >
> > > > there's no way to reset it. you have to use a different format string.
> > >
> > > Ok. I think having the option to specify a startAt="..." attribute would
> > > make it even more flexible ... and work for the draft I'm handling right
> > > now .. ,:-]
> >
> > ok.
> 
> So what does that mean if a document contains lists with and without
> startAt? Where should the counter start for a list where "startAt" is
> missing, but there was a previous list where startAt was specified?
> 
> I'd really like to avoid local state here, because it makes XSLT
> transformations (which try to be stateless) a complete mess.
> 
> Julian
> 
> --
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760



		Henrik

-- 

Living your life is a task so difficult, it has never been attempted before.


From: julian.reschke@gmx.de (Julian Reschke)
Date: Sun, 2 Feb 2003 13:46:26 +0100
Subject: [xml2rfc] 1.15 format style list numbering does not reset
In-Reply-To: <20030130164452.070df5f9.mrose+internet.xml2rfc@dbc.mtview.ca.us>
Message-ID: <JIEGINCHMLABHJBIGKBCMEAEGGAA.julian.reschke@gmx.de>

> From: xml2rfc-admin@lists.xml.resource.org
> [mailto:xml2rfc-admin@lists.xml.resource.org]On Behalf Of Marshall Rose
> Sent: Friday, January 31, 2003 1:45 AM
> To: Henrik Levkowetz
> Cc: xml2rfc@lists.xml.resource.org
> Subject: Re: [xml2rfc] 1.15 format style list numbering does not reset
>
>
> > > there's no way to reset it. you have to use a different format string.
> >
> > Ok. I think having the option to specify a startAt="..." attribute would
> > make it even more flexible ... and work for the draft I'm handling right
> > now .. ,:-]
>
> ok.

So what does that mean if a document contains lists with and without
startAt? Where should the counter start for a list where "startAt" is
missing, but there was a previous list where startAt was specified?

I'd really like to avoid local state here, because it makes XSLT
transformations (which try to be stateless) a complete mess.

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


