Superior coding alternative <p><archref><dao/></archref></p>.
I use archref to point to a reference source outside of the finding
aid (per its definition in the tag library). It did not occur to me
to use it to nest a dao since the dao is being used to bring an image
into the document. The definition of archref does not include such a
use. My thinking is that the nesting causes contradiction between the
intended use of the elements archref and dao. But the DTD allows it.
I don't think what I proposed was a hack. The object was to obtain a
coding pattern that would eliminate crossing datatypes for the sake
of display purposes.
The elements I used do not have standardized datatypes (like MARC
encodinganalogs). Further, the <abbr> and <expan> elements are used
together as they would be in any coding pattern (avoiding the
ref/@target scenerio). Thus no data loss and no violation of any
encoding standards would occur by using it. Further, there would be
no collatoral oddities in the transformation, considering <expan>
would be a space even if it was called by a stylesheet. I attempted
to insure that even in a normal stylesheet environment, the resulting
document would not be effected.
Finally, was the XSLT really "ugly"? I admit that I was in a hurry
('current' needed to be 'current()' and the dao template needed a
xsl:choose to sense the descendant::expan), but your comment seems to
carry undue criticism. ("as she spoke" ??? What does that mean?)
Library of Congress
--- Richard Davis <[log in to unmask]> wrote:
> Mike Ferrando wrote:
> > Mark C., DAO is not allowed in a mixed content element.
> > So the short answer is no. No you will not be able to code DAO
> > directly into a text element in your EAD document.
> > But dao is allowed as a child of all the main elements. Given
> > requirement, you can search for the dao using an @id. Validation
> > demands that all @id's be unique. Thus you can really have some
> > and not worry too much about reproducing the same image every
> > Transforming your EAD into HTML means that your stylesheet can
> > the DAO and put it in the text at some point and wrap it in a
> > It is possible to do this with and empty abbr element in your p.
> > Something like this. (below)
> Very cunning, but it's quite a hack, leaving one with ugly EAD (and
> XSLT!) just for the sake of the subsequent transformation. Is it
> conducive to using EAD "as she is spoke"?
> When we looked at replicating existing <html:img> tags in EAD, we
> decided to use <p><archref><dao/></archref></p> - is that any
> better or
> \ Richard M Davis
> / Digital Archives
> \ University of London Computer Centre
> / Tel: +44 (0) 20 7692 1350
> \ mailto: [log in to unmask]
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.