You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xs...@googlegroups.com
Hi,
Assume the start of a project is defined by attribute "start": 13.9.2011 (just an example) Now I calculate a value in days for a project (basing on estimations). How do I calculate the end date?
– otherwise you are on your one with string manipulation.
How are you doing your transformations?
Thomas Lehmann
unread,
Sep 27, 2011, 8:52:26 AM9/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xs...@googlegroups.com
Usually I'm using the automatic transforming by defining it in the XML. I know .... the transformation depends then on the browser.
The advantage is that a change in the XML does not require manual work also a final HTML is just a one line command.
I solved the problem - for now - by generating a dates.xml with dates and offset as attributes and inside of the tag the result of the calculation $date + $days. A simple python script does the job. The final query is simple: <xsl:value-of select="document('dates.xml')/*/date[@start=$start-date and @days=$calculated-days]"/>
I know - most will shake their heads - including me.