Skip to content

Tag: xslt

XSLT filitering for both begin with and followed by characters

I am working in project where I am given a list of allowed characters, and required to remove the unwanted characters. I have the following done, but I felt it is cumbersome and than it should be Testing the start condition I have added three checks. The contains check returns true for empty string case, and …

XSLT – masking data – Conditional on other tags

I am trying to mask an xml document where some specific tags are present. I have created a java app which contains saxon9he as dependency. I have multiple use case, some are straight forward but some are conditional. Assuming the below given <Prsn> tag is present at multiple different locations: Input x…

How to set Saxon as the Xslt processor in Java?

This is a simple question, but one I cannot find the answer to. I have an XSLT 2.0 stylesheet that I’m trying to process in Java. It relies on XSL elements from Saxon. My current class works fine with simple XSLT 1.0, but I’m getting errors about unrecognized elements with my 2.0 XSLT built with S…