- From: Innovimax SARL <innovimax@gmail.com>
- Date: Fri, 11 May 2007 23:22:50 +0200
- To: "Norman Walsh" <ndw@nwalsh.com>
- Cc: public-xml-processing-model-wg@w3.org
Hum.... It seems like summarizing this is that we end up allowing options declared as NCName to be shortcutted It seems, we will be better handled with namespaces <px:step option:name="toto" option:optname="blabla"> ..if we still want to go the shortcut way I strongly disapprove going the way it has been adopted last telcon This apart, I don't feel <p:option name="optname" value="blabla"/> being very long to type it is at least as <xsl:value-of select="{@optname}" /> in XSLT Mohamed On 5/11/07, Norman Walsh <ndw@nwalsh.com> wrote: > Yesterday, we agreed to allow > > <px:step optname="value"/> > > as syntactic sugar for > > <px:step> > <p:option name="optname" value="value"/> > </px:step> > > All well and good, except: > > <px:step ex:optname="foo"/> > > doesn't specify the ex:optname option, ex:optname is an extension > attribute. For a different reason, > > <px:step name="foo"/> > > doesn't specify the name option, it names the step. > > <px:step name="foo"> > <p:option name="name" value="value"/> > </px:step> > > does specify the name option, but > > <px:step optname="value"> > <p:option name="optname" value="value"/> > </px:step> > > is a syntax error. > > It's clearly true that is in some sense the shortcuts are easier to > read, and consequently easier to understand, than the long versions. > > But there are a lot of exceptions. Will users find it too confusing? > I fear they might. > > I also fear that we're opening a door here to a lot of requests for > syntactic sugar. Why not: > > <p:source port="stylesheet" href="someURI"/> > > instead of > > <p:source port="stylesheet"> > <p:document href="someURI"/> > </p:sourcE> > > Allowing all of the different but obvious shortcuts would make a mess of > things, I think. > > Abort. Abort. Abort. ? :-) > > Be seeing you, > norm > > -- > Norman Walsh <ndw@nwalsh.com> | Truth lies within a little uncertain > http://nwalsh.com/ | compass, but error is immense. > > -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 8 72 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €
Received on Friday, 11 May 2007 21:23:02 UTC