diff src/elab_util.sml @ 720:acb8537f58f0

Stop tracking CSS classes in XML types
author Adam Chlipala <adamc@hcoop.net>
date Sun, 12 Apr 2009 12:31:54 -0400
parents f152f215a02c
children 8688e01ae469
line wrap: on
line diff
--- a/src/elab_util.sml	Sun Apr 12 11:08:00 2009 -0400
+++ b/src/elab_util.sml	Sun Apr 12 12:31:54 2009 -0400
@@ -797,9 +797,8 @@
                                                  | DCookie (tn, x, n, c) =>
                                                    bind (ctx, NamedE (x, (CApp ((CModProj (n, [], "cookie"), loc),
                                                                                 c), loc)))
-                                                 | DStyle (tn, x, n, c) =>
-                                                   bind (ctx, NamedE (x, (CApp ((CModProj (n, [], "css_class"), loc),
-                                                                                c), loc))),
+                                                 | DStyle (tn, x, n) =>
+                                                   bind (ctx, NamedE (x, (CModProj (n, [], "css_class"), loc))),
                                                mfd ctx d)) ctx ds,
                      fn ds' => (StrConst ds', loc))
               | StrVar _ => S.return2 strAll
@@ -914,10 +913,7 @@
                 S.map2 (mfc ctx c,
                         fn c' =>
                            (DCookie (tn, x, n, c'), loc))
-              | DStyle (tn, x, n, c) =>
-                S.map2 (mfc ctx c,
-                        fn c' =>
-                           (DStyle (tn, x, n, c'), loc))
+              | DStyle _ => S.return2 dAll
 
         and mfvi ctx (x, n, c, e) =
             S.bind2 (mfc ctx c,
@@ -1057,8 +1053,7 @@
       | DSequence (n1, _, n2) => Int.max (n1, n2)
       | DDatabase _ => 0
       | DCookie (n1, _, n2, _) => Int.max (n1, n2)
-      | DStyle (n1, _, n2, _) => Int.max (n1, n2)
-
+      | DStyle (n1, _, n2) => Int.max (n1, n2)
 and maxNameStr (str, _) =
     case str of
         StrConst ds => maxName ds