Puzzled about how this works...!!! - Programmers Heaven

Howdy, Stranger!

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

Categories

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.