1
여러 개의 필터를 사용하여 쿼리를 작성하기 위해 다음 XSLT에 매개 변수 (C#을 통해)를 전달하려고하지만 작동하지 않습니다. 나는 무엇을 잘못하고 있으며 이것을 올바르게하는 방법은 무엇입니까?xsl : param 및 다중 필터
은 (필터는 하드 코딩 된 값으로 작동하고 매개 변수 값은 XSLT를 통해 얻고있다)
감사합니다!
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="html" />
<xsl:param name="SensorBandName" />
<xsl:param name="SensorBandFrequencyName" />
<xsl:template match="Sensor">
<html>
<head>
<title></title>
</head>
<body>
<p>
<xsl:value-of select="Bands/SensorBand[Name='$SensorBandName']/Frequencies/SensorBandFrequency[Name='$SensorBandFrequencyName']" />
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
감사! 그게 효과가 있었어! – Gerard
반갑습니다. 그러나, 당신은 대답으로 받아 들일 수 있었는데, 나는 루벤스보다 1 분 일찍 게시했는데 그렇지 않다면 ...;) – Lucero
동의합니다. 그래서 +1을주었습니다. –