Jirka, Thanks, I never would have guessed that. I must have overlooked those parameters. Oxygen uses saxon, so that works for me.
Just out of curiosity: you added a saxon namespace at the top; why? Is <xsl:param name="chunker.output.method">saxon:xhtml</xsl:param> a saxon-only switch? What would be some other values you could add to this parameter? Robert On Mon, Dec 13, 2010 at 5:30 AM, Jirka Kosek <[email protected]> wrote: > Robert Nagle wrote: > >> (I find it odd that in 2010 the browsers don't render XHTML code with >> <a id="test /> correctly). > > The majority of browsers do this (exception here is IE) but you have to > serve XHTML with proper content type which almost nobody does today. > > However, there is an easy fix on the stylesheet side if you are using > Saxon. Saxon supports xhtml output method even in XSLT 1.0 code. This > output method automatically adds closing tags to problematic elements > like <a>, <script>, <div>, ... > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:saxon="http://icl.com/saxon" > exclude-result-prefixes="saxon" > version="1.0"> > > <xsl:import href=".../path/to/xhtml/chunk.xsl"/> > > <xsl:param name="chunker.output.method">saxon:xhtml</xsl:param> > <xsl:param name="chunker.output.indent">yes</xsl:param> > <xsl:param name="chunker.output.omit-xml-declaration">yes</xsl:param> > > </xsl:stylesheet> > > HTH, > > Jirka > > -- > ------------------------------------------------------------------ > Jirka Kosek e-mail: [email protected] http://xmlguru.cz > ------------------------------------------------------------------ > Professional XML consulting and training services > DocBook customization, custom XSLT/XSL-FO document processing > ------------------------------------------------------------------ > OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member > ------------------------------------------------------------------ > > -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 http://www.robertnagle.info --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
