Print

Print


If you look at dsc11.xsl, you will see that there is a template that matches c01/did, c02/did, c03/did, etc.  

 

From the following example, you will see that the only thing I have done is to add to each of these templates the text that show up in orange below.

 

<xsl:template match="c01/did">
                       
<!--The next two variables define the set of container types that
                        may appear in the first column of a two column container list.
                        Add or subtract container types to fix institutional practice.-->

                       
<xsl:variable name="first" select="container[@type='Box' or
                        @type='Oversize' or @type='Volume' or @type='Carton'
or
                        @type='box' or @type='oversize' or @type='volume' or @type='carton'
]"/>
           
                       
<!--This variable defines the set of container types that
                        may appear in the second column of a two column container list.
                        Add or subtract container types to fix institutional practice.-->

                       
<xsl:variable name="second" select="container[@type='Folder' or
                        @type='Frame' or @type='Page'  or @type='Reel'

or @type='folder' or @type='frame' or @type='page'  or @type='reel] "/>

 

From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Nathan Tallman
Sent: Friday, March 05, 2010 12:24 PM
To: [log in to unmask]
Subject: Re: Container Problems

 

I went through and changed the code at all levels, but like Michael's idea of having a generic template.

Two questions: 1. Should I insert this in the same area of the style sheet as the present container templates? and 2. Should I delete the present container templates at each level?

Thanks!
Nathan

On Fri, Mar 5, 2010 at 12:28 PM, Fox, Michael <[log in to unmask]> wrote:

Or, more comprehensively replace the code at all levels to the following which is more generic.  If you hae other container types, just add them to the lists.

 

<xsl:for-each select="did">



                                   
<!--The next two variables define the set of container types that
                        may appear in the first column of a two column container list.
                        Add or subtract container types to fix institutional practice.-->

                                   
<xsl:variable name="first" select=

"container[@type='Box'
                        or @type='Oversize' or @type='Volume' or @type='Carton' or
                        @type='box' or @type='oversize' or @type='volume' or @type='carton']"
/>



                                   
<!--This variable defines the set of container types that
                        may appear in the second column of a two column container list.
                        Add or subtract container types to fix institutional practice.-->

                                   
<xsl:variable name="second" select=

"container[@type='Folder'
                        or @type='Frame' or @type='Page'  or @type='Reel' or @type='folder'
                        or @type='frame' or @type='page'  or @type='reel']"
/>

                                   
<xsl:variable name="preceding" select="preceding::did[1]/container[@type='Box'
                        or @type='Oversize' or @type='Volume' or @type='Carton' or
                        @type='box' or @type='oversize' or @type='volume' or @type='carton']"
/>

 

Michael Fox

 

From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Michele R Combs
Sent: Friday, March 05, 2010 8:47 AM


To: [log in to unmask]
Subject: Re: Container Problems

 

Hi Nathan –

 

The container type terms in dsc11 (and probably in all the dsc’s) are case sensitive.  Change it to type=”Box” and type=”Folder” and it should work. 

 

Also, as you move forward bear in mind that only certain terms are recognized by the dsc style sheet.  For the first container element its Box Volume Carton or Reel .  For the second one its Folder Frame or Page .

 

Michele

 

From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Nathan Tallman
Sent: Friday, March 05, 2010 9:18 AM
To: [log in to unmask]
Subject: Re: Container Problems

 

Yes, they are not displaying -- at all!  I've tried using different combinations of the two style sheets to no avail.  Currently I'm using "eadcbs6" with "dsc11".

Here's a snippet of my container list for Mark:

<c03 level="file">

                        <did>
                            <container type="box">7</container>
                            <container type="folder">3</container>
                            <unittitle>65th <function>Anniversary</function> at Wilshire Boulevard
                                Temple (Los Angeles, Calif.). Tributes. H-P.<unitdate
                                    type="inclusive">1980.</unitdate></unittitle>
                        </did>
                    </c03>

Thank you!

Nathan

On Fri, Mar 5, 2010 at 7:23 AM, MicheleR <[log in to unmask]> wrote:

On 3/4/2010 6:10 PM, Nathan Tallman wrote:

Greetings all,

I'm having some trouble getting container's to show up on a transformed
XML document.  I just setup Oxygen for EAD and downloaded the EAD
Cookbook style sheets.  My organization has some existing EAD files and
I was trying to transform them into HTML, but the container numbers
don't transfer.  Same thing if I view the style sheet-linked XML file in
my browser.  Everything else is showing up though.  Any ideas?

 

When you say "transfer" I assume you mean they're not displaying as you would like them to?  The Cookbook style sheets come in two parts (eadcbs#.xsl and dsc#.xsl).  It's the dsc#.xsl that handles the container part; each dsc differs slightly in the way it displays the container numbers, so it may just be that you need to choose a different dsc style sheet.  Which eadcbs and dsc are you using?

Michele

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
There are few things as dangerous
as a curious Pagan.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=