xsl-list
[Top] [All Lists]

Re: Printing all child bachelor nodes

2006-02-09 08:55:35
On 2/9/06, Douglas F Shearer <dougal(_dot_)s(_at_)gmail(_dot_)com> wrote:
I have one more query, is there anyway I could have ONLY the beds in
bold?

<xsl:template match="features/beds">
  <span class="bold">
       <xsl:value-of select="local-name()"/>
       <xsl:for-each select="@*">
               <xsl:value-of select="concat(' ', name(), ':', .)"/>
               <xsl:if test="position() != last()">,</xsl:if>
       </xsl:for-each>
       <xsl:text>.</xsl:text>
  </span>
</xsl:template>

you will need to add a style for span.bold

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>