Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51815 - sandbox/committee/LWG/cd_status
From: bdawes_at_[hidden]
Date: 2009-03-17 08:00:18


Author: bemandawes
Date: 2009-03-17 08:00:17 EDT (Tue, 17 Mar 2009)
New Revision: 51815
URL: http://svn.boost.org/trac/boost/changeset/51815

Log:
Initial commit
Added:
   sandbox/committee/LWG/cd_status/
   sandbox/committee/LWG/cd_status/add_issue_numbers.bat (contents, props changed)
   sandbox/committee/LWG/cd_status/comments_report.xsl (contents, props changed)
   sandbox/committee/LWG/cd_status/comments_table.bat (contents, props changed)
   sandbox/committee/LWG/cd_status/comments_table.xsl (contents, props changed)
   sandbox/committee/LWG/cd_status/generate.sed (contents, props changed)

Added: sandbox/committee/LWG/cd_status/add_issue_numbers.bat
==============================================================================
--- (empty file)
+++ sandbox/committee/LWG/cd_status/add_issue_numbers.bat 2009-03-17 08:00:17 EDT (Tue, 17 Mar 2009)
@@ -0,0 +1,25 @@
+grep " Response to " lwg-active.html >i1
+
+np++ i1
+
+sed --file=generate.sed <i1 >temp.sed
+
+copy /y comments.xml temp1.xml
+
+change temp1.xml "\n nb=\q" " nb=\q"
+change temp1.xml "\n num=\q" " num=\q"
+change temp1.xml "\n uknum=\q" " uknum=\q"
+change temp1.xml "\n type=\q" " type=\q"
+change temp1.xml "\n owner=\q" " owner=\q"
+change temp1.xml "\n issue=\q" " issue=\q"
+change temp1.xml "\n disp=\q" " disp=\q"
+change temp1.xml "\n date=\q" " date=\q"
+change temp1.xml "\n extdoc=\q" " extdoc=\q"
+change temp1.xml "\n>\n<section>" ">\n<section>"
+
+sed --file=temp.sed <temp1.xml >comments_with_numbers.xml
+
+
+
+
+

