Schema for cascading style sheets

  • Hi all,

    I have a real world application for something approximating cascading style sheets (CSS).

    In my app, I want to be able to set a property and have its value "cascade" down to lower levels in e hierarchy.

    For example: in a corporate structure, we could set health care benefits as "full" at the highest level, let directors inherit the "full" value, then override that value for employees, who are set at "minimal." (my domain is actually paid search, please pardon the over simplified example.).

    I want a simple schema, and a simple lookup/query routine. There will be arbitrary properties to set, and not every property need be set at every level (no need to enforce rules on that, just calling out the need for flexibility).

    This has to be a schema pattern that has been worked out before... Any tips or suggestions much appreciated.

  • well, CSS wise, the closest assignment to the object overrides the css at the higher level;

    do you have a set number of levels, or at least some method to identify a hierarchy yet?

    for a search, I'm wondering if it is more like permissions, where they might be cumulative in scope, rather than like CSS, which overrides a previous.

    can you explain a bit more, maybe with an example?

    it sounds a bit more like a permissions hierarchy, where "everyone' has full permissions until they are taken away.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply