|
Subject: Re: [xsl] Creating a number new nodes in a tree based upon a numeric value From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 09 Jan 2001 14:10:30 +0000 |
<xsl:template match="TAG">
<TABLE>
<TR ID="@ID">
<xsl:for-each select="//*[position() <= @Value]">
<TD></TD>
</xsl:for-each>
</TR>
</TABLE>
</xsl:template>Cheers, Wendell
Ok, I think the answer is "no", but I'm still curious to ask.
Say I have an XML doc that contains something like:
<Tag ID="1"> <Value>4</Value> </Tag> <Tag ID="2"> <Value>2</Value> </Tag>
... and I want to end up with something like:
<TABLE> <TR ID="1"> <TD></TD> <TD></TD> <TD></TD> <TD></TD> </TR> </TABLE> <TABLE> <TR ID="2"> <TD></TD> <TD></TD> </TR> </TABLE>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Creating a number new nod, Richard Light | Thread | Re: [xsl] Creating a number new nod, Wendell Piez |
| Re: [xsl] xsl:script: functions wri, Lassi A. Tuura | Date | RE: [xsl] [OT?] Your opinion please, Geert Vanden Broeck |
| Month |