compact example

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

compact example

Bruce D'Arcus-3
FYI, here's the results of a start of an XSLT that removes a lot of the  
nesting, and so is more compact.  One loses some validation control  
with this approach.  It's more difficult to control order, for example.  
Thoughts?

Bruce

<cs:citationstyle  
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
                   
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
                   xmlns:cs="http://purl.org/NET/xbiblio/csl"
                   cs:class="author-year"
                   xml:lang="en">
    <cs:info>
       <cs:title>American Psychological Association</cs:title>
       <cs:title-short>APA</title-short>
       <cs:contact>Bruce D’Arcus</cs:contact>
       <cs:email>[hidden email]</cs:email>
       <cs:dateCreated>2005-05-18</cs:dateCreated>
       <cs:dateModified>2005-06-01</cs:dateModified>
       <cs:source  
type="uri">http://www.english.uiuc.edu/cws/wworkshop/writer_resources/ 
citation_styles/apa/apa.htm</cs:source>
       <cs:field>psychology</cs:field>
       <cs:description>Style for the American Psychological  
Association.</cs:description>
    </cs:info>
    <cs:content>
       <cs:months cs:jan="January" cs:feb="February" cs:mar="March"  
cs:apr="April" cs:may="May"
<!-- not possible to have numbers as attributes here -->
                  cs:jun="June"
                  cs:jul="July"
                  cs:aug="August"
                  cs:sep="September"
                  cs:oct="October"
                  cs:nov="November"
                  cs:dec="December"/>
       <cs:locator cs:unit="page" cs:single="p. " cs:multiple="pp. "
                   cs:use-when="missing-volume-issue"/>
       <cs:locator cs:unit="paragraph" cs:single="¶ " cs:multiple="¶¶ "/>
       <cs:role cs:term="editor" cs:single="Ed." cs:multiple="Eds."/>
       <cs:role cs:term="translator" cs:single="tran."  
cs:multiple="trans."/>
       <cs:genre cs:term="dissertation" cs:renderas="PhD Dissertation"/>
       <cs:genre cs:term="letter" cs:renderas="letter"/>
       <cs:genre cs:term="press release" cs:renderas="press release"/>
       <cs:genre cs:term="memo" cs:renderas="memo"/>
       <cs:medium cs:term="cdrom" cs:renderas="CD-ROM"/>
...