Quote:
quote:
I'm not prepared to continue discussions off-list (except with paying Saxonica customers). That creates an expectation that I will pursue the discussion to a conclusion.
|
I should have said "continue the discussion
here", which is what I meant.
document stub (may or may not be actual XHTML, but it's well-formed and that's what I needed):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 14 February 2006), see www.w3.org" />
<title>untitled</title>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<meta name="generator" content="pdftohtml 0.39" />
<meta name="date" content="2005-04-25T23:35:02+00:00" />
</head>
<body bgcolor="#A0A0A0" vlink="blue" link="blue">
<a name="398"></a><b>396</b><br />
<br />
<b>Annex A (normative):</b><br />
<b>External references; errata,</b><br />
<b>clarifications and exemptions</b><br />
This clause lists known errata in normative external references,
as well as clarifications to those references and/or<br />
exemptions from requirements in those specifications.<br />
A.5.3<br />
javax.tv.util.TVTimerSpec<br />
A.5.3.1<br />
setAbsoluteTime(long)<br />
The following specification additions are considered to be
present:<br />
If the time parameter passed is negative, this method shall throw
an IllegalArgumentException.<br />
A.5.3.2<br />
setTime(long)<br />
The following specification additions are considered to be
present:<br />
If the time parameter passed is negative, this method shall throw
an IllegalArgumentException.<br />
A.5.4<br />
javax.tv.xlet.Xlet<br />
A.5.4.1<br />
Xlet state descriptions<br />
In the table of xlet state descriptions in the package
description of the javax.tv.xlet package, the description of
the<br />
loaded state is considered to be modified as follows.<br />
<i><b>DVB Bluebook A068 Rev. 1</b></i><br />
<a name="401"></a><b>399</b><br />
</body>
</html>
script (non-working; to fix swap the commented-out templates with corresponding ones above):
<!DOCTYPE stylesheet [
<!ENTITY cr "<xsl:text>
</xsl:text>">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0" xmlns:x="http://www.w3.org/1999/xhtml">
<xsl:output indent="yes" encoding="utf-8" method="text" />
<xsl:variable name="sig">^[a-zA-Z0-9]+\(.*?\)$</xsl:variable>
<xsl:template match="x:b">
<xsl:variable name="X">
<xsl:value-of select="normalize-space()" />
</xsl:variable>
<xsl:choose>
<xsl:when test="starts-with($X, 'org.dvb')">&cr;Class: <xsl:value-of select="$X"/>&cr;</xsl:when>
<xsl:when test="starts-with($X, 'org.davic')">&cr;Class: <xsl:value-of select="$X"/>&cr;</xsl:when>
<xsl:when test="matches($X, $sig)">Method: <xsl:value-of select="replace($X,':','')"/>&cr;</xsl:when>
</xsl:choose>
<xsl:apply-templates />
</xsl:template>
<xsl:template match="/x:html/x:body[starts-with(normalize-space(),'org.havi')]">
&cr;Class: <xsl:value-of select="normalize-space()" />&cr;
</xsl:template>
<xsl:template match="x:html/x:body[starts-with(normalize-space(),'javax.tv')]">
&cr;Class: <xsl:value-of select="normalize-space()" />&cr;
</xsl:template>
<!--
<xsl:template match="/x:html/x:body/text()[starts-with(normalize-space(),'org.havi')]">
&cr;Class: <xsl:value-of select="normalize-space()" />&cr;
</xsl:template>
<xsl:template match="x:html/x:body/text()[starts-with(normalize-space(),'javax.tv')]">
&cr;Class: <xsl:value-of select="normalize-space()" />&cr;
</xsl:template>
-->
<xsl:template match="/x:html/x:body/text()[matches(normalize-space(), $sig)]">Method: <xsl:value-of
select="replace(normalize-space(),':','')"/>&cr;
</xsl:template>
<xsl:template match="text()|@*"></xsl:template>
</xsl:stylesheet>
output (non-working):
Method: setAbsoluteTime(long)
Method: setTime(long)
output (working):
Class: javax.tv.util.TVTimerSpec
Method: setAbsoluteTime(long)
Method: setTime(long)
Class: javax.tv.xlet.Xlet
-- Jeff