[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

From: "Whitney, Dan (FPDG)" <DanW@xxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Dec 2002 11:34:13 -0500
fpdg
Having a little problem with ie not interpreting character entities as text.

Here's the xml fragment:

<RECORDSECTION docfragment="security">
<ID idtype="fpsid">30778</ID>
<RECORDITEM sqlsource="security" id="id30778">BMO.PR.F&nbsp;&nbsp;&nbsp;pfd
B ser 3 r&nbsp;cv&nbsp;Ra&nbsp;$1.3875&nbsp;pa&nbsp;Q&nbsp;<DOCUMENTREF
elemcont="Reinvestment Option" sqlsource="securitynote">Reinvestment
Option</DOCUMENTREF></RECORDITEM>
</RECORDSECTION>

Heres the xslfo fragment:

<xsl:template match="RECORD [@fragid='17']//RECORDSECTION [@docfragment =
'security']">
  <fo:block margin-left="6pt" space-before="4pt">
    <xsl:for-each select="RECORDITEM">
      <xsl:value-of select="text()"/>
      <xsl:apply-templates select="DOCUMENTREF"/> 
    </xsl:for-each>
  </fo:block>
</xsl:template>

Here's roughly the output (using fop 0.20.4):

BMO.PR.F   pfd B ser 3 r cv Ra $1.3875 pa Q *  --(DOCUMENTREF template
produces the "*" and is linked to a footnote)  --

However when I open the same xml fragment with this xsl:

<xsl:template match="RECORD [@fragid='17']//RECORDSECTION [@docfragment =
'security']">
  <xsl:for-each select="RECORDITEM">
    <xsl:value-of select="text()"/>
    <xsl:apply-templates select="DOCUMENTREF"/>
  </xsl:for-each>
</xsl:template>

I get the following result (in ie 6.0):

BMO.PR.F

The entity &nbsp; is not treated as text? and so I lose all the text after
the first entity reference. I have the entity mapped to &#x00A0; in
iso_num.ent.

Which one is right? and how do I get ie to print all the text including
entities without printing the value of element DOCUMENTREF?

Thanks in advance,

Dan





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.