181 else |
183 else |
182 local propattr : { string : string } |
184 local propattr : { string : string } |
183 if namespace ~= current_ns then |
185 if namespace ~= current_ns then |
184 propattr = { xmlns = namespace } |
186 propattr = { xmlns = namespace } |
185 end |
187 end |
186 if name_is_value and v is string then |
188 if name_is_value then |
187 out:tag(v, propattr):up(); |
189 if proptype == "string" and v is string then |
|
190 out:tag(v, propattr):up(); |
|
191 elseif proptype == "boolean" and v == true then |
|
192 out:tag(name, propattr):up(); |
|
193 end |
188 elseif proptype == "string" and v is string then |
194 elseif proptype == "string" and v is string then |
189 out:text_tag(name, v, propattr) |
195 out:text_tag(name, v, propattr) |
190 elseif proptype == "number" and v is number then |
196 elseif proptype == "number" and v is number then |
191 out:text_tag(name, string.format("%g", v), propattr) |
197 out:text_tag(name, string.format("%g", v), propattr) |
192 elseif proptype == "integer" and v is number then |
198 elseif proptype == "integer" and v is number then |