all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] xhtml-bform.rnc: Supplement missing input types
@ 2011-01-25 11:50 Daniel Nyström
  2011-01-25 12:15 ` bug#7912: " Daniel Nyström
  2011-01-28  0:00 ` Chong Yidong
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Nyström @ 2011-01-25 11:50 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 106 bytes --]

Attached a patch which just adds some previous missing xhtml (1.0 and
1.1) input element types.

/ Daniel

[-- Attachment #2: additional-input-types.patch --]
[-- Type: text/x-patch, Size: 1988 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: daniel.nystrom@timeterminal.se-20110125113235-\
#   l3fml35ahp4p3ea0
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk/
# testament_sha1: 0cd955d1ead8af13b51d98dd7612a1b9f3e4902e
# timestamp: 2011-01-25 12:43:04 +0100
# base_revision_id: yamaoka@jpl.org-20110125084232-9kn56dbcv00vbpov
# 
# Begin patch
=== modified file 'etc/schema/xhtml-bform.rnc'
--- etc/schema/xhtml-bform.rnc	2007-12-15 11:01:36 +0000
+++ etc/schema/xhtml-bform.rnc	2011-01-25 11:32:35 +0000
@@ -36,6 +36,9 @@
   | "submit"
   | "reset"
   | "hidden"
+  | "file"
+  | "image"
+  | "button"
 select = element select { select.attlist, option+ }
 select.attlist =
   Common.attrib,

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWb0xdikAAXjfjAAQUGP/91YB
CAC////0AQAIAFADetq9tXGnUXThkiGmhoTE2qNtVPyaZU/TSGoeoZNMMkmmmmamkzKjynqNNAaa
NANAYZIyTEyU/U00mQaaaAaADRoGAAAAAGg0AaAaASUaVH4kaelM1PTCmgAAyAZFdAXypQZrNZGE
aNMAWZ2ONz3oeBaW2qBE8/AfCwCVBUSxN374b9/j09nV+EIVA8GisWP4DPQqlUECFLXesoYYA8DA
0F0tAfa89HJwrxtJih5gEJxV8rMBWDRgYlgK7y4kMSMhF4EcCh2GB0821lp7vAwGxDLjWcSBBJjX
scQJPMLDUCwO2PveQIIsMGR3oSE3OxM6j6q+1+LpdS1K1N+dcmQ7gNIQgOPzplcVBe8gTzPvrxYG
HSjIY5E4E4VZpExSMTNZ2FMLjVAuEoMApjZNpxtLMkscBU+IaJ2tNGvRoddcConQmjjFAXanNMMs
BrKjQqk7zuPCSiAln4kdipwIxtGtHuF+mYoFU1gSDNbiuaRzERlI43v0EroXsCirVYXvOV5eJ0dI
IMwfc/Azi1HXpdizPpBHzcLnFGRRACRiSAcuwl2hCwKTLuuF51JXMhQeILcJ6Fkdd1hsQKwMXj7m
l945tbKqfMDIGknXqVVx+PMlpe4hR01pQVVh+gmPTIaahNyzNR5gcTSHCzQVRxr7RiLzwWqhVphF
20KmFqxNhYzaGnvGASXv2l+rnD92By3pMFJZdTIcmOk1ymnwnRVDQMQdoF0h7TNMKU6x4cQBFLsn
T8qEKksu2FJQy332IThUkpAYBEVVQNZzr3eNPIRlw59NO2IsucGMRrQ6hfFC8ON8BbwzK8tmVeP4
nPA4thxAsWQK8CdAKOEX8vtjjA5gSjNabPLxubLgPsXzBEutYpPBhXirCuAQNgRaNnnHhzBRKJOS
gnNbBBBLXnwMhOJzkb5wWScPSnUEWCDjSwFG4LQJ7l6PX0lSSqmnJYWRDygMEgklcy0PWrvF6Aus
4ohjDPF5aNjeGYgXXnOYBkREkHCMBmSiVE5AZwAtVZUKak6OxokpeMknDlAdE9typADQAEtbcik2
E71TtJtGctsKNCUwAbQA4BCbUYs8K3czFbiz5byhgfY+puM5eB0YXHG/9KkNRiN7SfmjV+CBuXkf
+vEXckU4UJC9MXYp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#7912: [PATCH] xhtml-bform.rnc: Supplement missing input types
  2011-01-25 11:50 [PATCH] xhtml-bform.rnc: Supplement missing input types Daniel Nyström
@ 2011-01-25 12:15 ` Daniel Nyström
  2011-01-28 18:13   ` Glenn Morris
  2011-01-28  0:00 ` Chong Yidong
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Nyström @ 2011-01-25 12:15 UTC (permalink / raw)
  To: 7912

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Attached a patch which just adds some missing xhtml (1.0 and
1.1) input element types.

/ Daniel

[-- Attachment #2: additional-input-types.patch --]
[-- Type: text/x-patch, Size: 1988 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: daniel.nystrom@timeterminal.se-20110125113235-\
#   l3fml35ahp4p3ea0
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk/
# testament_sha1: 0cd955d1ead8af13b51d98dd7612a1b9f3e4902e
# timestamp: 2011-01-25 12:43:04 +0100
# base_revision_id: yamaoka@jpl.org-20110125084232-9kn56dbcv00vbpov
# 
# Begin patch
=== modified file 'etc/schema/xhtml-bform.rnc'
--- etc/schema/xhtml-bform.rnc	2007-12-15 11:01:36 +0000
+++ etc/schema/xhtml-bform.rnc	2011-01-25 11:32:35 +0000
@@ -36,6 +36,9 @@
   | "submit"
   | "reset"
   | "hidden"
+  | "file"
+  | "image"
+  | "button"
 select = element select { select.attlist, option+ }
 select.attlist =
   Common.attrib,

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWb0xdikAAXjfjAAQUGP/91YB
CAC////0AQAIAFADetq9tXGnUXThkiGmhoTE2qNtVPyaZU/TSGoeoZNMMkmmmmamkzKjynqNNAaa
NANAYZIyTEyU/U00mQaaaAaADRoGAAAAAGg0AaAaASUaVH4kaelM1PTCmgAAyAZFdAXypQZrNZGE
aNMAWZ2ONz3oeBaW2qBE8/AfCwCVBUSxN374b9/j09nV+EIVA8GisWP4DPQqlUECFLXesoYYA8DA
0F0tAfa89HJwrxtJih5gEJxV8rMBWDRgYlgK7y4kMSMhF4EcCh2GB0821lp7vAwGxDLjWcSBBJjX
scQJPMLDUCwO2PveQIIsMGR3oSE3OxM6j6q+1+LpdS1K1N+dcmQ7gNIQgOPzplcVBe8gTzPvrxYG
HSjIY5E4E4VZpExSMTNZ2FMLjVAuEoMApjZNpxtLMkscBU+IaJ2tNGvRoddcConQmjjFAXanNMMs
BrKjQqk7zuPCSiAln4kdipwIxtGtHuF+mYoFU1gSDNbiuaRzERlI43v0EroXsCirVYXvOV5eJ0dI
IMwfc/Azi1HXpdizPpBHzcLnFGRRACRiSAcuwl2hCwKTLuuF51JXMhQeILcJ6Fkdd1hsQKwMXj7m
l945tbKqfMDIGknXqVVx+PMlpe4hR01pQVVh+gmPTIaahNyzNR5gcTSHCzQVRxr7RiLzwWqhVphF
20KmFqxNhYzaGnvGASXv2l+rnD92By3pMFJZdTIcmOk1ymnwnRVDQMQdoF0h7TNMKU6x4cQBFLsn
T8qEKksu2FJQy332IThUkpAYBEVVQNZzr3eNPIRlw59NO2IsucGMRrQ6hfFC8ON8BbwzK8tmVeP4
nPA4thxAsWQK8CdAKOEX8vtjjA5gSjNabPLxubLgPsXzBEutYpPBhXirCuAQNgRaNnnHhzBRKJOS
gnNbBBBLXnwMhOJzkb5wWScPSnUEWCDjSwFG4LQJ7l6PX0lSSqmnJYWRDygMEgklcy0PWrvF6Aus
4ohjDPF5aNjeGYgXXnOYBkREkHCMBmSiVE5AZwAtVZUKak6OxokpeMknDlAdE9typADQAEtbcik2
E71TtJtGctsKNCUwAbQA4BCbUYs8K3czFbiz5byhgfY+puM5eB0YXHG/9KkNRiN7SfmjV+CBuXkf
+vEXckU4UJC9MXYp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] xhtml-bform.rnc: Supplement missing input types
  2011-01-25 11:50 [PATCH] xhtml-bform.rnc: Supplement missing input types Daniel Nyström
  2011-01-25 12:15 ` bug#7912: " Daniel Nyström
@ 2011-01-28  0:00 ` Chong Yidong
  2011-01-28 10:01   ` Daniel Nyström
  1 sibling, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2011-01-28  0:00 UTC (permalink / raw)
  To: Daniel Nyström; +Cc: emacs-devel

Daniel Nyström <daniel.nystrom@timeterminal.se> writes:

> Attached a patch which just adds some previous missing xhtml (1.0 and
> 1.1) input element types.

Thanks, but this doesn't look right.  The contents of xhtml-bform.rnc
are generated automatically from the schema posted by the W3C at

http://www.w3.org/TR/2004/WD-xhtml-modularization-20040218/schema_module_defs.html

where we see the following comment:

<!-- 
Basic Forms removes button, 'image' and 'file' input types.
-->
  <xs:simpleType name="InputType.class">
      <xs:restriction base="xs:NMTOKEN">
        <xs:enumeration value="text"/>
        <xs:enumeration value="password"/>
        <xs:enumeration value="checkbox"/>
        <xs:enumeration value="radio"/>
        <xs:enumeration value="submit"/>
        <xs:enumeration value="reset"/>
        <xs:enumeration value="hidden"/>
      </xs:restriction>
  </xs:simpleType>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] xhtml-bform.rnc: Supplement missing input types
  2011-01-28  0:00 ` Chong Yidong
@ 2011-01-28 10:01   ` Daniel Nyström
  2011-01-28 17:13     ` Chong Yidong
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Nyström @ 2011-01-28 10:01 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

2011/1/28 Chong Yidong <cyd@stupidchicken.com>:
> Daniel Nyström <daniel.nystrom@timeterminal.se> writes:
>
>> Attached a patch which just adds some previous missing xhtml (1.0 and
>> 1.1) input element types.
>
> Thanks, but this doesn't look right.  The contents of xhtml-bform.rnc
> are generated automatically from the schema posted by the W3C at
>
> http://www.w3.org/TR/2004/WD-xhtml-modularization-20040218/schema_module_defs.html
>
> where we see the following comment:
>
> <!--
> Basic Forms removes button, 'image' and 'file' input types.
> -->
>  <xs:simpleType name="InputType.class">
>      <xs:restriction base="xs:NMTOKEN">
>        <xs:enumeration value="text"/>
>        <xs:enumeration value="password"/>
>        <xs:enumeration value="checkbox"/>
>        <xs:enumeration value="radio"/>
>        <xs:enumeration value="submit"/>
>        <xs:enumeration value="reset"/>
>        <xs:enumeration value="hidden"/>
>      </xs:restriction>
>  </xs:simpleType>
>

Wasn't aware of the automatic generation (shouldn't that file be
generated at compile time..?) but this is where I found the
specifications:
http://www.w3.org/TR/xhtml1-schema/#xhtml1-strict

And as far as I can see, there's no mention of "basic form". How do we fix this?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] xhtml-bform.rnc: Supplement missing input types
  2011-01-28 10:01   ` Daniel Nyström
@ 2011-01-28 17:13     ` Chong Yidong
  2011-01-31  9:14       ` Daniel Nyström
  0 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2011-01-28 17:13 UTC (permalink / raw)
  To: Daniel Nyström; +Cc: emacs-devel

Daniel Nyström <daniel.nystrom@timeterminal.se> writes:

> Wasn't aware of the automatic generation (shouldn't that file be
> generated at compile time..?) but this is where I found the
> specifications:
> http://www.w3.org/TR/xhtml1-schema/#xhtml1-strict
>
> And as far as I can see, there's no mention of "basic form". How do we
> fix this?

