• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sample XML/XSL and corresponding HTML

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to practice XSTL. I have gone through some sample tutorials on the net and practiced the XML transformations there.

But the examples they have are pretty basic, like transforming some XML to a HTML table etc. and also they are pretty much the same on all the online tutorials and books.

Can someone please guide me to a slightly more complex XML (for transforming to HTML using XSL) and the corresponding HTML (so that I know how the result should look like). Say, some (document) content which is in the form of XML and needs to be published to the user as HTML (As far as I could understand this seems to be the most common use of XSL, if I am wrong please correct me)
The idea is to get some hands-on for XSL
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the quickest ways to get a feel for XSLT is to use Internet Explorer*. It will transform XML based on a defined style sheet so you can quickly check the effects of a specific XSLT on your DOM. I'd recommend going through the specification having a play with the various transformations you can do. I find having a much more immediate method of seeing what can happen helps me speed through XSLT development.

(*You can of course also get IDE's that support XSLT, but IE will do fine when you are just learning)
reply
    Bookmark Topic Watch Topic
  • New Topic