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

Re: Doctype and namespaces in source/generated files

Subject: Re: Doctype and namespaces in source/generated files
From: Mayo <mayo@xxxxxxx>
Date: Sat, 29 May 2004 12:34:13 -0700
Re:  Doctype and namespaces in source/generated files
That did it, thanks :)

mayo

On Sat, 2004-05-29 at 05:59, G. Ken Holman wrote:
> At 2004-05-28 18:44 -0700, Mayo wrote:
> >I've figured out how to generate doctype for the document, but whenever I 
> >introduce
> >
> >doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
> >doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
> >
> >into <xsl:output> element, the spacing in the output gets really weird. I 
> >know there is <xsl:strip-space>, but that still doesn't fix things.
> >...
> >     <xsl:element name="b">
> >         <xsl:value-of select="'blarg'"/>
> >     </xsl:element>
> >...
> >     <p>xsl test1:
> >       <b>blarg
> ></b>
> 
> That looks to me like your XSLT processor is inferring indent="yes" for 
> <xsl:output>.  This messed me up when I was trying to abut images next to 
> each other without any space in between, yet the processor would put each 
> image on a new line, thus introducing the new-line sequence after each one.
> 
> I explicitly use <xsl:output indent="no"/> and while the resulting HTML 
> doesn't look great in a text editor, it looks just fine in a browser, which 
> is what is important.
> 
> As a result of my own experience, when I teach about indent= I advise my 
> students that it is fine for diagnostics but should always be indent="no" 
> for production purposes, even when using HTML.  In my case I would never 
> have been able to get the images to abut.
> 
> I hope this helps.
> 
> .......................... Ken
> 
> --
> Public courses: Spring 2004 world tour of hands-on XSL instruction
> Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004
> 
> World-wide on-site corporate, govt. & user group XML/XSL training.
> G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
> Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
> Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/s/bc
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.