The XHTML specification seems to be provided in two versions: the
"modular" implementation in the link I supplied, and the monolithic
version in your link.  The two ought to give the same result.

Can you demonstrate a bug in practice?  If so, please provide a recipe.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#7912: [PATCH] xhtml-bform.rnc: Supplement missing input types
  2011-01-25 12:15 ` bug#7912: " Daniel Nyström
@ 2011-01-28 18:13   ` Glenn Morris
  0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2011-01-28 18:13 UTC (permalink / raw)
  To: 7912-done


I'm removing this because it was simultaneously and separately posted
to emacs-devel, and is being discussed there.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] xhtml-bform.rnc: Supplement missing input types
  2011-01-28 17:13     ` Chong Yidong
@ 2011-01-31  9:14       ` Daniel Nyström
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Nyström @ 2011-01-31  9:14 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

2011/1/28 Chong Yidong <cyd@stupidchicken.com>:
> Daniel Nyström <daniel.nystrom@timeterminal.se> writes:
>
>> Wasn't aware of the automatic generation (shouldn't that file be
>> generated at compile time..?) but this is where I found the
>> specifications:
>> http://www.w3.org/TR/xhtml1-schema/#xhtml1-strict
>>
>> And as far as I can see, there's no mention of "basic form". How do we
>> fix this?
>
> The XHTML specification seems to be provided in two versions: the
> "modular" implementation in the link I supplied, and the monolithic
> version in your link.  The two ought to give the same result.
>
> Can you demonstrate a bug in practice?  If so, please provide a recipe.

Sure, just open up a new xhtml file and add one <input type="file" />
field. nxml-mode will complain about "file" being an invalid attribute
value.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-31  9:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 11:50 [PATCH] xhtml-bform.rnc: Supplement missing input types Daniel Nyström
2011-01-25 12:15 ` bug#7912: " Daniel Nyström
2011-01-28 18:13   ` Glenn Morris
2011-01-28  0:00 ` Chong Yidong
2011-01-28 10:01   ` Daniel Nyström
2011-01-28 17:13     ` Chong Yidong
2011-01-31  9:14       ` Daniel Nyström

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.