Subject: [xsl] small grouping task From: Fred Christian <fredc@xxxxxxxxxx> Date: Thu, 26 Feb 2009 11:30:31 -0800 |
Source XML ----------
<div> <p>text</p> {surronding xhtml} <p class="problem">{some xhtml with no inputs} <input type="radio" /> <span class="p">a</span><br /> <input type="radio" /> <span class="p">b</span><br /> <input type="radio" /> <span class="p">c</span><br /> <input type="radio" /> <span class="p">d</span><br /> {some xhtml with no inputs} </p> {surronding xhtml} </div>
Target XML ----------
<div> <p>text</p> {surronding xhtml} <p class="problem">{some xhtml xml with no inputs} <ul class="m"> <li class="m"> <span class="p">a</span></li> <li class="m"> <span class="p">b</span></li> <li class="m"> <span class="p">c</span></li> <li class="m"> <span class="p">d</span></li> </ul> {some xhtml with no inputs} </p> {surronding xhtml} </div> ------------------------------------------------------------
starter XSL --------------- <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template>
<xsl:template match="p[@class = 'problem' and input]"> {what do I do here?} </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Grouping & use of keys, G. Ken Holman | Thread | Re: [xsl] small grouping task, G. Ken Holman |
Re: [xsl] Grouping & use of keys, G. Ken Holman | Date | Re: [xsl] small grouping task, G. Ken Holman |
Month |