• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with markup that passes WOLips editor validation..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Quinton Dolan - email@hidden
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

  • Follow-Ups:
    • Re: Help with markup that passes WOLips editor validation..
      • From: Miguel Arroz <email@hidden>
  • Prev by Date: Re: MEETING: Chicago CocoaHeads / CAWUG - Scripting CoreData - Tuesday October 9th 7:00 PM
  • Next by Date: Re: Help with markup that passes WOLips editor validation..
  • Previous by thread: Re: MEETING: Chicago CocoaHeads / CAWUG - Scripting CoreData - Tuesday October 9th 7:00 PM
  • Next by thread: Re: Help with markup that passes WOLips editor validation..
  • Index(es):
    • Date
    • Thread