Hi Marius, On Apr 13, 2011, at 4:37 PM, Marius Dumitru Florea wrote:
> Hi devs, > > Do we have a specification for what a tag is inside XWiki? On > http://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Application > tags are defined as keywords but no constraints are specified. > > I'd like to enforce this two constraints on tags: > * tags can't have leading and trailing white space characters I'm not sure if you mean using space as a separator or not here. If space is used as a separator then it should be allowed to use quotes (such as: "<space>*tagvalue<space>*"). > * tags' case is saved but case is ignored when comparing two tags (once > you defined a tag "news" you can't define a new tag "News"; the existing > tag is reused; tag's case is used only for display) If we don't consider case I'm not sure we should use display using the first tag entered. For example someone entered "http". Someone else wants to add HTTP. Should we display http or HTTP? I'm fine with displaying http provided the UI allows to renamed the tag case. Otherwise ok for me. > Optionally, we could enforce that tags can't contain white spaces. See above. Thanks -Vincent > > WDYT? > > If no one is against it then I'd like to change the UI to apply these > constraints. > > Thanks, > Marius _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

