General XMetaL Discussion
LeeHart September 3, 2010 at 9:22 pm
Request: CSS extensions to insert line breaksSeptember 3, 2010 at 9:22 pmParticipants 3Replies 4Last Activity 12 years, 3 months ago
Some of our elements have long lists of attributes. If we were designing the schema over again we'd use more children elements but there's currently a fair bit of external tooling using this structure.
I'd like to be able to change the ordering of the display of the attributes, and put more important ones on the first line (or second line) and then have all attributes not previously displayed listed on the next line.
I can do this with a form but then I'd need to redo the xft when the schema changes (attributes seem to get added to this element every few months.) If it was done in CSS then I'd only need to touch the CSS if the new attribute became a primary attribute (not likely.)
Is there any way to do this without incurring the ongoing maintenance costs of a XFT?
XMetal versions 6.0, 5.5, and 4.x (which I know are no longer supported.)
LeeDerek Read September 7, 2010 at 10:30 pm
Reply to: Request: CSS extensions to insert line breaksSeptember 7, 2010 at 10:30 pm
I'm not sure I understand exactly, but perhaps what you are looking for is already possible.
The basic trick here is that you can pass any character into “content” inside the quoted string bits of the pseudo elements (generated content) :before and :after in CSS by 'escaping' the character using a backslash followed by the 4 digit Unicode code point value in hex notation.
Normally this is not necessary as you can simply save your CSS file with Unicode encoding (UTF-8 or UTF-16) and insert any Unicode character, but as carriage returns are treated as regular spaces in CSS files you can't simply insert a carriage return to break lines in the “content”, so in this case it becomes useful.
Everything I've written above sounds confusing to me (though I think it is technically correct) so examples are best…
The escaped notation for a carriage return would be “