You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by robert burrell donkin <ro...@blueyonder.co.uk> on 2003/09/09 23:48:45 UTC
[betwixt][POLL] favoured replacement for bad characters [WAS Re: Re[2]: bug in betwixt for inner class]
On Monday, September 8, 2003, at 09:09 PM, Anton Tagunov wrote:
<snip>
> rbd> i'll probably commit a standard betwixt mapper sometime soonish. i'm
> not
> rbd> sure what the best replacement character would be so i'll probably do
> rbd> something generic. i'm inclined to just remove the character (as the
> rbd> default) but i'd appreciate feedback from users about what they
> really
> rbd> think would be the best replacement.
>
> Is the '-' character taken? It is not allowed in java indentifiers
> but is in xml element names.
i don't think that '-' is allowed as the start character for an xml
element. (hopefully someone will correct me if i'm wrong.) there's no
reason why it couldn't to used for others.
does anyone else agree or disagree with '-'...?
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [betwixt][POLL] favoured replacement for bad characters [WAS Re: Re[2]: bug in betwixt for inner class]
Posted by Daniel McAllansmith <da...@kiwiplan.co.nz>.
On Wed, 10 Sep 2003 09:48, robert burrell donkin wrote:
> On Monday, September 8, 2003, at 09:09 PM, Anton Tagunov wrote:
>
> <snip>
>
> > rbd> i'll probably commit a standard betwixt mapper sometime soonish. i'm
> > not
> > rbd> sure what the best replacement character would be so i'll probably
> > do rbd> something generic. i'm inclined to just remove the character (as
> > the rbd> default) but i'd appreciate feedback from users about what they
> > really
> > rbd> think would be the best replacement.
> >
> > Is the '-' character taken? It is not allowed in java indentifiers
> > but is in xml element names.
>
> i don't think that '-' is allowed as the start character for an xml
> element. (hopefully someone will correct me if i'm wrong.) there's no
> reason why it couldn't to used for others.
>
> does anyone else agree or disagree with '-'...?
Using '-' will result in a java class of com.blah.Outer$Inner being referred
to as [com.blah.]Outer-Inner in the xml tags, correct?
This seems a reasonable default behaviour to me.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [betwixt][POLL] favoured replacement for bad characters [WAS Re: Re[2]: bug in betwixt for inner class]
Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
i've factored the bad character conversion out into a separate class which
allows chaining. the idea is that people who want to use something other
than the default name mapper will need to construct their own name mapping
chain and so will be able to choose their own replacement character.
(this probably needs to be added to the documentation.)
- robert
On Tuesday, September 9, 2003, at 11:04 PM, Martin van den Bemt wrote:
> The - could do, except there needs to be some magic, in case it is
> already used in combination with a namemapper that uses dashes..
>
> Mvgr,
> Martin
>
> On Tue, 2003-09-09 at 23:48, robert burrell donkin wrote:
>> On Monday, September 8, 2003, at 09:09 PM, Anton Tagunov wrote:
>>
>> <snip>
>>
>>> rbd> i'll probably commit a standard betwixt mapper sometime soonish. i'
>>> m
>>> not
>>> rbd> sure what the best replacement character would be so i'll probably
>>> do
>>> rbd> something generic. i'm inclined to just remove the character (as
>>> the
>>> rbd> default) but i'd appreciate feedback from users about what they
>>> really
>>> rbd> think would be the best replacement.
>>>
>>> Is the '-' character taken? It is not allowed in java indentifiers
>>> but is in xml element names.
>>
>> i don't think that '-' is allowed as the start character for an xml
>> element. (hopefully someone will correct me if i'm wrong.) there's no
>> reason why it couldn't to used for others.
>>
>> does anyone else agree or disagree with '-'...?
>>
>> - robert
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> --
> Martin van den Bemt <ml...@mvdb.net>
> mvdb.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [betwixt][POLL] favoured replacement for bad characters [WAS
Re: Re[2]: bug in betwixt for inner class]
Posted by Martin van den Bemt <ml...@mvdb.net>.
The - could do, except there needs to be some magic, in case it is
already used in combination with a namemapper that uses dashes..
Mvgr,
Martin
On Tue, 2003-09-09 at 23:48, robert burrell donkin wrote:
> On Monday, September 8, 2003, at 09:09 PM, Anton Tagunov wrote:
>
> <snip>
>
> > rbd> i'll probably commit a standard betwixt mapper sometime soonish. i'm
> > not
> > rbd> sure what the best replacement character would be so i'll probably do
> > rbd> something generic. i'm inclined to just remove the character (as the
> > rbd> default) but i'd appreciate feedback from users about what they
> > really
> > rbd> think would be the best replacement.
> >
> > Is the '-' character taken? It is not allowed in java indentifiers
> > but is in xml element names.
>
> i don't think that '-' is allowed as the start character for an xml
> element. (hopefully someone will correct me if i'm wrong.) there's no
> reason why it couldn't to used for others.
>
> does anyone else agree or disagree with '-'...?
>
> - robert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
--
Martin van den Bemt <ml...@mvdb.net>
mvdb.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org