Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml XSLT不输出所有记录_Xml_Xslt - Fatal编程技术网

Xml XSLT不输出所有记录

Xml XSLT不输出所有记录,xml,xslt,Xml,Xslt,下午好 我试图从XML文件中选择某些节点,并将它们输出到具有不同节点结构的新XML文件中。对于一个只有一条记录的XML文件,我可以让它正常工作,但是当我尝试对一个有两条不同记录的文件运行xslt时,它会输出第一条记录的两个副本 我要从中转换的xml文件是: <records> <rec resultID="1"> <header> <controlInfo> <bkinfo> <btl>

下午好

我试图从XML文件中选择某些节点,并将它们输出到具有不同节点结构的新XML文件中。对于一个只有一条记录的XML文件,我可以让它正常工作,但是当我尝试对一个有两条不同记录的文件运行xslt时,它会输出第一条记录的两个副本

我要从中转换的xml文件是:

<records>
<rec resultID="1">
  <header>
    <controlInfo>
      <bkinfo>
        <btl>Effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer.</btl>
      </bkinfo>
      <dissinfo/>
      <jinfo>
        <jtl>European Journal of Oncology Nursing</jtl>
        <issn>14623889</issn>
      </jinfo>
      <pubinfo>
        <dt year="2017" month="12" day="01">Dec2017</dt>
        <vid>31</vid>
      </pubinfo>
      <artinfo>
        <ui type="doi">10.1016/j.ejon.2017.08.005</ui>
        <ppf>46</ppf>
        <ppct>6</ppct>
        <formats/>
        <tig>
          <atl>Effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer.</atl>
        </tig>
        <aug>
          <au>Chimluang, Janya</au>
          <au>Thanasilp, Sureeporn</au>
          <au>Akkayagorn, Lanchasak</au>
          <au>Upasen, Ratchaneekorn</au>
          <au>Pudtong, Noppamat</au>
          <au>Tantitrakul, Wilailuck</au>
          <affil>Faculty of Nursing, Chulalongkorn University, Bangkok, Thailand</affil>
        </aug>
        <sug>
          <subj type="major">Terminally Ill Patients</subj>
          <subj type="major">Cancer Patients</subj>
          <subj type="major">Psychological Well-Being</subj>
          <subj type="major">Spiritual Care</subj>
          <subj type="major">Buddhism</subj>
          <subj type="major">Terminal Care</subj>
          <subj type="minor">Human</subj>
          <subj type="minor">Quasi-Experimental Studies</subj>
          <subj type="minor">Pretest-Posttest Design</subj>
          <subj type="minor">Control Group</subj>
          <subj type="minor">Adult</subj>
          <subj type="minor">Middle Age</subj>
          <subj type="minor">Aged</subj>
          <subj type="minor">Psychological Well-Being Evaluation</subj>
          <subj type="age">Adult: 19-44 years</subj>
          <subj type="age">Middle Aged: 45-64 years</subj>
          <subj type="age">Aged: 65+ years</subj>
        </sug>
        <ab>Purpose To evaluate the effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer. Methods This quasi-experimental research study had pre- and post-test control groups. The experimental group received conventional care and an intervention based on basic Buddhist principles for three consecutive days, including seven activities based on precept activities, concentration activities and wisdom activities. The control group received conventional care alone. Results Forty-eight patients participated in this study: 23 in the experimental group and 25 in the control group. Their mean age was 53 (standard deviation 10) years. The spiritual well-being of participants in the experimental group was significantly higher than that of participants in the control group at the second post-test ( P &lt; 0.05). Conclusions An intervention based on basic Buddhist principles improved the spiritual well-being of patients with terminal cancer. This result supports the beneficial effects of implementing this type of intervention for patients with terminal cancer.</ab>
        <pubtype>Academic Journal</pubtype>
        <doctype>research</doctype>
        <doctype>Article</doctype>
      </artinfo>
      <language>English</language>
    </controlInfo>
    <displayInfo>
      <pLink>
        <url>http://search.ebscohost.com/login.aspx?direct=true&amp;db=jlh&amp;AN=126392076&amp;site=ehost-live</url>
      </pLink>
    </displayInfo>
  </header>
