[Home] [By Thread] [By Date] [Recent Entries]
Thanks Michael, that did the trick.
Actually, the original was using the http://www.daisy.org/z3986/2005/ncx/ namespace. Interesting I had to create an explicit prefix for it: <xsl:stylesheet
xmlns="http://www.daisy.org/z3986/2005/ncx/"
xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0"><!-- ..... --> <xsl:template match="ncx:navPoint" mode="playorder"> <xsl:copy> <xsl:attribute name="playOrder"><xsl:number level="any" count="ncx:navPoint"/></xsl:attribute> <xsl:apply-templates select="@*|node()" mode="playorder"/> </xsl:copy> </xsl:template> The full, now functional, style sheet is here: http://code.google.com/p/tei2html/source/browse/trunk/tei2ncx.xsl Jeroen. Michael Kay wrote: You created the navPoint element in the namespace
|

Cart



