Some Xalan Extensions

Some really helpful Xalan extensions

License

License

Categories

Categories

Jenkins Build Tools Continuous Integration and Continuous Delivery Net
GroupId

GroupId

net.adamjenkins
ArtifactId

ArtifactId

sxe
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Some Xalan Extensions
Some really helpful Xalan extensions
Project URL

Project URL

https://github.com/AdamNormanJenkins/SXE
Source Code Management

Source Code Management

https://github.com/AdamNormanJenkins/SXE.git

Download sxe

How to add to project

<!-- https://jarcasting.com/artifacts/net.adamjenkins/sxe/ -->
<dependency>
    <groupId>net.adamjenkins</groupId>
    <artifactId>sxe</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/net.adamjenkins/sxe/
implementation 'net.adamjenkins:sxe:1.1'
// https://jarcasting.com/artifacts/net.adamjenkins/sxe/
implementation ("net.adamjenkins:sxe:1.1")
'net.adamjenkins:sxe:jar:1.1'
<dependency org="net.adamjenkins" name="sxe" rev="1.1">
  <artifact name="sxe" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.adamjenkins', module='sxe', version='1.1')
)
libraryDependencies += "net.adamjenkins" % "sxe" % "1.1"
[net.adamjenkins/sxe "1.1"]

Dependencies

compile (15)

Group / Artifact Type Version
xalan : xalan jar LATEST
org.slf4j : slf4j-api jar LATEST
org.apache.commons : commons-lang3 jar LATEST
net.sourceforge.htmlunit : htmlunit jar 2.46.0
commons-beanutils : commons-beanutils jar LATEST
org.jfree : jfreechart jar 1.0.17
org.jfree : jcommon jar 1.0.17
org.apache.xmlgraphics : batik-dom jar LATEST
org.apache.xmlgraphics : batik-svggen jar LATEST
org.hibernate : hibernate-core jar LATEST
javax.jms : javax.jms-api jar LATEST
javax.mail : javax.mail-api jar 1.5.2
javax.xml.soap : javax.xml.soap-api jar LATEST
org.springframework : spring-context jar LATEST
org.springframework : spring-webmvc-portlet jar LATEST

test (7)

Group / Artifact Type Version
de.saly : javamail-mock2-fullmock jar LATEST
javax.activation : activation jar 1.1.1
junit : junit jar LATEST
io.github.hakky54 : logcaptor jar 2.3.1
org.assertj : assertj-core jar 3.18.1
ch.qos.logback : logback-classic jar LATEST
com.sun.xml.messaging.saaj : saaj-impl jar 1.4.0

Project Modules

There are no modules declared in this project.

SXE

Some Xalan Extensions (SXE)

Adds functionality to Xalan that I've found helpful over the last 20 years of contracting.

See the example below (this one is adding logging to your XSLT, but there are other helper elements and functions). For further information see the javadoc which is pretty extensive.

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                version="1.0"
                xmlns:log="xalan://net.adamjenkins.sxe.elements.Logging"
                xmlns:java="http://xml.apache.org/xslt/java"
                exclude-result-prefixes="java"
                extension-element-prefixes="log">
    <xsl:output method="xml"/>
    
    <xsl:variable name="var">world</xsl:variable>
    
    <xsl:template match="/">
    	<log:debug message="hello {$var} here is an attribute {./someelement/@someattribute}"/>
	<log:info select="./someotherelement/@someotherattribute"/>
    </xsl:template>            
</xsl:stylesheet>

For details on how to use SXE for XSLT logging, see this article: https://www.linkedin.com/pulse/logging-xsltxalan-adam-jenkins/

For details on how to use SXE for Assertions, see this article: https://www.linkedin.com/pulse/assertions-xslt-javaxalan-adam-jenkins

Maven: https://search.maven.org/artifact/net.adamjenkins/sxe/1.1/jar

Versions

Version
1.1
1.0