[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Categories and fixed="yes"
Joe Cheng wrote:
> One way to tackle the WordPress-style hierarchical categories
> (and any other exotic schemes that might come up) could be to
> recommend that when adding a category to an entry, include
> all of the foreign attributes (and content?) in that category element.
> Although actually, in the particular case of hierarchy, you
> could just have the term reflect the hierarchy and the label
> only have the category name. For example:
> <category term="Programming" label="Programming" /> <category
> term="Programming/C#" label="C#" />
When you create a new category "Animals -> Cats", how do you know how to
format the term attribute into "Animals/Dogs" and not "Animals -> Dogs"
or somethng else? And, similarly, how do you know that you should
produce a tree by splitting at "/"? And, what about "Programming ->
> Still, I like the idea of preserving foreign attributes and
> content for category elements.
I think it is fair for a client to assume that it can include the
foreign markup at its discretion; servers shouldn't put stuff in their
that they don't accept, but they shouldn't expect to get anything more
than the "term" and "scheme" attributes either.