[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Categories and fixed="yes"



On 29/11/07 12:38 PM, "Joe Cheng" <Joe.Cheng@xxxxxxxxxxxxx> wrote:

> Well, you're worse off if there are nodes that have the same term but have
> Different parents (which WordPress allows).

Could you point me to an example of this so I can see what you mean?

You're still no worse off than if your processor can't safely guess
hierarchy from the @term values. For example:

    <category term="001011" label="Cuisine" />
    <category term="001012" label="Language" />
    <category term="001013" label="French" x:BT="Cuisine" />
    <category term="001014" label="Franch" x:BT="Language" />
    <category term="001015" label="German" x:BT="language" />

Expressing the broader-term relationship concept as an attribute of course
assumes only one such per term. If you need to express a polyhierarchy you
could use child elements instead, like this:

    <category term="001013" label="French">
        <x:broader term="001011">Cuisine</x:broader>
        <x:broader term="001012">Language</x:broader>
    </category>

There are existing vocabs out there that have that pattern.


e.