From 7ab5e3ab6c5affaaf0068d56534bf3e27b3247aa Mon Sep 17 00:00:00 2001 From: Stefanos A Date: Thu, 7 Nov 2013 16:48:11 +0100 Subject: [PATCH] Use paths without apiversion attribute Paths that don't define a "version" attribute will now match all possible versions. This will make it easier to add support for newer APIs as they are introduced. --- Source/Bind/FuncProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Bind/FuncProcessor.cs b/Source/Bind/FuncProcessor.cs index 34dc7ac1..e572c8e4 100644 --- a/Source/Bind/FuncProcessor.cs +++ b/Source/Bind/FuncProcessor.cs @@ -129,7 +129,7 @@ namespace Bind { path.Append(String.Format( "[contains(concat('|', @name, '|'), '|{0}|') and " + - "contains(concat('|', @version, '|'), '|{1}|')]", + "(contains(concat('|', @version, '|'), '|{1}|') or not(boolean(@version)))]", apiname, apiversion)); } @@ -139,7 +139,7 @@ namespace Bind } else if (!String.IsNullOrEmpty(apiversion)) { - path.Append(String.Format("[contains(concat('|', @version, '|'), '|{0}|')]", apiversion)); + path.Append(String.Format("[contains(concat('|', @version, '|'), '|{0}|') or not(boolean(@version))]", apiversion)); } if (function != null) -- 2.34.1