xsl-list
[Top] [All Lists]

[xsl] formatting characters...

2007-01-10 12:22:41
I have an XML doc that in one of its fields can contain a list of
items...  for example

<description>
There is some text here.  Followed by a list:
   * item 1
   * item n
Now there may be some additional text here.
</description>

The portion of the XSLT that handles this block is 

<xsl:template name="DETAILS">
   <xsl:param name="FID"/>
      <dd>
         <b><SPAN STYLE="font-style:italic">Discussion:</SPAN></b>
      </dd>
      <dd>
         <xsl:value-of
select="document('myfile.xml')//XPathStatement[ID=$FID]/DISCUSSION"/>
      </dd>
</xsl:template>

Is there any way to make sure that each of the list items displays on
it's own line and indented?  I've tried adding the hex characters
(&#xD; &#xA; &#x9;) to my XML doc, but when the page is rendered in the
browser it all renders as one line.

+------------------------------------------
| José J. Cintrón
+------------------------------------------



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