使用XSLT修改XHTML

时间:2016-11-18 22:11:53

标签: html xslt

美好的一天!我需要使用XSLT修改XHTML输出。下面是XHTML输出的摘录,我需要将{Candidate.FullName}等括号标签替换为XML中的数据。有一种简单的方法吗?

<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title></title>
  </head>
  <body style="font-family: Arial, Times New Roman, Verdana, Sans-Serif; padding: 5px 5px 5px 5px; margin: 0px; border-style: none; background-color: #ffffff">
    <div>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        {Other.CompanyLogos1}
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        &nbsp;
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        {Candidate.FullName}
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        {Candidate.Address}
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        {Candidate.Address2}
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        {Candidate.City}, {Candidate.State}&nbsp; {Candidate.Zipcode}
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        &nbsp;
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        Dear {Candidate.FirstName},
      </p>
      <p style="margin-top: 0px; margin-bottom: 0px;">
        &nbsp;
      </p>

0 个答案:

没有答案