Added: sandbox/committee/LWG/cd_status/comments_report.xsl
==============================================================================
--- (empty file)
+++ sandbox/committee/LWG/cd_status/comments_report.xsl 2009-03-17 08:00:17 EDT (Tue, 17 Mar 2009)
@@ -0,0 +1,186 @@
+<?xml version='1.0'?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- ************************************************************
+
+This stylesheet displays the information in comments.xml as an HTML
+table, with anchors for each separate issue of the form US1 or UK234.
+It is NOT the production stylesheet for producing the post-meeting
+comment-status document.
+
+It takes two parameters: "responsible" selects the "owner" attribute
+of the comments and can thus take the values "LWG", "CWG", or "editor";
+in addition, the special value "all" is accepted. The parameter
+"open_only" can be either "yes" or "no"; the former value selects only
+those comments for which the "disp" attribute is empty.
+
+************************************************************ -->
+
+<xsl:param name="responsible" select="'all'"/>
+<xsl:param name="open_only" select="'no'"/>
+
+<xsl:output method="html" encoding="us-ascii"/>
+
+<xsl:template match="*|@*"><xsl:copy><xsl:apply-templates select="@*|*|text()"/></xsl:copy></xsl:template>
+
+<xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ C++ CD1
+ <xsl:if test="$open_only='yes'">
+ Unresolved
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$responsible='LWG'">
+ Library
+ </xsl:when>
+ <xsl:when test="$responsible='CWG'">
+ Core Language
+ </xsl:when>
+ <xsl:when test="$responsible='editor'">
+ Editorial
+ </xsl:when>
+ </xsl:choose>
+ Comments
+ </TITLE>
+ </HEAD>
+ <BODY>
+ <CENTER>
+ <H1>
+ C++ CD1
+ <xsl:if test="$open_only='yes'">
+ Unresolved
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$responsible='LWG'">
+ Library
+ </xsl:when>
+ <xsl:when test="$responsible='CWG'">
+ Core Language
+ </xsl:when>
+ <xsl:when test="$responsible='editor'">
+ Editorial
+ </xsl:when>
+ </xsl:choose>
+ Comments
+ </H1>
+ <H2>
+ (Rev.
+ <xsl:value-of select="/document/@rev"/>,
+ <xsl:value-of select="/document/@date"/>)
+ </H2>
+ <H3>
+ William M. Miller<BR/>
+ Edison Design Group, Inc.<BR/>
+ <A HREF="mailto://wmm@edg.com">wmm_at_[hidden]</A>
+ </H3>
+ </CENTER>
+ <xsl:choose>
+ <xsl:when test="$responsible='all'">
+ <xsl:apply-templates select="document/comment"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="document/comment[@owner=$responsible]"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </BODY>
+ </HTML>
+</xsl:template>
+
+<xsl:template match="comment">
+
+<hr/>
+
+<!-- ************************************************************
+
+The <comment> template adds a row to the table if the comment is
+currently unresolved (i.e., the "disp" attribute is empty) or if we
+are printing all comments.
+
+************************************************************ -->
+
+ <xsl:if test="not($open_only='yes') or @disp=''">
+
+
+<!-- ************************************************************
+
+Add an anchor to the ID so we can reference it as a URI.
+
+************************************************************ -->
+
+ <A>
+ <xsl:attribute name="NAME">
+ <xsl:value-of select="@nb"/><xsl:value-of select="@num"/>
+ </xsl:attribute>
+ <xsl:value-of select="@nb"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@num"/>
+ </A>
+
+<!-- ************************************************************
+
+If this is a UK comment, add a link to the UK C++ panel's web site for
+the additional information there, using the "uknum" attribute.
+
+************************************************************ -->
+
+ <xsl:if test="@nb[.='UK']">
+ <A>
+ <xsl:attribute name="HREF">
+ http://cxxpanel.org.uk/ballotcomment/ select="@uknum"/>
+ </xsl:attribute>
+ [<xsl:value-of select="@uknum"/>]
+ </A>
+
+ </xsl:if>
+ <xsl:apply-templates select="section/*|section/text()"/>
+
+ <xsl:if test="normalize-space(para)">
+ &#182;
+ <xsl:apply-templates select="para/*|para/text()"/>
+ </xsl:if>&#160;
+
+ <xsl:if test="$responsible='all'">
+
+ <xsl:value-of select="@owner"/>&#160;
+
+ </xsl:if>
+ <xsl:value-of select="@disp"/>&#160;
+ <h3>Description</h3>
+ <xsl:apply-templates select="description/*|description/text()"/>&#160;
+
+ <h3>Suggestion</h3>
+ <xsl:apply-templates select="suggestion/*|suggestion/text()"/>&#160;
+ <h3>Issue</h3>
+ <xsl:value-of select="@issue"/>&#160;
+ <h3>Notes</h3>
+ <xsl:apply-templates select="notes/*|notes/text()"/>&#160;
+ <h3>Rationale</h3>
+ <xsl:value-of select="rationale"/>
+
+<!-- ************************************************************
+
+If there's a paper associated with the issue, add a reference to it.
+(Note that the URI for the paper is assumed to be in the standard format,
+and we just use the text from the appropriate character offset within
+the URI for the text of the link.)
+
+************************************************************ -->
+
+ <xsl:if test="not(@extdoc='')">
+ <xsl:if test="normalize-space(rationale)">
+ <P/>
+ </xsl:if>
+ See paper <A>
+ <xsl:attribute name="HREF">
+ <xsl:value-of select="@extdoc"/>
+ </xsl:attribute>
+ N<xsl:value-of select="substring(@extdoc,58,4)"/>
+ </A>
+ </xsl:if>&#160;
+
+ </xsl:if>
+</xsl:template>
+</xsl:stylesheet>

Added: sandbox/committee/LWG/cd_status/comments_table.bat
==============================================================================
--- (empty file)
+++ sandbox/committee/LWG/cd_status/comments_table.bat 2009-03-17 08:00:17 EDT (Tue, 17 Mar 2009)
@@ -0,0 +1 @@
+xsltproc --param responsible "'LWG'" %* comments_table.xsl comments_with_numbers.xml >comments_table.html
\ No newline at end of file