</rec>
<rec resultID="2">
  <header>
    <controlInfo>
      <bkinfo>
        <btl>Purpose in life in ALS patient-caregiver dyads: A multilevel longitudinal analysis.</btl>
      </bkinfo>
      <dissinfo/>
      <jinfo>
        <jtl>Health Psychology</jtl>
        <issn>02786133</issn>
      </jinfo>
      <pubinfo>
        <dt year="2017" month="11" day="01">Nov2017</dt>
        <vid>36</vid>
        <iid>11</iid>
        <place>Washington, District of Columbia</place>
      </pubinfo>
      <artinfo>
        <ui type="doi">10.1037/hea0000507</ui>
        <ppf>1092</ppf>
        <ppct>13</ppct>
        <formats/>
        <tig>
          <atl>Purpose in life in ALS patient-caregiver dyads: A multilevel longitudinal analysis.</atl>
        </tig>
        <aug>
          <au>Garcia, Natasha E.</au>
          <au>Morey, Jennifer N.</au>
          <au>Kasarskis, Edward J.</au>
          <au>Segerstrom, Suzanne C.</au>
        </aug>
        <sug>
          <subj type="major">Amyotrophic Lateral Sclerosis</subj>
          <subj type="major">Caregivers</subj>
          <subj type="major">Family Relations</subj>
          <subj type="major">Life Purpose</subj>
          <subj type="major">Psychological Well-Being</subj>
          <subj type="major">Disease Progression</subj>
          <subj type="major">Quality of Life</subj>
          <subj type="minor">Human</subj>
          <subj type="minor">Severity of Illness</subj>
          <subj type="minor">Prospective Studies</subj>
          <subj type="minor">Descriptive Research</subj>
          <subj type="minor">Descriptive Statistics</subj>
          <subj type="minor">Quality of Life Evaluation</subj>
          <subj type="minor">Time Factors</subj>
          <subj type="minor">Psychological Well-Being Evaluation</subj>
        </sug>
        <ab>Objective: Eudaemonic positive psychological health (PPH), such as purpose in life (PIL), may be maintained more than hedonic PPH, such as quality of life (QOL), for patients with amyotrophic lateral sclerosis (ALS) and their caregivers across the disease course. Furthermore, patients' and caregivers' PPH may impact one another. The present study examined (a) PIL and QOL variance structures; (b) PIL and QOL trajectories from diagnosis, approaching death, with disease severity; and (c) between-dyad and within-dyad relationships for PIL and QOL in patients with ALS and their caregivers. Method: PIL and QOL were assessed in patient-caregiver dyads (N = 110) up to 7 times over 18 months. Results: Multilevel models revealed the proportion of variance attributed to stable between-person differences was higher for PIL (patients = 74%; caregivers = 76%) than QOL (patients = 60%; caregivers = 55%). PIL and QOL declined in relation to disease severity and time. For PIL, proximity to diagnosis and death moderated within-person change; decline was generally faster following diagnosis and approaching death. Longitudinal within-dyad relationships revealed that patients' fluctuations in PIL were mirrored in their caregiver and vice versa. Conclusions: PIL was more stable than QOL and was therefore a potential psychological resource for patients and caregivers. Critical periods--after diagnosis and approaching death--accompanied more rapid PIL decline. QOL was also impacted by proximity to critical periods. PIL within-dyad relationships may reflect a shared disease experience. Psychological intervention focused on enhancing purpose, particularly during critical periods, is a promising direction for future study.</ab>
        <pubtype>Academic Journal</pubtype>
        <doctype>research</doctype>
        <doctype>Article</doctype>
      </artinfo>
      <language>English</language>
    </controlInfo>
    <displayInfo>
      <pLink>
        <url>http://search.ebscohost.com/login.aspx?direct=true&amp;db=jlh&amp;AN=125932785&amp;site=ehost-live</url>
      </pLink>
    </displayInfo>
  </header>
