Print

Print


P.S. They style sheet declarations are not static. Some finding aids point
to a slightly different sheet, for things like grant outputs. So, including
another xsl:output element probably won't do the trick. I just want to keep
what's already in the ead.

On Fri, Oct 28, 2011 at 12:09 PM, Nathan Tallman <[log in to unmask]> wrote:

> Hi Michele,
>
> Thanks for sending me your global change template. I was able to modify it
> to include the DOCTYPE declaration. But, it's removing my stylesheet
> declaration <?xml-stylesheet type="text/xsl" href="../common/html.xsl"?>. Is
> there anyway to retain this? Otherwise, your merge style sheet does exactly
> what I need it too, thanks!
>
> Thanks also to Michael and Dan! (Dan, I just made a typo with that extra
> closing tag, but thanks for the catch.)
>
> Thanks again,
> Nathan
>
> On Fri, Oct 28, 2011 at 11:15 AM, Michele R Combs <[log in to unmask]>wrote:
>
>>  Hi Nathan Ė****
>>
>> ** **
>>
>> I have a style sheet Ė itís only 18 lines Ė that does nothing but pass an
>> EAD file through unchanged.  You can then insert any desired code to do one
>> single thing (such as this).  Itís a bit like a denucleated cell: you can
>> stick in any DNA you like and make all sort of different things come out :)
>> Itís quite handy, and Iíve used it in the past to make global changes to our
>> EAD files.  ****
>>
>> ** **
>>
>> Some nice person on the EAD list gave it to me a while back but their name
>> isnít in the file and I canít remember who it was (Mike Rush, maybe?  Mark
>> Matienzo?), so I canít acknowledge them except anonymously:  Thank you,
>> whoever you were!****
>>
>> ** **
>>
>> I canít remember if the EAD list allows attachments so Iíll send it to you
>> separately.****
>>
>> ** **
>>
>> Michele****
>>
>> ** **
>>
>> ** **
>>
>> *From:* Encoded Archival Description List [mailto:[log in to unmask]] *On
>> Behalf Of *Nathan Tallman
>> *Sent:* Friday, October 28, 2011 10:39 AM
>> *To:* [log in to unmask]
>> *Subject:* Stylesheet Help****
>>
>> ** **
>>
>> Is it possible to write an XSL stylesheet to flatten the controlled access
>> terms? We'd like to shift from encoding like this:****
>>
>> ** **
>>
>>                         <controlaccess>****
>>
>>                                     <head>Search Terms</head>****
>>
>>                                     <note>****
>>
>>                                                 <p>The following terms
>> have been used to index the description of this collection in****
>>
>>                                                             the American
>> Jewish Archives's online catalog.</p>****
>>
>>                                     </note>****
>>
>>                                     <controlaccess>****
>>
>>                                                 <head>Contributors</head>
>> ****
>>
>>                                                 <persname source="lcnaf"
>> encodinganalog="700" />****
>>
>>                                     </controlaccess>****
>>
>>                                     <controlaccess>****
>>
>>                                                 <head>Subjects</head>****
>>
>>                                                 <persname
>> encodinganalog="600" source="lcnaf" />****
>>
>>                                                 <corpname
>> encodinganalog="610" source="lcnaf" />****
>>
>>                                                 <subject source="lcsh"
>> encodinganalog="650" />****
>>
>>                                                 <occupation
>> encodinganalog="656" source="lcsh" />****
>>
>>                                                 <geogname
>> encodinganalog="651" source="lcnaf" />****
>>
>>                                     </controlaccess>****
>>
>>                                     <controlaccess>****
>>
>>                                                 <head>Genres</head>****
>>
>>                                                 <genreform
>> encodinganalog="655" source="lcsh">LCSH</genreform>****
>>
>>                                     </controlaccess>****
>>
>>                         </controlaccess>****
>>
>> ** **
>>
>> to this:****
>>
>> ** **
>>
>>                         <controlaccess>****
>>
>>                                     <head>Search Terms</head>****
>>
>>                                     <note>****
>>
>>                                                 <p>The following terms
>> have been used to index the description of this collection in****
>>
>>                                                             the American
>> Jewish Archives's online catalog.</p>****
>>
>>                                     </note>
>> ****
>>
>>                                                 <persname source="lcnaf"
>> encodinganalog="700" />****
>>
>>                                                 <persname
>> encodinganalog="600" source="lcnaf" />****
>>
>>                                                 <corpname
>> encodinganalog="610" source="lcnaf" />****
>>
>>                                                 <subject source="lcsh"
>> encodinganalog="650" />****
>>
>>                                                 <occupation
>> encodinganalog="656" source="lcsh" />****
>>
>>                                                 <geogname
>> encodinganalog="651" source="lcnaf" />****
>>
>>                                                 <genreform
>> encodinganalog="655" source="lcsh" />****
>>
>>                                     </controlaccess>****
>>
>>                         </controlaccess>****
>>
>> ** **
>>
>> And let the HTML/PDF stylesheets do the sorting. Alas, I have about 800
>> finding aids encoded in the former example that need to be converted. Any
>> help would be much appreciated!****
>>
>> ** **
>>
>> Many thanks,****
>>
>> Nathan****
>>
>
>