Hi,
I have a simple xslt problem from a tutorial and I am getting the
wrong result and makes no sense. This I'm sure is trivial but I just
need to catch the error... By the way I am using Oxygen xml editor
that does transforms to and I have suceesfully run samples from this
tutorial... http://www.cafeconleche.org/books/xian3/examples/08/
My XML file is:
My XSL file containsHTML Code:<?xml version="1.0" ?> <sample> <option value="Afghanistan" >Afghanistan</option> <option value="Albania" >Albania</option> <option value="Algeria" >Algeria</option> <option value="Andorra" >Andorra</option> <option value="Antigua and Barbuda" >Antigua and Barbuda</ option> </sample>
Yet in my result I get only:HTML Code:<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="sample"> <xsl:value-of select="option"/> </xsl:template> </xsl:stylesheet>
Afghanistan
My intended result is all 4 listed countries.
TIA


Reply With Quote
Bookmarks