Display XML diferent in JSF (using XSLT or some another suggestion)

Posted by Milan on Stack Overflow See other posts from Stack Overflow or by Milan
Published on 2010-04-18T17:54:31Z Indexed on 2010/04/18 18:03 UTC
Read the original article Hit count: 421

Filed under:
|
|
|

Hello everybody!

At runtime I receive xml document and I want to display it somehow different in JSF. For example:

This:

<invoker.ArrayOfDictionary>
  <dictionary>
    <invoker.Dictionary>
      <id>gcide</id>
      <name>The Collaborative International Dictionary of English v.0.48</name>
    </invoker.Dictionary>
    <invoker.Dictionary>
      <id>wn</id>
      <name>WordNet (r) 2.0</name>
    </invoker.Dictionary>
    <invoker.Dictionary>
      <id>moby-thes</id>
      <name>Moby Thesaurus II by Grady Ward, 1.0</name>
    </invoker.Dictionary>

in this:

invoker.ArrayOfDictionary:
  dictionary:
    invoker.Dictionary:
      id:gcide
      name:The Collaborative International Dictionary of English v.0.48
    invoker.Dictionary:
      id:wn
      name:WordNet (r) 2.0
    invoker.Dictionary:
      id:moby-thes
      name:Moby Thesaurus II by Grady Ward, 1.0

I was thinking to do this with XSLT transformation. Some guidelines how to start with xslt? Or maybe you have another idea for this?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about jsf