James Britt
10/5/2003 5:07:00 AM
Carl Youngblood wrote:
> I've been looking into amrita for my ruby web development, but I am
> concerned about what I see as a potential conflict with my CSS
> stylesheets. From what I can tell, amrita looks for items that I have
> given a specific id to, such as <div id="identifier">dynamic data goes
> here</div>, so that it can then replace them with my dynamic data and
> remove the id portion of the tag.
>
> The problem I see is that I want the id tag to remain so that my CSS can
> use it to add formatting information to different portions of my page.
> I've been reading a good book called "Designing with Web Standards," by
> Jeff Zeldman, that strongly advocates the use of XHTML transitional with
> CSS to reduce page size, separate structure from presentation and
> improve cross-platform compatibility. If amrita takes out all my id
> tags, how do I do CSS?
I've not used Amrita, but does it munge *all* id attribiutes, or just
the matching items? If the latter, then you could work with bad XHTML,
using two ID attributes, with amrita emitting correct markup by removing
the extraneous attribute.
Of course, this may zap your editing tool if it finds templates with
malformed markup.
Can amrita use a namespace for special elements and attributes, to avoid
conflicting with proper XHTML?
James
PS Zeldman's book really is quite good.
>
> Thanks,
> Carl
>
>
>