如何在元素集周围包裹<transactiondetail>标签?

时间:2018-07-17 19:26:11

标签: xml xslt

以下是我的XML。我添加了所需的标签作为注释。我需要在每个元素之前添加一个标记,并包含每个事务中的所有元素。

<Transactions>
 <!--TransactionDetail-->
  <Number>63400</Number>
  <Title>Interest Expense</Title>
  <Type>Check</Type>
  <Date>2017-05-04</Date>
  <Name>Dell Financial Services</Name>
  <Memo>003-8922605-001</Memo>
  <Split>MCM BofA Checking</Split>
  <Amount>160</Amount>
  <Balance>160</Balance>
  <Number>Total 63400</Number>
  <Title>Interest Expense</Title>
  <Amount>160</Amount>
  <Balance>160</Balance>
 <!--/TransactionDetail>-->
 <!--TransactionDetail-->
  <Number>64000</Number>
  <Title>Internet Expenses</Title>
  <Type>Bill</Type>
  <Date>2017-05-29</Date>
  <Name>Swift Systems, Inc.</Name>
  <Memo>Server Hosting Fee</Memo>
  <SplitNum>20000</SplitNum>
  <SplitTitle>Accounts Payable</SplitTitle>
  <Amount>250</Amount>
  <Balance>250</Balance>
  <Number>Total 64000</Number>
  <Title>Internet Expenses</Title>
  <Amount>250</Amount>
  <Balance>250</Balance>
 <!--/TransactionDetail>-->
 <!--TransactionDetail-->
  <Number>64500</Number>
  <Title>Client Expenses</Title>
 .....       

我是XML和XSLT的新手。

enter image description here

1 个答案:

答案 0 :(得分:0)

ORDERER_GENERAL_TLS_ROOTCAS