早上好,如果有人知道它有助于通过 xsl 和 xml 创建变量
我有这个xml:
<!ELEMENT bdticketCardell (invoice, services, products) >
........
<!ELEMENT services (service+)>
<!ELEMENT service (nameService, quantityService, priceService)>
<!ELEMENT nameService (#PCDATA) >
<!ELEMENT quantityService (#PCDATA) >
<!ELEMENT priceService (#PCDATA) >
<!ATTLIST service idService ID #REQUIRED>
我想做 = ""variable name="grosspriceservice1" select="//quantityService[@idService = "s1"] * //priceService[@idService = "s1"]/>""
非常感谢