0
는 XSLT 파일에서 양식을 렌더링, 및 홈 /이 ProcessRequest라는 ASP.Net MVC 액션에 게시 할 예정 양식 만들었습니다나는 다음과 같은 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" indent="yes"/>
<xsl:template match="/">
<html>
<body>
<xsl:value-of select="Employee/Name"/>
<br />
<xsl:value-of select="Employee/ID"/>
<form method="post" action="/Home/ProcessRequest?id=42">
<input id="Action" name="Action" type="radio" value="Approved"></input> Approved <br />
<input id="Action" name="Action" type="radio" value="Rejected"></input> Rejected <br />
<input type="submit" value="Submit"></input>
</form>
</body>
</html>
을
여기 내 XML 파일입니다
<Employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Russ</Name>
<ID>42</ID>
</Employee>
이 그것입니다 방법을 잘 작동하지만 나는 하드 코딩 정수에서에서 내 XML의 FIL에서 ID 요소를 사용하는 내에서 id 매개 변수를 변경해야 이자형. 누구든지이 작업을 수행하는 방법을 알고 있습니까?