/[volute]/trunk/projects/vocabularies/doc/identity-html.xslt
ViewVC logotype

Contents of /trunk/projects/vocabularies/doc/identity-html.xslt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 714 - (show annotations)
Wed Aug 6 20:02:09 2008 UTC (12 years, 3 months ago) by norman.x.gray
File size: 539 byte(s)
Change the way that vocabulary.html is generated from vocabulary.xml,
  after discovering some weirdness with the rendering of the
  previously generated file in some browsers -- some odd interaction
  between XHTML content and links and maybe the text/html MIME type, I
  don't know.
I now generate the XHTML and then convert it to HTML using an identity
  transform.

1 <x:transform xmlns:x="http://www.w3.org/1999/XSL/Transform"
2 xmlns:h="http://www.w3.org/1999/xhtml"
3 version="1.0">
4 <!-- Convert an xhtml file to html.
5 This seems to generate a lot of xml:space='preserve' attributes in the result document;
6 why, I don't know. -->
7
8 <x:output method='html' version='4.0'/>
9
10 <x:template match="h:*">
11 <x:element name='{local-name()}'>
12 <x:copy-of select="@*"/>
13 <x:apply-templates select='node()'/>
14 </x:element>
15 </x:template>
16
17 </x:transform>

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26