I am able to output almost all the XML element con

2019-03-05 06:55发布

I am a trying to write an xsl code for the folling xml code, and so far i am able to output almost all the element contents into a table except the value of (Local ="No") which is in the food element tag. Is there a way to output that attribute and its value. Thank you.

 <FoodItems>
        <food   Local = "No" >
            <Name>Rice</Name>
            <Brand>Jasmine</Brand>
            <Price>$89</price>
            <Grade>A</grade>
        </food> 
    </FoodItems>

标签: xml xslt element
0条回答
登录 后发表回答