Thanks guys none of that is working but after reading over the responses i
think i have the right XSL it must be somewhere else in the code or XML (which
is a remote feed) I just thought the whole of XML maybe broke overnight.
Thanks again!
-----Original Message-----
From: vsubramanian(_at_)xperts(_dot_)com
Sent: May 11, 2004 11:15 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Simple XSL but having problems
If your desired output is :
<?xml version="1.0" encoding="UTF-8"?>
test1
::
test2
;;
test3
::
test4
;;
Then try this
===================
<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="a">
<xsl:for-each select="b mod 2">
<xsl:value-of select="c1"/>
::
<xsl:value-of select="c2"/>
;;
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
-----Original Message-----
From: Dylan Barber [mailto:dylan(_dot_)barber(_at_)earthlink(_dot_)net]
Sent: Tuesday, May 11, 2004 11:02 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_dot_)barber(_at_)earthlink(_dot_)net
Web Designer / Developer / Host
----------------------------------------------------------------------------
-----------------
Clip those URLs! - Short links are easier to remember.
http://clipurl.com
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--
---------------------------------------------------------------------------------------------
Dylan Barber : AOL Messenger - dylanbarb
(CIW Professional, A+ Technician): MSN Messenger -
dylan(_dot_)barber(_at_)earthlink(_dot_)net
Web Designer / Developer / Host
---------------------------------------------------------------------------------------------
Clip those URLs! - Short links are easier to remember.
http://clipurl.com