[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Likely a very stupid question

Subject: Re: Likely a very stupid question
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 20 Oct 2006 20:15:39 +0200
very stupid questions
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:

I get no values in my table, just the headers. I've even tried copying and pasting their code and just entering the corresponding code for my own document and I still get nothing.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.