[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 pfd > B ser 3 > r cv Ra $1.3875 pa Q <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 is not treated as text? and so I lose all > the text after > the first entity reference. I have the entity mapped to   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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|