</rec>
</records>

基于佛教基本原则的干预对晚期癌症患者精神健康的影响。
欧洲肿瘤护理杂志
14623889
2017年12月
31
10.1016/j.ejon.2017.08.005
46
6.
基于佛教基本原则的干预对晚期癌症患者精神健康的影响。
詹雅千光
萨那西普,苏雷朋
阿卡亚戈恩,兰察萨克
阿帕森,拉契内科恩
普东,诺帕马特
坦蒂特拉库,威莱鲁克
泰国曼谷朱拉隆功大学护理学院
临终病人
癌症患者
心理健康
精神关怀
佛教
临终关怀
人类
准实验研究
前测后测设计
对照组
成人
中年
…岁
心理健康评价
成人:19-44岁
中年:45-64岁
年龄:65岁以上
目的评估基于佛教基本原则的干预对晚期癌症患者精神健康的影响。方法本准实验研究分为试验前和试验后对照组。实验组连续三天接受常规护理和基于佛教基本原则的干预,包括七项基于戒律活动、专注活动和智慧活动的活动。对照组仅接受常规护理。结果48例患者参与本研究:实验组23例,对照组25例。他们的平均年龄为53岁(标准差为10岁)。第二次测试后,实验组参与者的精神幸福感显著高于对照组参与者(p0.05)。结论基于佛教基本原则的干预改善了晚期癌症患者的精神健康。这一结果支持对晚期癌症患者实施此类干预的有益效果。
学术期刊
研究
文章
英语
http://search.ebscohost.com/login.aspx?direct=true&db=jlh&;AN=126392076&;站点=ehost live
ALS患者-护理者二元关系的生活目的:多水平纵向分析。
健康心理学
02786133
2017年11月
36
11
哥伦比亚特区华盛顿
10.1037/hea0000507
1092
13
ALS患者-护理者二元关系的生活目的:多水平纵向分析。
加西亚,娜塔莎E。
莫雷,詹妮弗N。
卡萨斯基斯,爱德华J。
塞格斯特罗姆,苏珊娜C。
肌萎缩侧索硬化
照顾者
家庭关系
人生目标
心理健康
疾病进展
生活质量
人类
病情严重
前瞻性研究
描述性研究
描述性统计
生活质量评估
时间因素
心理健康评价
目的:对于肌萎缩侧索硬化症(ALS)患者及其护理者,在整个病程中,健康积极的心理健康(PPH),如生活目标(PIL),可能比快乐的PPH,如生活质量(QOL)更能维持。此外,患者和护理者的PPH可能会相互影响。本研究考察了(a)PIL和QOL方差结构;(b) 从诊断到接近死亡的PIL和QOL轨迹,以及疾病的严重程度;和(c)ALS患者及其护理者的PIL和QOL的二元关系和二元内关系。方法:在18个月内对患者-护理者二人组(N=110)进行7次PIL和QOL评估。结果:多水平模型显示,PIL患者(患者=74%;护理者=76%)与生活质量(患者=60%;护理者=55%)相比,归因于稳定的人与人之间差异的方差比例更高。PIL和QOL随着疾病的严重程度和时间而下降。对于PIL,接近诊断和死亡在人的变化中缓和;在诊断和接近死亡后,下降速度通常更快。纵向二元关系显示,患者的PIL波动反映在其护理者身上,反之亦然。结论:PIL比QOL更稳定,因此是患者和照料者潜在的心理资源。在诊断和接近死亡的关键时期,伴随着PIL的快速下降。生活质量也受到接近关键时期的影响。二元关系中的PIL可能反映了共同的疾病经历。心理干预侧重于提高目的,特别是在关键时期,是未来研究的一个有希望的方向。
学术期刊
研究
文章
英语
http://search.ebscohost.com/login.aspx?direct=true&db=jlh&;AN=125932785&;坐
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes" />
    <xsl:template match="/">
        <citations>
            <xsl:for-each select="/records/rec">
                <citation>
                    <Author><xsl:value-of select="/records//au"/></Author>
                    <Title><xsl:value-of select="/records//atl"/></Title>
                    <Journal><xsl:value-of select="/records//jtl"/>/Journal>
                    <Year><xsl:value-of select="/records//@year"/></Year>
                    <Volume><xsl:value-of select="/records//vid"/></Volume>
                    <StartPage><xsl:value-of select="/records//ppf"/>/StartPage>
                    <PageCount><xsl:value-of select="/records//ppct"/></PageCount>
                    <Abstract><xsl:value-of select="/records//ab"/></Abstract>
                    <DOI>http://dx.doi.org/<xsl:value-of select="/records//ui"/></DOI>
                    <URL><xsl:value-of select="/records//url"/></URL>
                    <Subjects><xsl:for-each select="/records//subj"><xsl:value-of select="text()"/>, </xsl:for-each></Subjects>
                </citation>
            </xsl:for-each>
        </citations>
    </xsl:template>
