aspose file tools
The moose likes XML and Related Technologies and the fly likes &# or not process elements Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "&# or not process elements" Watch "&# or not process elements" New topic
Author

&# or not process elements

raul manzano
Greenhorn

Joined: Oct 05, 2002
Posts: 13
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

Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
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


Spritle Software Blogs
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1123
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.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
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.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1123
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!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: &# or not process elements
 
Similar Threads
XSL
to EXACT Dublicate an xml file[xml->xml] via Java TransformerFactory classes and XSTL well I do not
Passing Files in Web Services
How to delete empty tag from XML
WSAD 5 XML/XSL Validator