引用风格语言"如果那么"

时间:2016-06-05 10:24:23

标签: csl

我尝试在Zotero之前修改csl样式(Specification)。我不知道下一步该怎么做: 如果我有超过4位作者,我需要插入一个文本。

我该怎么办? 我接下来尝试,但这不起作用......

public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
InputStream is = null;
BufferedReader bfReader = null;
try 
{
    String Pname = null, Pvalue = null;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse(new ByteArrayInputStream(responseBody));
    try 
    {
        NodeList nList = doc.getElementsByTagName("Real");
        for (int i = 0; i < nList.getLength(); i++) 
        {
            Node nNode = nList.item(i);
            Element eElement = (Element) nNode;
            Pname = eElement.getAttribute("name");
            Pvalue = eElement.getAttribute("value");
        }
    } 
    catch (Exception e) 
    {
        e.printStackTrace();
    }
    System.out.println(Pname+" : "+Pvalue)
} 
catch (IOException e) 
{
    e.printStackTrace();
} 
catch (ParserConfigurationException e) 
{
    e.printStackTrace();
} 
catch (SAXException e) 
{
    e.printStackTrace();
} 
finally 
{
    try 
    {
        if (is != null) is.close();
    } 
    catch (Exception ex) 
    {

    }
}

1 个答案:

答案 0 :(得分:1)

当前版本的CSL(1.0.1)可能不允许这样做,尽管没有具体的例子很难说清楚。

唯一接近的是,可以重新定义&#34; et-al&#34;和&#34;和其他人&#34;遵循et-al缩写名称列表的术语。因此,如果现有的CSL风格产生史密斯,约翰逊,威廉姆斯,琼斯等等,你可以将其改为史密斯,约翰逊,威廉姆斯,琼斯,一个文本&#34;。但是,不清楚这是否是你想要的。

(在https://github.com/citation-style-language/styles/issues/2092

询问了同样的问题