tuned;
authorwenzelm
Sat, 16 Jul 2011 16:51:12 +0200
changeset 43844 33e20b7d7e72
parent 43843 16f2fd9103bd
child 43845 d89353d17f54
tuned;
src/Pure/General/xml.ML
--- a/src/Pure/General/xml.ML	Sat Jul 16 00:01:17 2011 +0200
+++ b/src/Pure/General/xml.ML	Sat Jul 16 16:51:12 2011 +0200
@@ -310,9 +310,10 @@
   | node t = raise XML_BODY [t];
 
 fun vector atts =
-  fold_map (fn (a, x) => fn i => if int_atom a = i then (x, i + 1) else raise XML_ATOM a) atts;
+  #1 (fold_map (fn (a, x) =>
+        fn i => if int_atom a = i then (x, i + 1) else raise XML_ATOM a) atts 0);
 
-fun tagged (Elem ((name, atts), ts)) = (int_atom name, (#1 (vector atts 0), ts))
+fun tagged (Elem ((name, atts), ts)) = (int_atom name, (vector atts, ts))
   | tagged t = raise XML_BODY [t];