Thanks David, for the reply! Question about the line break: When I place the line break in a template, it works great. However, my entity decleration for this does not produce the same behaviour (basically doesn't produce a line break in my source code: <!DOCTYPE xsl:stylesheet [ <!ENTITY lb " "> ]> Do you know why this may not work? I call it like this: &lb; Karl ----- Original Message ----- From: "David Carlisle" <davidc@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, March 31, 2003 8:57 AM Subject: Re: html:br > > > must have declared a namespace of some sort. I'm not sure > > how to do this. > > the same way you declare any namespace > xmlns:html="http://www.w3.org/1999/xhtml" > assuming that the html: prefix is XHTML. > > > Is this considered good practice, > If you are generating XHTML then it's just a matter of style whether you > prefix the elements or not, but beware if you do prefix them then they > won't be understood by "legacy" html browsers You will have to send teh > file to a system that really understands XHML (such as mozilla or > netscape 7). > > If you are generating HTML then it is wrong to put the HTML elements > into a namespace and so wrong to prefix them as you can not associate a > prefix with no-namespace. > > > Oh, and one more question: how do I generate a line break for my html code, > > for the source code? > > do you mean you want to put a linebreak in the generated html, for > stylistic reasons? > <xsl:text> </xsl:text> > will do that. > > David > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star Internet. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ________________________________________________________________________ > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format