This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes What Does This XSL Snippet Do? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "What Does This XSL Snippet Do?" Watch "What Does This XSL Snippet Do?" New topic

What Does This XSL Snippet Do?

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
I have a snippet of XSL code. And the code is to tranform a XML document to HTML. I have problem to figure out what this XSL snippet exactly does. I do "not" need to know those HTML <tbody>, <tr>, <td>, style sheet stuff.

What I can understand is that the HTML table created will have two columns. The first column is labeled "In fulfillment of". I am lost when I read the XSL code for the second column to be created. I can see that the code needs to read the n1:inFulfillmentOf/n1 : order/n1:id and n1:inFulfillmentOf/n1 : order/n1:code and n1:inFulfillmentOf/n1 : order/n1:priorityCode.

and I also know that   is HTML non-break space; but I do not know what is going to look like in HTML. Would someone help me? Thank you.

Paul Clapham

Joined: Oct 14, 2005
Posts: 19693

It isn't possible to say "exactly" what that XSLT template does, because it calls some other templates which you haven't shown.

As for the second column in the HTML table generated from that XSLT, it's going to contain a lot of data. But if it were me, I would just run it and then try to understand the output.
jQuery in Action, 3rd edition
subject: What Does This XSL Snippet Do?
It's not a secret anymore!