|
Selling the Decision Makers on XML
by DevX Pro
I am starting to see the benefits of using XML and XSL in Web site development, but my challenge is convincing the decision makers. Their usual responses are: "Show me" (there aren't a lot of examples to be found), "What about older browsers?", and "What's the point?" My company is a book publisher. What benefits does XML have in this area?
|
|
Using XSLT to Transform Flat Data Into a Hierarchy
by DevX Pro
I have a limited understanding of XSL (Extensible Stylesheet Language) and have been trying to figure out how to write an XSL document that will transform a highly de-normalized set of data into a hierarchical XML document. It looks to me like it would be easier to transform the data with a traditional programming language. This data serves as an example of this issue:
Initial Data:
Parent 1 Key, Attribute1, Attribute2, Attribute3, Child 1 Key, Child Attribute1, Child Attribute2
Parent 1 Key, Attribute1, Attribute2, Attribute3, Child 2 Key, Child Attribute1, Child Attribute2
Parent 1 Key, Attribute1, Attribute2, Attribute3, Child 3 Key, Child Attribute1, Child Attribute2
Parent 2 Key, Attribute1, Attribute2, Attribute3, Child 1 Key, Child Attribute1, Child Attribute2
Parent 2 Key, Attribute1, Attribute2, Attribute3, Child 2 Key, Child Attribute1, Child Attribute2
Desired Transformation:
Parent 1
Child 1
Child 2
Child 3
Parent 2
Child 1
Child 2
|