From 0dc705b14ce4960d84cdc8791931cf5979d066da Mon Sep 17 00:00:00 2001 From: Will Sobel Date: Wed, 4 Jun 2025 22:21:20 -0400 Subject: [PATCH 1/3] Created mtconnect stylesheet for demo with twin links --- demo/Dockerfile | 3 + demo/compose/compose.yaml | 1 + demo/compose/compose_mqtt.yaml | 1 + demo/styles/styles.xsl | 552 +++++++++++++++++++++++++++++++++ 4 files changed, 557 insertions(+) create mode 100644 demo/styles/styles.xsl diff --git a/demo/Dockerfile b/demo/Dockerfile index a1b081c30..949c94f18 100644 --- a/demo/Dockerfile +++ b/demo/Dockerfile @@ -41,6 +41,9 @@ COPY --chown=agent:agent \ ./demo/agent/agent.dock \ ./demo/agent/Devices.xml \ /mtconnect/config/ +COPY --chown=agent:agent \ + ./demo/styles/styles.xsl \ + /mtconnect/data/styles/ USER agent WORKDIR /home/agent diff --git a/demo/compose/compose.yaml b/demo/compose/compose.yaml index 0559577e2..7ef5097f4 100644 --- a/demo/compose/compose.yaml +++ b/demo/compose/compose.yaml @@ -16,6 +16,7 @@ services: volumes: - ./agent/agent.cfg:/mtconnect/config/agent.cfg - ../agent/Devices.xml:/mtconnect/config/Devices.xml + - ../styles/styles.xsl:/mtconnect/data/styles/styles.xsl - ./log:/mtconnect/log - ../twin:/mtconnect/data/demo/twin ports: diff --git a/demo/compose/compose_mqtt.yaml b/demo/compose/compose_mqtt.yaml index 975721af4..6de2594ed 100644 --- a/demo/compose/compose_mqtt.yaml +++ b/demo/compose/compose_mqtt.yaml @@ -24,6 +24,7 @@ services: volumes: - ./agent/agentmqtt.cfg:/mtconnect/config/agent.cfg - ../agent/Devices.xml:/mtconnect/config/Devices.xml + - ../styles/styles.xsl:/mtconnect/data/styles/styles.xsl - ./log:/mtconnect/log - ../twin:/mtconnect/data/demo/twin ports: diff --git a/demo/styles/styles.xsl b/demo/styles/styles.xsl new file mode 100644 index 000000000..83737edd0 --- /dev/null +++ b/demo/styles/styles.xsl @@ -0,0 +1,552 @@ + + + + + + + + + + + + + + MTConnect Agent + + + + + + + + + + +
+ +
+ + + + + + + +