-
Notifications
You must be signed in to change notification settings - Fork 60
week2+
Possible changes to make to the tasklist.xml in order to enhance the flexibility with conditionnal checking.BR We need to be able to have simple algorithms to define priorities in the tasklist.BR These nodes will be placed into the task node for each taskBR Here are our first ideas about the new nodes to add. BR The observer parts will remain unchanged for now except for the priority attribute.BR We can delete the priority attribute in handle mimetypeBR
A routine node to define the sequence to execute for this task :BR
- Conditions are called using XPATH and refers to condition section
- exec will execute the observer specified. As we call it with XPATH we can define a observation or a task -> inclusion of tasks -> recursivity
- semantic web
- page weight
- browser compatibility
- orthograph checker
Another idea proposed by Jean-Gui would be to create a switch keyword to deal with doctypes and mediatypes. This way we could create different routine depending on the type we find. Therefore the condition would be in the if tag :
The if tag might become so big when we want several doctypes and mediatypes. However the switch might be an option to consider seriously :PBR You can see the third idea to have more details. BRBR A cond will be placed here to be used in if command. It returns a boolean :BR
- id to help calling the condition
- result to know if we want it to pass or to fail
- the list of doctypes that we want in it
- the list of mediatypes we're looking for
- id to give the order
- and the name of the observation to display
We thought we could deal with it as it was already done using a new attribute for a taskBR
= Second idea =
We could re use the current priority properties. Let me explain: BR We 'll consider the if condition as a high priority and what's in the condition , lower priority. BR We can then build a whole map of different priorities and execute it as it's done currently.BR Of course we 'll need to extend that idea to take into account the mediatypes and so on.BRBR As we discussed it appears that this solution won't be possible. We can't keep the independance of the task and the mutiple 'if' insert .
= Third idea =
This could be factorized to use task inclusion:
And in an HTML task:
BR BR See the attached files for an example of the new tasklist BR BR
Jonathan created a logo in his free time , check the attached files ;)
Use an extra layer of security with two factor authentication (2FA) when logging into google