Added: sandbox/committee/LWG/cd_status/comments_table.xsl
==============================================================================
--- (empty file)
+++ sandbox/committee/LWG/cd_status/comments_table.xsl 2009-03-17 08:00:17 EDT (Tue, 17 Mar 2009)
@@ -0,0 +1,258 @@
+<?xml version='1.0'?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
+
+<!-- ************************************************************
+
+This stylesheet displays the information in comments.xml as an HTML
+table, with anchors for each separate issue of the form US1 or UK234.
+It is NOT the production stylesheet for producing the post-meeting
+comment-status document.
+
+It takes two parameters: "responsible" selects the "owner" attribute
+of the comments and can thus take the values "LWG", "CWG", or "editor";
+in addition, the special value "all" is accepted. The parameter
+"open_only" can be either "yes" or "no"; the former value selects only
+those comments for which the "disp" attribute is empty.
+
+************************************************************ -->
+
+<xsl:param name="responsible" select="'all'"/>
+<xsl:param name="open_only" select="'no'"/>
+
+<xsl:output method="html" encoding="us-ascii"/>
+
+<xsl:template match="*|@*"><xsl:copy><xsl:apply-templates select="@*|*|text()"/></xsl:copy></xsl:template>
+
+<xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ C++ CD1
+ <xsl:if test="$open_only='yes'">
+ Unresolved
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$responsible='LWG'">
+ Library
+ </xsl:when>
+ <xsl:when test="$responsible='CWG'">
+ Core Language
+ </xsl:when>
+ <xsl:when test="$responsible='editor'">
+ Editorial
+ </xsl:when>
+ </xsl:choose>
+ Comments
+ </TITLE>
+ </HEAD>
+ <BODY>
+ <CENTER>
+ <H1>
+ C++ CD1
+ <xsl:if test="$open_only='yes'">
+ Unresolved
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$responsible='LWG'">
+ Library
+ </xsl:when>
+ <xsl:when test="$responsible='CWG'">
+ Core Language
+ </xsl:when>
+ <xsl:when test="$responsible='editor'">
+ Editorial
+ </xsl:when>
+ </xsl:choose>
+ Comments
+ </H1>
+ <H2>
+ (Rev.
+ <xsl:value-of select="/document/@rev"/>,
+ <xsl:value-of select="/document/@date"/>)
+ </H2>
+ <H3>
+ William M. Miller<BR/>
+ Edison Design Group, Inc.<BR/>
+ <A HREF="mailto://wmm@edg.com">wmm_at_[hidden]</A>
+ </H3>
+ </CENTER>
+ <TABLE border="1" cellspacing="0" cellpadding="4" frame="box">
+ <THEAD>
+ <TR>
+ <xsl:choose>
+
+<!-- ************************************************************
+
+The "all" version of the table contains columns for both the owner and
+the <notes> element, currently used almost exclusively in LWG comments.
+
+************************************************************ -->
+
+ <xsl:when test="$responsible='all'">
+ <TH width="4%" align="center">ID</TH>
+ <TH width="6%" align="center">Ref</TH>
+ <TH width="6%" align="center">Owner</TH>
+ <TH width="6%" align="center">Disposition</TH>
+ <TH width="19%" align="center">Description</TH>
+ <TH width="19%" align="center">Suggested Change</TH>
+ <TH width="4%" align="center">Issue</TH>
+ <TH width="18%" align="center">Notes</TH>
+ <TH width="18%" align="center">Remarks</TH>
+ </xsl:when>
+
+<!-- ************************************************************
+
+The "LWG" version of the table contains a column for the <notes>
+element but not for the owner.
+
+************************************************************ -->
+
+ <xsl:when test="$responsible='LWG'">
+ <TH width="4%" align="center">ID</TH>
+ <TH width="6%" align="center">Ref</TH>
+ <TH width="6%" align="center">Disposition</TH>
+ <TH width="20%" align="center">Description</TH>
+ <TH width="20%" align="center">Suggested Change</TH>
+ <TH width="4%" align="center">Issue</TH>
+ <TH width="20%" align="center">Notes</TH>
+ <TH width="20%" align="center">Remarks</TH>
+ </xsl:when>
+
+<!-- ************************************************************
+
+The "CWG" and "editor" versions of the table contain neither owner nor
+<notes> information.
+
+************************************************************ -->
+
+ <xsl:otherwise>
+ <TH width="4%" align="center">ID</TH>
+ <TH width="6%" align="center">Ref</TH>
+ <TH width="6%" align="center">Disposition</TH>
+ <TH width="30%" align="center">Description</TH>
+ <TH width="30%" align="center">Suggested Change</TH>
+ <TH width="4%" align="center">Issue</TH>
+ <TH width="30%" align="center">Remarks</TH>
+ </xsl:otherwise>
+ </xsl:choose>
+ </TR>
+ </THEAD>
+ <TBODY>
+ <xsl:choose>
+ <xsl:when test="$responsible='all'">
+ <xsl:apply-templates select="document/comment"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="document/comment[@owner=$responsible]"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </TBODY>
+ </TABLE>
+ </BODY>
+ </HTML>
+</xsl:template>
+
+<xsl:template match="comment">
+
+<!-- ************************************************************
+
+The <comment> template adds a row to the table if the comment is
+currently unresolved (i.e., the "disp" attribute is empty) or if we
+are printing all comments.
+
+************************************************************ -->
+
+ <xsl:if test="not($open_only='yes') or @disp=''">
+ <TR>
+ <TD valign="top">
+
+<!-- ************************************************************
+
+Add an anchor to the ID so we can reference it as a URI.
+
+************************************************************ -->
+
+ <A>
+ <xsl:attribute name="NAME">
+ <xsl:value-of select="@nb"/><xsl:value-of select="@num"/>
+ </xsl:attribute>
+ <xsl:value-of select="@nb"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@num"/>
+ </A>
+
+<!-- ************************************************************
+
+If this is a UK comment, add a link to the UK C++ panel's web site for
+the additional information there, using the "uknum" attribute.
+
+************************************************************ -->
+
+ <xsl:if test="@nb[.='UK']">
+ <BR/>
+ <A>
+ <xsl:attribute name="HREF">
+ http://cxxpanel.org.uk/ballotcomment/ select="@uknum"/>
+ </xsl:attribute>
+ [<xsl:value-of select="@uknum"/>]
+ </A>
+ </xsl:if>
+ </TD>
+ <TD valign="top">
+ <xsl:apply-templates select="section/*|section/text()"/>
+ <xsl:if test="normalize-space(para)">
+ &#182;
+ <xsl:apply-templates select="para/*|para/text()"/>
+ </xsl:if>&#160;
+ </TD>
+ <xsl:if test="$responsible='all'">
+ <TD valign="top">
+ <xsl:value-of select="@owner"/>&#160;
+ </TD>
+ </xsl:if>
+ <TD valign="top">
+ <xsl:value-of select="@disp"/>&#160;
+ </TD>
+ <TD valign="top">
+ <xsl:apply-templates select="description/*|description/text()"/>&#160;
+ </TD>
+ <TD valign="top">
+ <xsl:apply-templates select="suggestion/*|suggestion/text()"/>&#160;
+ </TD>
+ <TD valign="top">
+ <xsl:value-of select="@issue"/>&#160;
+ </TD>
+ <xsl:if test="$responsible='all' or $responsible='LWG'">
+ <TD valign="top">
+ <xsl:apply-templates select="notes/*|notes/text()"/>&#160;
+ </TD>
+ </xsl:if>
+ <TD valign="top">
+ <xsl:value-of select="rationale"/>
+
+<!-- ************************************************************
+
+If there's a paper associated with the issue, add a reference to it.
+(Note that the URI for the paper is assumed to be in the standard format,
+and we just use the text from the appropriate character offset within
+the URI for the text of the link.)
+
+************************************************************ -->
+
+ <xsl:if test="not(@extdoc='')">
+ <xsl:if test="normalize-space(rationale)">
+ <BR/><BR/>
+ </xsl:if>
+ See paper <A>
+ <xsl:attribute name="HREF">
+ <xsl:value-of select="@extdoc"/>
+ </xsl:attribute>
+ N<xsl:value-of select="substring(@extdoc,58,4)"/>
+ </A>
+ </xsl:if>&#160;
+ </TD>
+ </TR>
+ </xsl:if>
+</xsl:template>
+</xsl:stylesheet>

Added: sandbox/committee/LWG/cd_status/generate.sed
==============================================================================
--- (empty file)
+++ sandbox/committee/LWG/cd_status/generate.sed 2009-03-17 08:00:17 EDT (Tue, 17 Mar 2009)
@@ -0,0 +1,3 @@
+# \/<comment nb="\2" num="\3"\/ s% issue="[^"]*"% issue="\1"%
+
+s/<h3><a name="\([0-9]*\)"><\/a>[^\.]*\. Response to \(..\) \([0-9]*\)<\/h3>/\/<comment nb="\2" num="\3"\/ s% issue="[^"]*"% issue="\1"%/g
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk