XForms repeat-item pseudoelement
Brent DeMark <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Is the repeat-item supported yet as an attribute yet in css. I'm trying
to style a repeat as a table, but can't seem to make it happen, and any
styling on the repeat-item doesn't show up.
My example is below:
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
<style>
@namespace xf url(http://www.w3.org/2002/xforms);
/*
xf|repeat {
display:table;
}
xf|repeat[repeat-item] {
display:table-row;
}
xf|repeat output {
display:table-cell;
}
*/
</style>
<xf:model>
<xf:instance>
<attachments xmlns="">
<attachment>
<name>filename1 longer</name><format>zip</format>
</attachment>
<attachment>
<name>filename2</name><format>doc</format>
</attachment>
</attachments>
</xf:instance>
</xf:model>
</head>
<body>
What I want it to look like
<table>
<tr><td>filename 1 longer</td><td>zip</td></tr>
<tr><td>filename 2</td><td>doc</td></tr>
</table>
<br/>
<xf:repeat nodeset="attachment">
<xf:output ref="name"/>
<xf:output ref="format"/>
</xf:repeat>
</body>
</html>