• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xsl with &#

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a question for the big-ones,
after fight with it i can't do it anyone can helP me???
I use xalan, and my question is simple, I need a xsl that transforms xml with symbols and leave them in the same way
the problem is that the xsl i make, make that the xalan change the codes of the symbols for the symbols, and i don't want this.
i use to do it with a copy-of tag.
I have something like this:



and i want to get this



the problem is that the xsl i make, make that the xalan change the codes of the symbols for the symbols, and i don't want this.
 
raul manzano
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in the codes of the post
there are things that are wrong, i need
the symbols writed with codes &#:


<mi>x</mi>
<mo>→</mo>
<mi>∞</mi>
</mrow>
</munder>
<mi>⁡</mi>
 
raul manzano
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the post engine change my codes for symbols too,
I need codes instead symbols like (without the ):


 
raul manzano
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm going crazy
i need the codes (without the -)
&-#-x-2-1-9-2-;
&-#-x-2-2-1-E-;
&-#-x-2-0-6-1-;
every one knows which codes i said???
help!!!
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I understood you right, you have the same problem with representation of your symbols in XML and in this thread -- th erendering machine changes codes to symbols? To show codes in your post, you use this trick: type
&amp;#x2192;
and you should see
&#x2192;
the same should work for your XML...
Yeah, I tested and it seems work, just use <xsl:value-of select="..." disable-output-escaping="yes" /> to be sure.
[ October 26, 2002: Message edited by: Mapraputa Is ]
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Even I have the same problem. xsl:copy-of is converting the entity refernces into strings. Also, I have one more issue, it is not converting &#153; into the (tm) trade mark symbol as superscript properly, instead it gives ? as output.
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic