[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: New camt54 namespace
From: "Sheila Thomson coder@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 May 2026 08:27:23 -0000
You could match on element local-name instead of the full prefixed name, eg.

<template match="*:my-element" />

or, if you need to check the namespace as well:
<template match="*[namespace-uri() =
('urn:iso:std:iso:20022:tech:xsd:camt.054.001.04',
'urn:iso:std:iso:20022:tech:xsd:camt.054.001.08')][local-name() =
'my-element']" />

Sheila

On 12 May 2026 01:16:11 BST, "Leo Studer leo.studer@xxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>Hello
>
>The bank renewed the camt54 standard.
>
>In my stylesheet I need to access old and new bank statements simultaneously.
>
>With
xpath-default-namespace="urn:iso:std:iso:20022:tech:xsd:camt.054.001.04b my
stylesheet works for the old documents and
>with
xpath-default-namespace="urn:iso:std:iso:20022:tech:xsd:camt.054.001.08b it
does the job for the new documents.
>
>Is there an easy way to use either of the two namespaces so that my
stylesheet works for old and new bank statements?
>
>Thanks for caring!
>
>Yours, L E O

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member