View Single Post
Join Date: Oct 2008
Posts: 95
Reputation: fpmurphy is an unknown quantity at this point 
Solved Threads: 5
fpmurphy fpmurphy is offline Offline
Junior Poster in Training

Re: Refresh XML/XSL fails because XML page being updated

 
0
  #4
Jan 13th, 2009
Another possibility (untested) is for your App to create a lockfile while it is writing out the XML document and then remove the lockfile when the document write is completed. Within your XSL have a test to see if the lockfile exists and do nothing if it exists.
XML, XSLT and XPATH Syntax (Toggle Plain Text)
  1. <xsl:variable name="lockexists">
  2. <xsl:choose>
  3. <xsl:when test="document('/tmp/lockfile')">true</xsl:when>
  4. <xsl:otherwise>false</xsl:otherwise>
  5. </xsl:choose>
  6. </xsl:variable>
The lockfile should be a simple XML document with a different namespace so that document() does not complain.
Last edited by fpmurphy; Jan 13th, 2009 at 11:33 am.
Reply With Quote