forked from imdj360/VSCodeXsltDebugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-namespace-support.sh
More file actions
executable file
·42 lines (36 loc) · 1.7 KB
/
test-namespace-support.sh
File metadata and controls
executable file
·42 lines (36 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
echo "=================================="
echo "XSLT Namespace Support Tests"
echo "=================================="
echo ""
# Test 1: LmlBasedXslt (Logic Apps generated)
echo "Test 1: LmlBasedXslt.xslt (Logic Apps, XSLT 3.0 with namespaces)"
echo "----------------------------------------"
dotnet run --project XsltDebugger.ConsoleTest/XsltDebugger.ConsoleTest.csproj -- \
LmlBasedXslt.xslt ShipmentConf-lml.xml --engine saxon 2>&1 | \
grep -A 20 "REGISTERED NAMESPACES" | head -25
echo ""
# Test 2: AdvanceXslt2 (no namespaces in XML)
echo "Test 2: AdvanceXslt2.xslt (XSLT 2.0, XML without namespaces)"
echo "----------------------------------------"
dotnet run --project XsltDebugger.ConsoleTest/XsltDebugger.ConsoleTest.csproj -- \
AdvanceXslt2.xslt AdvanceFile.xml --engine saxon 2>&1 | \
grep -A 20 "REGISTERED NAMESPACES" | head -25
echo ""
# Test 3: ShipmentConf3 (XSLT 3.0)
echo "Test 3: ShipmentConf3.xslt (XSLT 3.0 with custom functions)"
echo "----------------------------------------"
dotnet run --project XsltDebugger.ConsoleTest/XsltDebugger.ConsoleTest.csproj -- \
ShipmentConf3.xslt ShipmentConf-proper.xml --engine saxon 2>&1 | \
grep -A 20 "REGISTERED NAMESPACES" | head -25
echo ""
# Test 4: VariableLoggingSampleV1 (XSLT 1.0)
echo "Test 4: VariableLoggingSampleV1.xslt (XSLT 1.0)"
echo "----------------------------------------"
dotnet run --project XsltDebugger.ConsoleTest/XsltDebugger.ConsoleTest.csproj -- \
VariableLoggingSampleV1.xslt VariableLoggingSampleV1Input.xml --engine compiled 2>&1 | \
grep -A 20 "REGISTERED NAMESPACES" | head -25
echo ""
echo "=================================="
echo "All tests complete!"
echo "=================================="