Re: XML display table using cc
- From: "Christian Rühl" <chris@xxxxxxxxxx>
- Date: Wed, 28 Nov 2007 01:49:44 -0800 (PST)
On 28 Nov., 10:29, Pradeep <juneja.prad...@xxxxxxxxx> wrote:
On Nov 28, 1:15 pm, "Christian Rühl" <ch...@xxxxxxxxxx> wrote:
On 28 Nov., 07:24, Pradeep <juneja.prad...@xxxxxxxxx> wrote:
On Nov 28, 9:38 am, Joe Kesselman <keshlam-nos...@xxxxxxxxxxx> wrote:
You can certainly do this using XSLT. (CSS is only good at annotating an
existing document structure; XSLT can completely reorganize the data..)
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Thanks for clarifying.....How can we do through XSLT ....Kindly help
I think this might help you a little: <http://www.w3schools.com/xsl/
xsl_transformation.asp>
One of the upper points called "Start with a Raw XML Document"
followed by "Create an XSL Style Sheet" shows you how to put XML Data
into a table in HTML format. I'm not quite shure if HTML is what you
want, but if, then you should just modify the table structure a little
and its done.
Hope that helps!
Hi Christian Ruhi,
Thehttp://www.w3schools.com/xsl/xsl_transformation.aspgives info
about generating hard-coded table header. I want the header to be
decided by ITEM child elements (in my example its PRICE, and
QTY).....Is there a way to extract this information and display it in
header
You can use the <for-each> function like shown there:
<xsl:for-each select="catalog/cd">
<tr>
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="artist"/></td>
</tr>
</xsl:for-each>
But you are right, here is "title" and "artist" hard coded. You can
access node attributes with @attributename. So your's should look like
<td><xsl:value-of select="@QTY"/></td> for example. Otherwise you can
declare variables like $variablename. Here: <xsl:variable
name="quantity" select="@OTY"/> and then feed your table using
<xsl:value-of select="$quantity"/>.
.
- References:
- XML display table using cc
- From: Pradeep
- Re: XML display table using cc
- From: Joe Kesselman
- Re: XML display table using cc
- From: Pradeep
- Re: XML display table using cc
- From: Christian Rühl
- Re: XML display table using cc
- From: Pradeep
- XML display table using cc
- Prev by Date: Re: XML display table using cc
- Next by Date: Re: XML display table using cc
- Previous by thread: Re: XML display table using cc
- Next by thread: Re: XML display table using cc
- Index(es):
Relevant Pages
|