[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Likely a very stupid question
Joelle,
There are no stupid questions. Only stupid answers... (but a more to the point subject line is preferred however) What you are missing is the namespace. The XML you are referring to contains a namespace, but that namespace is nowhere to be found in your XSL file. Add it to the root xsl:stylesheet element with a prefix, and add that prefix to the select statements you make. Or add it without a prefix and leave your code as it is now (but that might put the html in the wrong namespace... I wouldn't recommend that). For example: <xsl:stylesheet version="1.0" xmlns:youth="xmlns="http://www.youthhood.org"" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> [...] <xsl:value-of select="youth:sitemap/youth:section/youth:id" /> [...] As a hint: in 90% of the situation where you suddenly miss "all" your data in the output, it is a namespace mismatch or typo. Remember, the namespace must EXACTLY match, the ns prefixes however, are free to choose. Cheers, -- Abel Braaksma http://www.nuntia.com Joelle Tegwen wrote:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|