Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Puzzled about how this works...!!!

This is a problem involving xml schema: I am supposed to print the details in tabular format!

xsl file code:
[code]

[red]

,
[/red]



Supplier Details

SUPPLIER DETAILS AT CYBERSHOP



ID
Name
Address
Phone
Product(s)










[red][/red]






[red][/red]










[/code]

Here is the xml file:

[code]
<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="6p3.xsl"?>

10 Lafair Sr, NY 12034
123-456-7894
Office Stationary
Furniture

10 Wellington St, MA 12034
348-279-8799
Water Dispenser
Air Conditioning

45 1/2 Long BEach, CA 90210
478-939-2092
Intercom
Telephone


[/code]

I got proper output but did not understand how the xsl:apply-template element worked. I am supposed to get all the text in the product element into one field. Even if there are more than two or more product elements (in supplier) it prints the proper output (without no looping). How is this possible?
Sign In or Register to comment.