hello My objetive is create a html page with from xml, the xml source have some mathml and with a xsl transformation, I transform other elements and copy the same mathml block.My problem is that, the mathml block have "strange" symbols like and when I make the transformation the xalan transforms them in ???. Help!!! an other solution like not process the mathml elements?,how? the code
Hi Raul, I guess xalan supports almost all unicode characters. It may show a question mark or a rectangle box as output if its cannot understand the unicode character that you specify, like & # x 2160; Finding the correct Unicode for math symbol is a real task. Please read the spec from w3c http://www.w3.org/TR/REC-xml#CharClasses i hope you visited the mathml site at http://www.w3.org/Math/ , there may be some free tool which could help you. Regards Balaji
Balaji, I'm not sure Xalan needs to understand these Unicode characters, since Raul encodes them as character references (the number of the particular Unicode character it stands for). I doubt Xalan tries to convert the character references to the actual characters they refer to. On the other hand, the rendering software must understand these character references. Cheers, Dan
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
author and deputy
Joined: Jul 13, 2001
Originally posted by Dan Drillich: Balaji, I'm not sure Xalan needs to understand these Unicode characters, I doubt Xalan tries to convert the character references to the actual characters they refer to. On the other hand, the rendering software must understand these character references. Cheers, Dan
you are right!. Xalan will not try to convert them into actual characters.when its comes to FOP processor, the FOP tries to convert the unicode characters in to actual characters with the help of supplied map file,xalan and xerces.If the output is PDF the map file will be a of TTF. For HTML rendering,Raul may try to supply this map file in form of font file in <font> or <span> tag ,so that IE or netscape will show it as actual character.
Joined: Jul 09, 2001
Thanks Balaji. I spoke with our front-end guru and he said that in one case, they created actual images that represented the mathematical symbols because they couldn't find these particular math fonts. Good luck Raul!