</xsl:stylesheet>
<?xml version="1.0"?>
<citations>
  <citation>
    <Author>Chimluang, Janya</Author>
    <Title>Effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer.</Title>
    <Journal>European Journal of Oncology Nursing</Journal>
    <Year>2017</Year>
    <Volume>31</Volume>
    <StartPage>46</StartPage>
    <PageCount>6</PageCount>
    <Abstract>Purpose To evaluate the effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer. Methods This quasi-experimental research study had pre- and post-test control groups. The experimental group received conventional care and an intervention based on basic Buddhist principles for three consecutive days, including seven activities based on precept activities, concentration activities and wisdom activities. The control group received conventional care alone. Results Forty-eight patients participated in this study: 23 in the experimental group and 25 in the control group. Their mean age was 53 (standard deviation 10) years. The spiritual well-being of participants in the experimental group was significantly higher than that of participants in the control group at the second post-test ( P &lt; 0.05). Conclusions An intervention based on basic Buddhist principles improved the spiritual well-being of patients with terminal cancer. This result supports the beneficial effects of implementing this type of intervention for patients with terminal cancer.</Abstract>
    <DOI>http://dx.doi.org/10.1016/j.ejon.2017.08.005</DOI>
    <URL>http://search.ebscohost.com/login.aspx?direct=true&amp;db=jlh&amp;AN=126392076&amp;site=ehost-live</URL>
    <Subjects>Terminally Ill Patients, Cancer Patients, Psychological Well-Being, Spiritual Care, Buddhism, Terminal Care, Human, Quasi-Experimental Studies, Pretest-Posttest Design, Control Group, Adult, Middle Age, Aged, Psychological Well-Being Evaluation, Adult: 19-44 years, Middle Aged: 45-64 years, Aged: 65+ years, Amyotrophic Lateral Sclerosis, Caregivers, Family Relations, Life Purpose, Psychological Well-Being, Disease Progression, Quality of Life, Human, Severity of Illness, Prospective Studies, Descriptive Research, Descriptive Statistics, Quality of Life Evaluation, Time Factors, Psychological Well-Being Evaluation, </Subjects>
  </citation>
  <citation>
    <Author>Chimluang, Janya</Author>
    <Title>Effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer.</Title>
    <Journal>European Journal of Oncology Nursing</Journal>
    <Year>2017</Year>
    <Volume>31</Volume>
    <StartPage>46</StartPage>
    <PageCount>6</PageCount>
    <Abstract>Purpose To evaluate the effect of an intervention based on basic Buddhist principles on the spiritual well-being of patients with terminal cancer. Methods This quasi-experimental research study had pre- and post-test control groups. The experimental group received conventional care and an intervention based on basic Buddhist principles for three consecutive days, including seven activities based on precept activities, concentration activities and wisdom activities. The control group received conventional care alone. Results Forty-eight patients participated in this study: 23 in the experimental group and 25 in the control group. Their mean age was 53 (standard deviation 10) years. The spiritual well-being of participants in the experimental group was significantly higher than that of participants in the control group at the second post-test ( P &lt; 0.05). Conclusions An intervention based on basic Buddhist principles improved the spiritual well-being of patients with terminal cancer. This result supports the beneficial effects of implementing this type of intervention for patients with terminal cancer.</Abstract>
    <DOI>http://dx.doi.org/10.1016/j.ejon.2017.08.005</DOI>
    <URL>http://search.ebscohost.com/login.aspx?direct=true&amp;db=jlh&amp;AN=126392076&amp;site=ehost-live</URL>
    <Subjects>Terminally Ill Patients, Cancer Patients, Psychological Well-Being, Spiritual Care, Buddhism, Terminal Care, Human, Quasi-Experimental Studies, Pretest-Posttest Design, Control Group, Adult, Middle Age, Aged, Psychological Well-Being Evaluation, Adult: 19-44 years, Middle Aged: 45-64 years, Aged: 65+ years, Amyotrophic Lateral Sclerosis, Caregivers, Family Relations, Life Purpose, Psychological Well-Being, Disease Progression, Quality of Life, Human, Severity of Illness, Prospective Studies, Descriptive Research, Descriptive Statistics, Quality of Life Evaluation, Time Factors, Psychological Well-Being Evaluation, </Subjects>
  </citation>
