小编use*_*088的帖子

XML to XML with XSLT 根据值省略特定元素

我正在尝试生成一个与初始文件几乎相同的 xml 文件,但我需要我的 xsl 表将其转换为仅包含那些具有“公寓”或“单元”的 <类型> 并具有值的文件< numberofBedrooms > 中超过 1 个我完全迷失了,任何帮助将不胜感激!

我的初始 xml 表如下:

<rentalProperties> 
<property available="yes" contact="0423020892"> 
    <type>house</type> 
    <price>800</price> 
    <address> 
        <streetNo>116</streetNo> 
        <street>Warrigal Road</street> 
        <suburb>Camberwell</suburb> 
        <state>VIC</state> 
    <zipcode>3124</zipcode>
    </address> 
    <numberOfBedrooms>4</numberOfBedrooms> 
    <description>Ideal for the familly is this charming Californian Bungalow. Comprising a spacious living area, formal dining room plus a huge family/meals area, bright modern well appointed kitchen with dishwasher, gas cooktop and electric oven and heaps of bench space, Four double bedrooms, two in a wing of their own, are …
Run Code Online (Sandbox Code Playgroud)

xml xslt

5
推荐指数
1
解决办法
438
查看次数

标签 统计

xml ×1

xslt ×1