RE: differentiation between text() and entities???
I tried using DOM instead of DTM but now the entities are just eliminated. For example, If the input contains "some text©other text" then I ONLY get "some textother text" as the output? Any workaround to get "some text©other text" as the output??? Interestingly and surprisingly, if I match on html tag and write html tag to the output, I get the desired result but I really don't want to write the output enclosed between <html> and </html>. I am unable to get a good explanation of this behavior. Example (note: input file is html): ================================== Following works for me. <xsl:template match="html"> <html> <xsl:apply-templates/> </html> </xsl:template> But the following does not. <xsl:template match="html"> <some_other_tag> <xsl:apply-templates/> </some_other_tag> </xsl:template> in either case, i am doing <xsl:value-of select="text()"/> to display the text. In the first case I get "some text©other text" while in the latter case I get "some textother text". How does the processor know what is going to be at the output????? thanks, zartash > 3>[My problem is] Only that XSLT is considering that text ends > 3>before   starts, and then considers   another text > 3>segment and whatever follows   as yet > 3>another text segment. > > This is a known bug in Xalan's DTM. Use the DOM to avoid it. > .................David Marston > > > 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