RE: [xsl] Simple XSL but having problems

Subject: RE: [xsl] Simple XSL but having problems
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 11 May 2004 18:02:28 +0100
I bet you've left out the part of the XML that's causing the trouble,
because you didn't think it mattered. Is there a default namespace
declaration, by any chance?

Michael Kay 

> -----Original Message-----
> From: Dylan Barber [mailto:dylan.barber@xxxxxxxxxxxxx] 
> Sent: 11 May 2004 16:02
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Simple XSL but having problems
> 
> Here is my xml layout
> 
> <a>
>    <b>
>        <c1>test1</c1>
>        <c2>test2</c2>
>    </b>
>    <b>
>    <b>
>        <c1>test3</c1>
>        <c2>test4</c2>
>    </b>
> </a>
> 
> and i want to show c1 and c2 so i have this 
> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 	<xsl:template match="/">
> 			<xsl:for-each select="a/b">
> 				<xsl:value-of select="c1"/>
> 				::
> 				<xsl:value-of select="c2"/>
> 				;;
> 			</xsl:for-each>:|*|:
> 	</xsl:template>
> </xsl:stylesheet>  
> 
> 
> however all i get is :|*|:
> 
> what did i do wrong (please no rebukes I am trying to 
> understand this and I think this structure should work its 
> easy enough)
> 
> Thanks !!!!!
> 
> --------------------------------------------------------------
> -------------------------------
> Dylan Barber                              :  AOL Messenger - dylanbarb
> (CIW Professional, A+ Technician): MSN Messenger - 
> dylan.barber@xxxxxxxxxxxxx
> Web Designer / Developer / Host
> --------------------------------------------------------------
> -------------------------------
> 
> 
> Clip those URLs! - Short links are easier to remember.
> http://clipurl.com

Current Thread