SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: tutorial ?

  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    tutorial ?

    If you know any tutorial about xml /xsl, post them here,
    Iím searching of tutorials that shows how to use:


    • for: not only <xsl:for-each select="answer"> but also i you can do somthing like this (for $i=0; $i<10; $i++))

    • if: how to use if, if you want to check many things like if ($a==b and $a<1 or $a > 10)

    • Arrays: if you can make arrays: Iím using XsltProcessor::setParameter in php5 and want to know if i can make an array and how to iterate through it.

    • if you can store html in a xml file and print it with xsl ex:

    <node>hello <br/> bye</node>
    and in xsl:
    <xsl:value-of select="node"/>
    and then get it to return "hello <br/> bye"

  2. #2
    SitePoint Member
    Join Date
    May 2005
    Location
    sweden
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A good plays to start is with the w3schools xsl tutorial which will give you a basic under standing of how for-each and if works in xsl.

    But i also want to promote an excellent software called oxygen which among other things is great for writing and validating xsl files in. It comes with a 30-day trail so you can try it without spending any money. It have helped me getting started with xsl and when you know how it works you can do quite powerful things with those xml files.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •