xsl:value-of

Please help me !! What is wrong with this style sheet ? When I apply this to the XML document given It does not print the urgent on IE? What am I missing? Please help me this is urgent.. Thanks in advance.

That�s because your <xsl:for-each> statement will be executed for each "open_issues" element, and there is only one, so it will work once and output the first "issues" element. Instead, put <xsl:template match="Meeting"> ... <ul> <xsl:for-each select="Meeting/open_issues/issues"> <li> <xsl:value-of select="."/></li> </xsl:for-each> </ul> ... </xsl:template> - that should work

Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245

posted Jun 13, 2001 09:06:00

0

Yes It worked. This is really cool site. Thanks once again. :-)

Tell me if my way of writing style sheet is wrong . I mean I just felt I am using so much of HTML , Can I do it in some other better way. But I dont think I am wrong. Please tell me if I need to imrpove on the way I am doing it.

Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065

posted Jun 13, 2001 16:58:00

0

Did not find anything horribly wrong in your XSLT, so all I can tell are general recommendations XSLT is a functional language and it employes different programming paradigm. For this reason, many of our habitual tricks will not work. It is worth to spend some time, to read a book (Khun Yee Fung�s �XSLT� is good) and to learn concepts. Otherwise a lot of frustration will be our the only reward... After that, to look at classical patterns of XSLT thinking is very useful. Unfortunately, it will take a while to get used to think in a different way, but it means we will think better!

Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245

posted Jun 13, 2001 17:20:00

0

Can u help me to clarify my doubt? Whatever I am doing here needs me to use HTML tags. Is xsl:fo an alternative to achieve all this??? Please help Thanks

Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065

posted Jun 14, 2001 00:34:00

0

You need to use HTML tags because you need to convert your XML into HTML to show it in a browser. I am not sure XSL:FO is a good alternative. One thing, it is said to be more complex than XSLT. Next, it requires special tools to be rendered. I am not aware of browsers level of support for XSL:FO, but even if last versions support it, what if your clients use old versions? HTML is still much more reliable media. HTML inclusions in XSL stylesheets are normal practice if these stylesheets are intended for "XML to HTML" conversion. Nothing wrong with it

[This message has been edited by Mapraputa Is (edited June 14, 2001).]

Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245

posted Jun 14, 2001 07:33:00

0

Thanks Map for your valuable time. I will read the xslt book you suggested. Thanks