Suppose I have XSL as follows:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" indent="yes"/>
<xsl:param name="sortKey" select="'firstname'"/>
</xsl:stylesheet>
Then XML as follows
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="XYZ.xsl"?>
<ABC>
<firstname>GREG</firstname>
</ABC>
I want to pass a value to the XSL XML parameter firstname . I can do it? If so, how?
From the answers it is clear that this is impossible.
How about reading a value from the same XML and assigning it to a parameter. It can be done? If so, how?
source
share