[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: output xhtml with html style entities

Subject: AW: output xhtml with html style entities
From: "Nestel, Frank" <frank.nestel@xxxxxx>
Date: Mon, 21 Jan 2002 16:23:07 +0100
generating xhtml with saxon
Hi, I've asked a similar question about a year ago or so
and you told me to develop my own Subclass of HTMLEmitter.
This kind of juggled with unicode characters, numerical
entities and symbolical entities. One of our customers also 
insisted on converting some special characters into special 
symbol-fonts characters so they only displayed correctly 
on Windows machines. This all worked up to a point, but this 
was in SAXON 5.x times.

The problem is that different internet browsers differ in 
their ability to interpret different forms of entities and
unicode. So if you need to generate real world HTML you sometimes 
like to control which way is taken of (the theoretical equivalent) 
ones to write a certain character :-(

Frank Nestel

> -----Ursprüngliche Nachricht-----
> Von: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx]
> Gesendet am: Samstag, 19. Januar 2002 22:56
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff: RE:  output xhtml with html style entities
> There is no way of forcing entity references to be output, 
> either in HTML or
> in XHTML output, because they are not part of the data model. 
> Saxon provides
> some extensions for controlling it with HTML (though it seems 
> that what it
> does by default is the format you happen to prefer), but in 
> XHTML it's more
> difficult because you have to generate the DOCTYPE 
> declaration as well.
> Why does it matter to you whether special characters are 
> output as entity
> references, numeric character references, or as native 
> Unicode characters?
> Mike Kay
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Thomas
> > Winkler
> > Sent: 19 January 2002 18:44
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  output xhtml with html style entities
> >
> >
> > what would be the best way to output xhtml with xhtml/html entity
> > references? if you use xml output, what you need for 
> generating xhtml,
> > the output is serialized into the defined character set, what
> > is indeed
> > what i expect.
> >
> > when you use html as output method the entities are per 
> definition in
> > the generated document, but the xhtml code is "reduced" to
> > html. what i
> > mean is that the output is not well formed xml as intended.
> >
> > so what would be the best way, or am i missing something?
> >
> > even though saxon supports xhtml as output method its not
> > generating the
> > desired output. actually i am not looking for a saxon 
> "only" solution,
> > although i prefer saxon.
> >
> > thank you once again,
> > thomas
> >
> >
> >  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.