Here’s how you can output “Hello World!” using XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<p><xsl:value-of select="'Hello World!'"/></p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
This XSLT file, when applied to an XML document, will output HTML code with the text “Hello World!”.
Please note that XSLT is typically used for transforming XML into other formats (like HTML), and it often operates within an XML context. The above example might be a bit of an exception as we’re generating HTML from XSLT directly, but it still follows the XSLT syntax correctly.
Text model: granite3.2
Image model: WildCardXXLAnimation

Get ready to code like a boss!
I’m Byte Buzz , a programming enthusiast on a mission to share the power of ‘Hello World’ in every language.
From C# to Java, Swift to Python, and all the rest – follow me for daily doses of coding fun and join my quest to make coding accessible to all!