[xsl] RE:

Subject: [xsl] RE:
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Wed, 11 Dec 2002 16:53:09 -0000
It sounds like ie doesn't heed the entity declaration - <vagueGesture> maybe
in the archives </vagueGesture>

In general, tho', <xsl:apply-templates select="text()"/> and the default
text() template will take care of it / them.

Regards,
Tom SW

> -----Original Message-----
> From: Whitney, Dan (FPDG) [mailto:DanW@xxxxxxxxxxxxxxxxxx]
> Sent: 11 December 2002 16:34
> To: 'mulberry - xsl'
> Subject: 
> 
> 
> 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
> 

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


Current Thread