⌈⌋ ⎇ branch:  freshcode


Ticket Change Details

Overview

Artifact ID: a144ddb8e00b5ce79a656fa14bca40dc6d0ed683
Ticket: 74a4d24aa827e0702f3811c7c7fda6539f33fd67
Dr. Changelog Complex XPath
User & Date: BeniBela 2017-04-11 22:13:42
Changes

  1. icomment:
    Dr. Changelog does not seem to recognize all XPath expressions.
    
    For example, I have a changelog at http://www.videlibri.de/updates/changelog.xml
    and have set the following XPath for Dr. Changelog:
    
    version = concat(substring(//build[1]/@version, 1, 1), ".", substring(//build[1]/@version, 2))
    
    
    But it does not set the version.
    
    The simpler XPath version = //build[1]/@version is recognized, but I need to convert the integer version code 1234 to a end user version number 1.234.
    
    
    Using the concat/substring functions seems to be the only way to do this conversion with XPath 1, so the expression looks slightly awkward.
    
    Besides it would be much easier with XPath 2, since XPath 2 supports arithmetics like //build[1]/(@version div 1000).
    
  2. login: "BeniBela"
  3. mimetype: "text/x-fossil-plain"
  4. severity changed to: "Minor"
  5. status changed to: "Open"
  6. title changed to: "Dr. Changelog Complex XPath"
  7. type changed to: "Code_Defect"