I am able to output almost all the XML element contents into a table except the value of (Local =”No”)

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>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s