RE: [xsl] Simple XSL but having problems

Subject: RE: [xsl] Simple XSL but having problems
From: "Kenny Akridge" <kenny@xxxxxxxxxxxxxxxxx>
Date: Tue, 11 May 2004 12:13:56 -0400
When I fixed that <b> problem, it worked fine.  Maybe you should post the
full XML and XSL if possible.

-----Original Message-----
From: Dylan Barber [mailto:dylan.barber@xxxxxxxxxxxxx] 
Sent: Tuesday, May 11, 2004 12:11 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Simple XSL but having problems

Sorry that was actually a typing error i tried to cut down the XML to make
it more readable  actually there are 12 elements in between the <b></b> and
i only want a few but this doesnt seem to work.  I ased this on the w3school
examples


-----Original Message-----
From: Kenny Akridge <kenny@xxxxxxxxxxxxxxxxx>
Sent: May 11, 2004 11:07 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Simple XSL but having problems

Your XML is not well structured:

   <b>
       <c1>test1</c1>
       <c2>test2</c2>
   </b>
   <b> <-- This <b> is never closed, needs to be <b/>
   <b>
       <c1>test3</c1>
       <c2>test4</c2>
   </b>

Also note, the <b/> will still cause the :: and ;; to appear.

Hope this helps.


-----Original Message-----
From: Dylan Barber [mailto:dylan.barber@xxxxxxxxxxxxx] 
Sent: Tuesday, May 11, 2004 12:02 PM
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



----------------------------------------------------------------------------
-----------------
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