</citations>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes" />
    <xsl:template match="/">
        <citations>
            <xsl:for-each select="/records/rec">
                <xsl:variable name="hdr" select="header/controlInfo" />
                <citation>
                    <Author><xsl:value-of select="$hdr/artinfo/aug/au[1]"/></Author>
                    <Title><xsl:value-of select="$hdr/artinfo/tig/atl"/></Title>
                    <Journal><xsl:value-of select="$hdr/jinfo/jtl"/></Journal>
                    <Year><xsl:value-of select="$hdr/pubinfo/dt/@year"/></Year>
                    <Volume><xsl:value-of select="$hdr/pubinfo/vid"/></Volume>
                    <StartPage><xsl:value-of select="$hdr/artinfo/ppf"/></StartPage>
                    <PageCount><xsl:value-of select="$hdr/artinfo/ppct"/></PageCount>
                    <Abstract><xsl:value-of select="$hdr/artinfo/ab"/></Abstract>
                    <DOI>http://dx.doi.org/<xsl:value-of select="$hdr/artinfo/ui"/></DOI>
                    <URL><xsl:value-of select="header/displayInfo/pLink/url"/></URL>
                    <Subjects><xsl:for-each select="$hdr/artinfo/sug/subj"><xsl:value-of select="text()"/>, </xsl:for-each></Subjects>
                </citation>
            </xsl:for-each>
        </citations>
    </xsl:template>
</xsl:stylesheet>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes" />
    <xsl:template match="/">
        <citations>
            <xsl:for-each select="records/rec">
                <citation>
                    <Author><xsl:value-of select="current()//au"/></Author>
                    <Year><xsl:value-of select="current()//@year"/></Year>
                    <Title><xsl:value-of select="current()//atl"/></Title>
                    <Abstract><xsl:value-of select="current()//ab"/></Abstract>
                    <Journal><xsl:value-of select="current()//jtl"/></Journal>
                    <Volume><xsl:value-of select="current()//vid"/></Volume>
                    <StartPage><xsl:value-of select="current()//ppf"/></StartPage>
                    <PageCount><xsl:value-of select="current()//ppct"/></PageCount>
                    <DOI>http://dx.doi.org/<xsl:value-of select="current()//ui"/></DOI>
                    <URL><xsl:value-of select="current()//url"/></URL>
                    <Subjects><xsl:for-each select="current()//subj"><xsl:value-of select="text()"/>, </xsl:for-each></Subjects>
                </citation>
            </xsl:for-each>
        </citations>
    </xsl:template>
</xsl:stylesheet>