From 302106144295eaffc57f75ab5550c05935ede01a Mon Sep 17 00:00:00 2001 From: Mustafa Zengin Date: Fri, 15 Jan 2021 12:13:38 -0800 Subject: [PATCH 1/6] remove XSLT for accept, decline, tentativelyAccept actions --- transforms/csdl/preprocess_csdl.xsl | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index 1e28ad6c8..4c9950eea 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -279,21 +279,6 @@ - - - - - - - - - - - - From d932288c90a07a75971e3d6874bdb360f445f04e Mon Sep 17 00:00:00 2001 From: Mustafa Zengin Date: Fri, 15 Jan 2021 12:43:43 -0800 Subject: [PATCH 2/6] update test output based on XSLT changes --- transforms/csdl/preprocess_csdl_test_output.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml index 9729862ba..c160641ce 100644 --- a/transforms/csdl/preprocess_csdl_test_output.xml +++ b/transforms/csdl/preprocess_csdl_test_output.xml @@ -271,8 +271,8 @@ - + @@ -281,13 +281,13 @@ - + - + From bbae491611048d42c2defcb1bb2431b1f9363dfd Mon Sep 17 00:00:00 2001 From: Mustafa Zengin Date: Fri, 15 Jan 2021 14:34:57 -0800 Subject: [PATCH 3/6] create a redundant copy for backwards compatibility --- transforms/csdl/preprocess_csdl.xsl | 61 +++++++++++++++++++ .../csdl/preprocess_csdl_test_output.xml | 15 +++++ 2 files changed, 76 insertions(+) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index 4c9950eea..c6dbdce48 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -279,6 +279,67 @@ + + + + + + + + accept + true + + bindingParameter + graph.event + + + Comment + Edm.String + false + + + SendResponse + Edm.Boolean + + + + decline + true + + bindingParameter + graph.event + + + Comment + Edm.String + false + + + SendResponse + Edm.Boolean + + + + tentativelyAccept + true + + bindingParameter + graph.event + + + Comment + Edm.String + false + + + SendResponse + Edm.Boolean + + + + + diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml index c160641ce..431b14ac9 100644 --- a/transforms/csdl/preprocess_csdl_test_output.xml +++ b/transforms/csdl/preprocess_csdl_test_output.xml @@ -298,6 +298,21 @@ + + + + + + + + + + + + + + + From 8c1a777429172b396a998bbb5d00d901e387e60c Mon Sep 17 00:00:00 2001 From: Mustafa Zengin Date: Fri, 15 Jan 2021 14:45:40 -0800 Subject: [PATCH 4/6] update input data to match actual metadata --- transforms/csdl/preprocess_csdl_test_input.xml | 7 ++----- transforms/csdl/preprocess_csdl_test_output.xml | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/transforms/csdl/preprocess_csdl_test_input.xml b/transforms/csdl/preprocess_csdl_test_input.xml index fc9a96fcf..160ad8964 100644 --- a/transforms/csdl/preprocess_csdl_test_input.xml +++ b/transforms/csdl/preprocess_csdl_test_input.xml @@ -122,18 +122,15 @@ - - - - - + + diff --git a/transforms/csdl/preprocess_csdl_test_output.xml b/transforms/csdl/preprocess_csdl_test_output.xml index 431b14ac9..f26623a7e 100644 --- a/transforms/csdl/preprocess_csdl_test_output.xml +++ b/transforms/csdl/preprocess_csdl_test_output.xml @@ -274,18 +274,15 @@ - - - - - + + From b50d022c99690be7e315693046546fbb55174405 Mon Sep 17 00:00:00 2001 From: Mustafa Zengin Date: Fri, 15 Jan 2021 14:58:00 -0800 Subject: [PATCH 5/6] simplify the rule by creating a callable template --- transforms/csdl/preprocess_csdl.xsl | 83 +++++++++++------------------ 1 file changed, 31 insertions(+), 52 deletions(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index c6dbdce48..f7c6cb213 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -283,61 +283,40 @@ - - - - - accept - true - - bindingParameter - graph.event - - - Comment - Edm.String - false - - - SendResponse - Edm.Boolean - + + + + + true + + bindingParameter + graph.event - - decline - true - - bindingParameter - graph.event - - - Comment - Edm.String - false - - - SendResponse - Edm.Boolean - + + Comment + Edm.String + false - - tentativelyAccept - true - - bindingParameter - graph.event - - - Comment - Edm.String - false - - - SendResponse - Edm.Boolean - + + SendResponse + Edm.Boolean - + + + + + + + + accept + + + decline + + + tentativelyAccept + + From c16acb086f2191d6b2a5a34de790eaf369b7e440 Mon Sep 17 00:00:00 2001 From: Mustafa Zengin Date: Fri, 15 Jan 2021 15:29:42 -0800 Subject: [PATCH 6/6] update inline comment --- transforms/csdl/preprocess_csdl.xsl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/transforms/csdl/preprocess_csdl.xsl b/transforms/csdl/preprocess_csdl.xsl index f7c6cb213..25e0e18b7 100644 --- a/transforms/csdl/preprocess_csdl.xsl +++ b/transforms/csdl/preprocess_csdl.xsl @@ -279,10 +279,8 @@ - - - +