Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:cv_api [2012/03/05 00:19]
sean created
dev:cv_api [2017/11/12 19:53] (current)
Line 1: Line 1:
 +<​html><​p id="​zotero-5-update-warning"​ style="​color:​ red; font-weight:​ bold">​We’re
 +in the process of updating the documentation for
 +<a href="​https://​www.zotero.org/​blog/​zotero-5-0">​Zotero 5.0</​a>​. Some documentation
 +may be outdated in the meantime. Thanks for your understanding.</​p></​html>​
 +
 +
 ====== Zotero CV API ====== ====== Zotero CV API ======
  
Line 9: Line 15:
 The specified user's CV is returned as XML which can be embedded or reused in a variety of ways. For example, you could transform it into HTML ready for styling via the following XSL: The specified user's CV is returned as XML which can be embedded or reused in a variety of ways. For example, you could transform it into HTML ready for styling via the following XSL:
  
-<​code>​+<​code ​xml>
 <?xml version="​1.0"​ encoding="​utf-8"?>​ <?xml version="​1.0"​ encoding="​utf-8"?>​
- +<​xsl:​stylesheet xmlns:​xsl="​http://​www.w3.org/​1999/​XSL/​Transform"​ xmlns:​zapi="​http://​zotero.org/​ns/​api"​ version="1.0"
-<​xsl:​stylesheet xmlns:​xsl="​http://​www.w3.org/​1999/​XSL/​Transform" ​ +  <​xsl:​output method="​html"/>​ 
- xmlns:​zapi="​http://​zotero.org/​ns/​api"​version='1.0'+  <​xsl:​template match="/">​ 
- +    <div id="​cv">​ 
- <​xsl:​output method="​html"/>​ +      <​xsl:​for-each select="​zapi:​cvsection">​ 
- +        <div class="​section">​ 
- <​xsl:​template match="/">​ +          <div class="​title">​ 
- +            ​<​xsl:​value-of select="​./​@title"/>​ 
- <div id="​cv">​ +          ​</​div>​ 
- +          <div class="​content">​ 
- <​xsl:​for-each select="​zapi:​cvsection">​ +            ​<​xsl:​copy-of select="​."/>​ 
- +          ​</​div>​ 
- <div class="​section">​ +        </​div>​ 
-  +      </​xsl:​for-each>​ 
- <div class="​title"><​xsl:​value-of select="​./​@title"/></​div>​ +    </​div>​ 
-  +  </​xsl:​template>​
- <div class="​content"><​xsl:​copy-of select="​."/></​div>​ +
-  +
- </​div>​ +
-  +
- </​xsl:​for-each>​ +
- +
- </​div>​ +
- +
-    ​</​xsl:​template> ​   +
 </​xsl:​stylesheet>​ </​xsl:​stylesheet>​
 </​code>​ </​code>​
dev/cv_api.txt · Last modified: 2017/11/12 19:53 (external edit)