# HG changeset patch # User Henry S. Thompson # Date 1491495870 -3600 # Node ID 87e0d620deea15ebb89a444ee300bdd0e51a6978 # Parent bfa38afaea63fe654a1597895694ffa58d2d2b4b switch to elements from attributes and default namespace diff -r bfa38afaea63 -r 87e0d620deea notes.txt --- a/notes.txt Thu Apr 06 16:47:53 2017 +0100 +++ b/notes.txt Thu Apr 06 17:24:30 2017 +0100 @@ -46,7 +46,7 @@ there was content before. ----------- Using attributes to hold space-separated lists is risky, as in -refs.xsl output, is risky! +refs.xsl output, is risky! Fixed, see below. ----------- Not handling variables as references. Not catching external references to variables. Not catching naked [n]! as external @@ -55,7 +55,8 @@ The definition table is in workbook.xml definedNames/definedName[@name=$name]/. Sheet name to filename mapping for locals is in workbook.xml sheets/sheet[@name=$sname]/@sheetId ----------- -Switch to default namespace in order to reduce size and improve readability +Switch to default namespace in order to reduce size and improve +readability, and to elements instead of attributes ----------- Should put another step after refs.xsl to compute a map from distinct-values of all targets to all the cells which use them diff -r bfa38afaea63 -r 87e0d620deea rect.xsl --- a/rect.xsl Thu Apr 06 16:47:53 2017 +0100 +++ b/rect.xsl Thu Apr 06 17:24:30 2017 +0100 @@ -1,11 +1,11 @@ - + - + - + - + @@ -56,15 +56,15 @@ - + 1 - - - + + + - + - + diff -r bfa38afaea63 -r 87e0d620deea refs.xsl --- a/refs.xsl Thu Apr 06 16:47:53 2017 +0100 +++ b/refs.xsl Thu Apr 06 17:24:30 2017 +0100 @@ -10,7 +10,7 @@ - + @@ -41,12 +41,15 @@ else $bit else ()"/> - - - - + + + + + + + + +