[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] HTML/XHTML: a:name vs. a:id?
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: jirka@kosek.cz 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 ------------------------------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]