⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 budgetquery

📁 随书的代码
💻
字号:
<Budget year="2001">  {  for $ac in distinct-values(document("budauth.xml")//AgencyCode)  return    <Agency>      <Name>{ $ac/../AgencyName/text() }</Name>      <Code>{ $ac/text() }</Code>      {          for $bc          in distinct-values(document("budauth.xml")//BureauCode)        where $bc/../AgencyCode = $ac        return           <Bureau>            <Name>{ $bc/../BureauName/text() }</Name>            <Code>{ $bc/text() }</Code>            {              for $acct in distinct-values(             document("budauth.xml")//AccountCode)            where $acct/../AgencyCode = $ac              AND $acct/../BureauCode = $bc            return               <Account                 BEACategory="{ $acct/../BEACategory/text() }">                <Name>{ $acct/../AccountName/text() }</Name>                <Code>{ $acct/text() }</Code>                  {                    for $sfx                     in document("budauth.xml")//SubfunctionCode                  where $sfx/../AgencyCode = $ac                     and $sfx/../BureauCode = $bc                     and $sfx/../AccountCode = $acct                  return                     <Subfunction>                 <Title>{$sfx/../SubfunctionTitle/text()}</Title>                      <Code>{ $sfx/text() }</Code>                        <Amount>{ $sfx/../FY2001/text() }</Amount>                    </Subfunction>               }                </Account>           }          </Bureau>      }    </Agency>  }</Budget>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -