Converting an XML document to multiple XHTML objects via XSLT transformation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • groo78
    New Member
    • Mar 2008
    • 2

    Converting an XML document to multiple XHTML objects via XSLT transformation

    Hi,

    I have an XML document that I need to convert to XHTML and I would like to use XSLT. I have attempted transformations using javascript and it works fine.

    The problem I have is that I need to transform my XML document into multiple DIVs which I can access individually and place in different locations around my page.

    Is it better to use Javascript DOM and parse the XML document into several smaller XML documents and transform them individually or is there an efficient way to manipulate the results from an xslt transformation into XHTML? Are there other, better, possibilities that I've missed?

    If someone can point me to a site which contains some of the theory to this or if you know the best practices yourself I would very much appreciate your advice.

    Thanks!
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Since javascript is larger, it generally takes much longer for javascript to run.
    XSLT will generally be faster.

    If you're using XSLT, you may be able to use modes to parse data in different ways.

    Comment

    • groo78
      New Member
      • Mar 2008
      • 2

      #3
      Originally posted by jkmyoung
      Since javascript is larger, it generally takes much longer for javascript to run.
      XSLT will generally be faster.

      If you're using XSLT, you may be able to use modes to parse data in different ways.

      Excellent. Thanks a bunch. I will look into this.

      Comment

      Working...