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

RE: XHTML to HTML 4

Subject: RE: XHTML to HTML 4
From: Brian Dupras <briand@xxxxxxxxxxx>
Date: Thu, 6 Apr 2000 15:52:23 -0600
xsl unescape html
> All you have to do then in your stylesheet is make a copy of 
> the source
> tree. You could use the identity transformation from the 
> xsl:copy example
> in the spec.

Thanks Mike - the question is how to lose the html: prefix *and* unescape
all incoming text nodes.  (This is a little weird, I know.)

The problem stems from the fact that I have a computer generated XHTML
document.  The text in the document was typed in via web forms.  This is the
reason for the escaped html embedded in valid XHTML.  The idea is that the
users can type in HTML - valid or invalid - and it will appear in the HTML
stream exactly as they typed it.

Brian

btw, I'm using Xalan 1.0.0, Xerces (whatever the latest version is), Java
1.2.2, WinNT, JRun, IIS



> -----Original Message-----
> From: Mike Brown [mailto:mike@xxxxxxxx]
> Sent: Thursday, April 06, 2000 1:37 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: XHTML to HTML 4
> 
> 
> > I've got an xhtml document similar to this fragment:
> > 
> >  <html:table border="0" cellpadding="0" cellspacing="5px">
> >     <html:tr>
> >        <html:td>
> >           <html:span class="StoryHeadline">b</html:span>
> 
> Namespaces are inherited by element descendants; it shouldn't 
> be necessary
> to use the prefix all the way down, although total disambiguation
> of element types isn't harmful.
> 
> > I need to convert this document to HTML 4
> 
> > <?xml version="1.0"?>
> > 
> > <xsl:stylesheet	
> > 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >     	xmlns:html='http://www.w3.org/1999/xhtml'
> > 	exclude-result-prefixes="html"
> > 	>
> 
> don't forget version="1.0"
> 
> ("An xsl:stylesheet element must have a version attribute", 
> the spec says.)
> 
> >     <xsl:output method="text" />
> 
> Does your XSL processor support the "html" output method? 
> They all do, as
> far as I know. I would use <xsl:output method="html" /> and let the
> processor do the dirty work. That's what this method is for!
> 
> All you have to do then in your stylesheet is make a copy of 
> the source
> tree. You could use the identity transformation from the 
> xsl:copy example
> in the spec.
> 
> -Mike
> 
> 
>  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.