Help with markup that passes WOLips editor validation..
Help with markup that passes WOLips editor validation..
- Subject: Help with markup that passes WOLips editor validation..
- From: Q <email@hidden>
- Date: Tue, 9 Oct 2007 08:28:43 +1000
Given the usefulness of the validation in the WOLips component editor I am trying to ensure my components are valid XML. However, I can't seem to work out an elegant way to rewrite the following:
<webobject name = "DaysInMonthLoop"> <webobject name = "IsValidDate"> <wo:if condition = "~dayCount % 7 == 0"><tr></wo:if> <td><webobject name = "UsageGraph"><webobject name = "UsageThumbnail"/></webobject> <br/><webobject name = "DayOfMonth"/></td> <wo:if condition = "~dayCount % 7 == 6 || isLastDayOfMonth"></tr></wo:if> </webobject> </webobject>
The general gist of it is there is an arbitrary number of days to display, and they should be displayed in rows of 7 days. The difficulty is the inclusion of the <tr></tr> tags in the right place within the repetition. Using CSS instead of tables isn't an option unfortunately. I could convert the tags into WOStrings, but that just obfuscates what's happening even more. Is there some other way I have overlooked?
-- Seeya...Q
Gold Coast, QLD, Australia (GMT+10) Ph: +61 419 729 806
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden