Re: XML display table using cc



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"/>.
.



Relevant Pages

  • Re: XML display table using cc
    ... existing document structure; XSLT can completely reorganize the data.) ... One of the upper points called "Start with a Raw XML Document" ... into a table in HTML format. ... about generating hard-coded table header. ...
    (comp.text.xml)
  • Re: Data Merge to E-mail
    ... The bottom line is that HTML doesn't support Headers & Footers - there is no document structure in HTML or email. ... When I 'data merge to e-mail' and select HTML the merged file goes to my outbox in Entourage but without the header and footer showing. ...
    (microsoft.public.mac.office.word)
  • Re: Grey logos in letterheads
    ... If you really need the rationalisation, it is/was this: ... from which both HTML and XML protocols sprang: ... header and leaving it up to the recipient device to figure it out. ...
    (microsoft.public.mac.office.word)
  • Re: Grey logos in letterheads
    ... small comment--actually, both of my points came about because people constantly post about both those problems on the general Word groups, not here. ... I was trying to write an explanation to defend the lost headers in HTML to someone over there when I realized there was no way I could rationalize it. ... user can edit it and it can have a running header on each page. ...
    (microsoft.public.mac.office.word)
  • Re: Diacritical marks in array dont translate
    ... >>> encoding you specified in your HTML. ... > header transmitted by a server. ... MUST or MAY allow the Content-Type header to be overridden by the `meta' ... There are used UAs out there which does not support Unicode, ...
    (comp.lang.javascript)