Print

Print


Is there a moderator on this list?
I've had quite a few 'bounced', and I think I'm properly subscribed.

Peeved, DaveP



-----Original Message-----
From: L-Soft list server at Library of Congress (1.8d)
[mailto:[log in to unmask]]
Sent: 09 January 2001 08:50
To: [log in to unmask]
Subject: Rejected posting to [log in to unmask]


Your message  is being returned to  you unprocessed because it  appears to
have
already been  distributed to the  EAD list. That  is, a message  with
identical
text (but  possibly with different  mail headers) has  been posted to  the
list
recently, either by you or by someone else. If you have a good reason to
resend
this message  to the  list (for instance  because you have  been notified
of a
hardware failure with  loss of data), please  alter the text of  the message
in
some way and resend  it to the list. Note that altering  the "Subject:" line
or
adding blank lines at  the top or bottom of the message  is not sufficient;
you
should  instead add  a  sentence or  two  at  the top  explaining  why you
are
resending the  message, so that the  other subscribers understand why  they
are
getting two copies of the same message.

------------------------ Rejected message (91 lines)
--------------------------
Received: from pboroweb.rnib.org.uk (pboroweb.rnib.org.uk [194.128.16.123])
        by sun8.loc.gov (8.8.8+Sun/8.8.8) with ESMTP id DAA29472
        for <[log in to unmask]>; Tue, 9 Jan 2001 03:49:53 -0500 (EST)
From: [log in to unmask]
Received: by pboroweb.rnib.org.uk with Internet Mail Service (5.5.2650.21)
        id <CK9BG4SN>; Tue, 9 Jan 2001 08:50:48 -0000
Message-ID: <[log in to unmask]>
To: [log in to unmask], [log in to unmask]
Subject: RE: EAD Cookbook Stylesheets- feedback
Date: Tue, 9 Jan 2001 08:50:56 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
        charset="iso-8859-1"

file 1

<xsl:call-template name="showbox-c02-box-only" select="."/>
</xsl:when>

the select is redundant, the current context is maintained when
the call-template call is made.

(xt is lax at error reporting)

same with line 1302
<xsl:call-template name="hidebox-c02-box-only" select="."/>

Also note that the

<xsl:apply-templates select=".">

the select is redundant.

Again it is implied, i.e. process all child nodes of the current context.

Otherwise cbs1 OK, produces an empty toc on the given file, is this what is
expected?


File cbs2, same issue. all select="." are redundant.

file cbs3,
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xt="http://www.jclark.com/xt"
                extension-element-prefixes="xt">
Requires 'version="1.0"' adding.

The saxon equivalent to xt:document requires
    xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon"      (to remove the saxon ns from output)
and the function call is:

<xsl:template match="preface">
    <saxon:output file="{$dir}\preface.html">
        <html><body bgcolor="#00eeee"><center>
            <xsl:apply-templates/>
        </center><hr/></body></html>
    </saxon:output>
    <a href="{$dir}\preface.html">Preface</a>
</xsl:template>

for example.


in file 4

<xsl:for-each select="entry">
<td valign="top"><xsl:value-of select="."/></td>

The <xsl:value-of .../> could be replaced more safely with
<xsl:apply-templates/>

The operation is that if the content of an element is text, it is added
to the output stream, if it contains markup, then it is processed with
the appropriate templates. See the xslt spec for details, its the
default templates.

Mmmm. Without pouring over the stylesheets and xml example for hours,
I'm getting no output other than the empty frames!

Is that expected?

HTH DaveP