XML isnt showing basic text from XSL document
Posted: Fri Sep 01, 2023 1:31 pm
Hi all,
Newbie here so sorry if this is a basic question, basically I have an XML that wont link to my XSL stylesheet, this is what is at the top of my XML document
The XSL stylesheet is contained within the same folder and is called TransformDocument.xsl, which looks like this
I am not getting testing123 displaying anywhere when I open the XML file, I dont think its linking because I also just put testing123 in the <body> tags and still nothing was displayed - I have tried this in Chrome and Edge.
Newbie here so sorry if this is a basic question, basically I have an XML that wont link to my XSL stylesheet, this is what is at the top of my XML document
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="TransformDocument.xsl"?>
<root>
<listing>
<seller_info>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3org1999/XSL/Transform">
<xsl:template match="/">
<html>
<head></head>
<body>
<xsl:apply-templates select="/root/listing"/>
</body>
</html>
</xsl:template>
<xsl:template match="listing">
Testing123
</xsl:template>
</xsl:stylesheet>