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

RE:

Subject: RE:
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Wed, 11 Dec 2002 16:53:09 -0000
 RE:
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
  • RE:
    • TSchutzerWeissmann - Wed, 11 Dec 2002 11:48:13 -0500 (EST) <=

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.