home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _829987439D574B69B8772830874655D8 < prev    next >
Encoding:
Extensible Markup Language  |  2002-08-26  |  33.8 KB  |  1,422 lines

  1. <?xml version='1.0'?>
  2.  
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.                 version="1.0"
  5.                 xmlns="http://www.w3.org/TR/REC-html40">
  6.  
  7.  
  8. <!-- This is version 1.0 of the iptcnewsml stylesheet produced by David Allen, MD IPTC Copyright 2000 IPTC-->
  9. <!-- It requires the September 2000 version of MSXML3.DLL and IE5.5 to be displayed-->
  10. <!-- It requires the NewsMLv1.0 DTD-->
  11.  
  12. <xsl:output method="html"/>
  13.  
  14. <xsl:template match="NewsML">
  15.   <!-- root rule -->
  16.   <html>
  17.     <head>
  18. <title>NewsML</title>
  19. </head>
  20. <div style="margin:1em;border-style:solid double;border-width:thick;border-color:#00FF00;padding:0.2em">
  21.     <body>
  22. <span style="font:bold;color:#00FF00">
  23. <xsl:value-of select="name()"/>
  24. </span>
  25. <xsl:apply-templates select="Catalog|TopicSet|NewsEnvelope|NewsItem"/>
  26. </body>
  27. </div>
  28. </html>
  29. </xsl:template>
  30.  
  31. <xsl:template match="Catalog">
  32. <div style="font:italic;color:#FF8800">
  33. <xsl:value-of select="name()"/>
  34. <xsl:choose>
  35. <xsl:when test="Resource">
  36. <div>
  37. <xsl:for-each select="Resource">
  38. <xsl:text>DefaultVocabularyFor:</xsl:text>
  39. <xsl:value-of select="DefaultVocabularyFor/@Context"/>
  40. <div>
  41. <xsl:text>URN:</xsl:text>
  42. <xsl:value-of select="Urn"/>
  43. </div>
  44. <div>
  45. <a>
  46. <xsl:attribute name="Href">
  47. <xsl:value-of select="Url"/>
  48. </xsl:attribute>
  49. <xsl:text>URL Hyperlink</xsl:text>
  50. </a>
  51. </div>
  52. </xsl:for-each>
  53. </div>
  54. </xsl:when>
  55. <xsl:when test="@Href">
  56. <div>
  57. <a>
  58. <xsl:attribute name="Href">
  59. <xsl:value-of select="@Href"/>
  60. </xsl:attribute>
  61. <xsl:text>External Vocabulary</xsl:text>
  62. </a>
  63. </div>
  64. </xsl:when>
  65. <xsl:otherwise>
  66. <xsl:text>Error-no vocabulary located</xsl:text>
  67. </xsl:otherwise>
  68. </xsl:choose>
  69. </div>
  70. </xsl:template>
  71.  
  72.  
  73. <xsl:template match="NewsEnvelope">
  74. <div>
  75. <xsl:text>Envelope Date/Time=</xsl:text>
  76. <xsl:value-of select="./DateAndTime"/>
  77.  </div>
  78.  <!--<xsl:apply-templates/>-->
  79. </xsl:template>
  80.  
  81.  
  82. <xsl:template match="NewsManagement">
  83. <div>
  84. <xsl:apply-templates/>
  85. </div>
  86. </xsl:template>
  87.  
  88. <xsl:template match="NewsComponent">
  89. <div style="margin:1em;border-style:solid double;border-width:thick;border-color:#FF0000;padding:0.2em">
  90. <span style="color:#FF0000">
  91. <xsl:text>NewsComponent</xsl:text>
  92. </span>
  93. <div>
  94. <xsl:if test="@EquivalentsList='yes'">
  95. <xsl:text>Equivalents</xsl:text>
  96. </xsl:if>
  97. <xsl:apply-templates/>
  98. </div>
  99. </div>
  100. </xsl:template>
  101.  
  102. <xsl:template match="DescriptiveMetadata">
  103. <div>
  104. <xsl:text>Description</xsl:text>
  105. </div>
  106. <xsl:call-template name="showass"/>
  107. <xsl:apply-templates/>
  108. </xsl:template>
  109.  
  110. <xsl:template match="SubjectCode">
  111. <div>
  112. <xsl:apply-templates/>
  113. </div>
  114. </xsl:template>
  115.  
  116.  
  117. <xsl:template match="AdministrativeMetadata">
  118. <div>
  119. <xsl:text>Information</xsl:text>
  120. <xsl:apply-templates/>
  121. </div>
  122. </xsl:template>
  123.  
  124. <xsl:template match="NewsItem">
  125. <div style="margin:1em;border-style:solid double;border-width:thick;border-color:#0000FF;padding:0.2em">
  126. <div style="font:bold;color:#0000FF">
  127. <xsl:value-of select="name()"/>
  128. </div>
  129. <xsl:text>NewsIdentifier=urn:newsml:</xsl:text>
  130. <xsl:value-of select=".//ProviderId"/>
  131.           <xsl:text>:</xsl:text>
  132.           <xsl:value-of select=".//DateId"/>
  133.           <xsl:text>:</xsl:text>
  134.           <xsl:value-of select=".//NewsItemId"/>
  135.           <xsl:text>:</xsl:text>
  136.           <xsl:value-of select=".//RevisionId"/>
  137.           <xsl:if test=".//RevisionId/@Update!='N'">
  138.           <xsl:value-of select=".//RevisionId/@Update"/>
  139.           </xsl:if>
  140. <xsl:apply-templates/>
  141. </div>
  142. </xsl:template>
  143.  
  144. <xsl:template match="NewsItemRef">
  145. <div style="margin:1em;border-style:solid double;border-width:thin;border-color:#0000FF;padding:0.2em">
  146. <a>
  147. <xsl:attribute name="Href">
  148. <xsl:value-of select="@NewsItem"/>
  149. </xsl:attribute>
  150. <xsl:value-of select="Comment"/>
  151. </a>
  152. </div>
  153. </xsl:template>
  154.  
  155.  
  156. <xsl:template name="findts" match="node()">
  157. <xsl:param name="scema"/>
  158. <xsl:variable name="actval" select="@FormalName"/>
  159. <xsl:value-of select="$actval"/>
  160. <xsl:variable name="tsetn" select="substring(@Vocabulary,2,string-length(@Vocabulary)-1)"/>
  161. <xsl:for-each select="//TopicSet">
  162. <xsl:if test="@Duid=$tsetn">
  163. <xsl:for-each select="Topic">
  164. <xsl:if test="FormalName/@Scheme=$scema">
  165. <xsl:if test="FormalName=$actval">
  166. <xsl:text>(</xsl:text>
  167. <xsl:for-each select="Description">
  168. <xsl:value-of select="."/>
  169. </xsl:for-each>
  170. <xsl:text>)</xsl:text>
  171. </xsl:if>
  172. </xsl:if>
  173. </xsl:for-each>
  174. </xsl:if>
  175. </xsl:for-each>
  176. </xsl:template>
  177.  
  178. <xsl:template match="node()" name="findvoc2" mode="findvoc2">
  179. <xsl:param name="itemn"/>
  180. <xsl:variable name="vocname">
  181. <xsl:apply-templates mode="isdefault" select="parent::*">
  182. <xsl:with-param name="currentele" select="$itemn"/>
  183. </xsl:apply-templates>
  184. </xsl:variable>
  185. <xsl:if test="$vocname=''">
  186. <xsl:text>There is not a valid Vocabulary</xsl:text>
  187. <xsl:text>referenced for element:</xsl:text>
  188. <xsl:value-of select="name()"/>
  189. </xsl:if>
  190. <xsl:if test="$vocname!=''">
  191. <xsl:value-of select="$vocname"/>
  192. </xsl:if>
  193. </xsl:template>
  194.  
  195.  
  196.  
  197. <xsl:template match="*" mode="isdefault">
  198. <xsl:param name="currentele"/>
  199. <xsl:variable name="real">
  200. <xsl:choose>
  201. <xsl:when test="Catalog/Resource">
  202. <xsl:for-each select="Catalog/Resource">
  203. <xsl:for-each select="DefaultVocabularyFor">
  204. <xsl:if test="@Context=$currentele">
  205. <xsl:value-of select="../Url"/>
  206. </xsl:if>
  207. </xsl:for-each>
  208. </xsl:for-each>
  209. </xsl:when>
  210. <xsl:otherwise>
  211. <xsl:if test="Catalog/@Href">
  212. <xsl:for-each select="document(Catalog/@Href)">
  213. <xsl:for-each select=".//Resource">
  214. <xsl:for-each select="DefaultVocabularyFor">
  215. <xsl:if test="@Context=$currentele">
  216. <xsl:value-of select="../Url"/>
  217. </xsl:if>
  218. </xsl:for-each>
  219. </xsl:for-each>
  220. </xsl:for-each>
  221. </xsl:if>
  222. </xsl:otherwise>
  223. </xsl:choose>
  224. </xsl:variable>
  225. <xsl:choose>
  226. <xsl:when test="$real!=''">
  227. <xsl:value-of select="$real"/>
  228. </xsl:when>
  229. <xsl:otherwise>
  230. <xsl:variable name="testele" select="$currentele"/>
  231. <xsl:if test="parent::*">
  232. <xsl:apply-templates mode="isdefault" select="parent::*">
  233. <xsl:with-param name="currentele" select="$testele"/>
  234. </xsl:apply-templates>
  235. </xsl:if>
  236. </xsl:otherwise>
  237. </xsl:choose>
  238. </xsl:template>
  239.  
  240.  
  241. <xsl:template name="showass">
  242. <xsl:if test="@Confidence">
  243. <xsl:text>Confidence=</xsl:text>
  244. <xsl:value-of select="@Confidence"/>
  245. <xsl:text> </xsl:text>
  246. </xsl:if>
  247. <xsl:if test="@Importance">
  248. <xsl:text>Importance=</xsl:text>
  249. <xsl:value-of select="@Importance"/>
  250. <xsl:text> </xsl:text>
  251. </xsl:if>
  252. <xsl:if test="@AssignedBy">
  253. <xsl:text>AssignedBy=</xsl:text>
  254. <xsl:value-of select="@AssignedBy"/>
  255. <xsl:text> </xsl:text>
  256. </xsl:if>
  257. <xsl:if test="@HowPresent">
  258. <xsl:text>HowPresent=</xsl:text>
  259. <xsl:value-of select="@HowPresent"/>
  260. <xsl:text> </xsl:text>
  261. </xsl:if>
  262. <xsl:if test="@DateAndTime">
  263. <xsl:text>DateAndTime=</xsl:text>
  264. <xsl:value-of select="@DateAndTime"/>
  265. <xsl:text> </xsl:text>
  266. </xsl:if>
  267. </xsl:template>
  268.  
  269.  
  270. <xsl:template match="Role" name="mainrol">
  271. <xsl:choose>
  272. <xsl:when test="@Vocabulary">
  273. <xsl:call-template name="findts">
  274. <xsl:with-param name="scema" select="@Scheme"/>
  275. </xsl:call-template>
  276. </xsl:when>
  277. <xsl:otherwise>
  278. <xsl:variable name="vocurl">
  279. <xsl:call-template name="findvoc2">
  280. <xsl:with-param name="itemn" select="name()"/>
  281. </xsl:call-template>
  282. </xsl:variable>
  283. <xsl:variable name="subj" select="@FormalName"/>
  284. <div>
  285. <xsl:value-of select="$subj"/>
  286. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  287. <xsl:if test="FormalName=$subj">
  288. <xsl:text>(</xsl:text>
  289. <xsl:value-of select="Description"/>
  290. <xsl:text>)</xsl:text>
  291. </xsl:if>
  292. </xsl:for-each>
  293. </div>
  294. </xsl:otherwise>
  295. </xsl:choose>
  296. </xsl:template>
  297.  
  298.  
  299. <xsl:template match="Subject">
  300. <xsl:variable name="lscema" select="@Scheme"/>
  301. <xsl:choose>
  302. <xsl:when test="@Vocabulary">
  303. <xsl:call-template name="findts">
  304. <xsl:with-param name="scema" select="@Scheme"/>
  305. </xsl:call-template>
  306. </xsl:when>
  307. <xsl:otherwise>
  308. <xsl:variable name="vocurl">
  309. <xsl:call-template name="findvoc2">
  310. <xsl:with-param name="itemn" select="name()"/>
  311. </xsl:call-template>
  312. </xsl:variable>
  313. <xsl:variable name="subj" select="@FormalName"/>
  314. <div>
  315. <xsl:value-of select="document($vocurl)/TopicSet/@FormalName"/>
  316. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  317. <xsl:if test="FormalName=$subj">
  318. <xsl:value-of select="TopicType/@FormalName"/>
  319. <xsl:if test="Description/@Variant='Name'">
  320. <xsl:text>:</xsl:text>
  321. <xsl:value-of select="(.)"/>
  322. </xsl:if>
  323. </xsl:if>
  324. </xsl:for-each>
  325. <xsl:call-template name="showass"/>
  326. </div>
  327. </xsl:otherwise>
  328. </xsl:choose>
  329. <xsl:apply-templates/>
  330. </xsl:template>
  331.  
  332.  
  333. <xsl:template match="SubjectMatter">
  334. <xsl:variable name="lscema" select="@Scheme"/>
  335. <xsl:choose>
  336. <xsl:when test="@Vocabulary">
  337. <xsl:call-template name="findts">
  338. <xsl:with-param name="scema" select="@Scheme"/>
  339. </xsl:call-template>
  340. </xsl:when>
  341. <xsl:otherwise>
  342. <xsl:variable name="vocurl1">
  343. <xsl:call-template name="findvoc2">
  344. <xsl:with-param name="itemn" select="name()"/>
  345. </xsl:call-template>
  346. </xsl:variable>
  347. <xsl:variable name="subj1" select="@FormalName"/>
  348. <div>
  349. <xsl:value-of select="document($vocurl1)/TopicSet/@FormalName"/>
  350. <xsl:for-each select="document($vocurl1)/TopicSet/Topic">
  351. <xsl:if test="FormalName=$subj1">
  352. <xsl:for-each select="document($vocurl1)/TopicSet/Topic">
  353. <xsl:if test="FormalName=concat(substring($subj1,1,2),'000000')">
  354. <div>
  355. <xsl:value-of select="TopicType/@FormalName"/>
  356. <xsl:for-each select="Description">
  357. <xsl:if test="@Variant='Name'">
  358. <xsl:text>:</xsl:text>
  359. <xsl:value-of select="(.)"/>
  360. </xsl:if>
  361. </xsl:for-each>
  362. </div>
  363. </xsl:if>
  364. </xsl:for-each>
  365. <xsl:value-of select="TopicType/@FormalName"/>
  366. <xsl:if test="FormalName/@Scheme=$lscema">
  367. <xsl:for-each select="Description">
  368. <xsl:if test="@Variant='Name'">
  369. <xsl:text>:</xsl:text>
  370. <xsl:value-of select="(.)"/>
  371. </xsl:if>
  372. </xsl:for-each>
  373. </xsl:if>
  374. </xsl:if>
  375. </xsl:for-each>
  376. <xsl:call-template name="showass"/>
  377. </div>
  378. </xsl:otherwise>
  379. </xsl:choose>
  380. <xsl:apply-templates/>
  381. </xsl:template>
  382.  
  383. <xsl:template match="SubjectDetail">
  384. <xsl:variable name="lscema" select="@Scheme"/>
  385. <xsl:choose>
  386. <xsl:when test="@Vocabulary">
  387. <xsl:call-template name="findts">
  388. <xsl:with-param name="scema" select="@Scheme"/>
  389. </xsl:call-template>
  390. </xsl:when>
  391. <xsl:otherwise>
  392. <xsl:variable name="vocurl2">
  393. <xsl:call-template name="findvoc2">
  394. <xsl:with-param name="itemn" select="name()"/>
  395. </xsl:call-template>
  396. </xsl:variable>
  397. <xsl:variable name="subj2" select="@FormalName"/>
  398. <div>
  399. <xsl:value-of select="document($vocurl2)/TopicSet/@FormalName"/>
  400. <xsl:for-each select="document($vocurl2)/TopicSet/Topic">
  401. <xsl:if test="FormalName=$subj2">
  402. <xsl:for-each select="document($vocurl2)/TopicSet/Topic">
  403. <xsl:if test="FormalName=concat(substring($subj2,1,2),'000000')">
  404. <div>
  405. <xsl:value-of select="TopicType/@FormalName"/>
  406. <xsl:for-each select="Description">
  407. <xsl:if test="@Variant='Name'">
  408. <xsl:text>:</xsl:text>
  409. <xsl:value-of select="(.)"/>
  410. </xsl:if>
  411. </xsl:for-each>
  412. </div>
  413. </xsl:if>
  414. </xsl:for-each>
  415. <xsl:for-each select="document($vocurl2)/TopicSet/Topic">
  416. <xsl:if test="FormalName/@Scheme=$lscema">
  417. <xsl:if test="FormalName=concat(substring($subj2,1,5),'000')">
  418. <div>
  419. <xsl:value-of select="TopicType/@FormalName"/>
  420. <xsl:for-each select="Description">
  421. <xsl:if test="@Variant='Name'">
  422. <xsl:text>:</xsl:text>
  423. <xsl:value-of select="(.)"/>
  424. </xsl:if>
  425. </xsl:for-each>
  426. </div>
  427. </xsl:if>
  428. </xsl:if>
  429. </xsl:for-each>
  430. <xsl:value-of select="TopicType/@FormalName"/>
  431. <xsl:if test="FormalName/@Scheme=$lscema">
  432. <xsl:for-each select="Description">
  433. <xsl:if test="@Variant='Name'">
  434. <xsl:text>:</xsl:text>
  435. <xsl:value-of select="(.)"/>
  436. </xsl:if>
  437. </xsl:for-each>
  438. </xsl:if>
  439. </xsl:if>
  440. </xsl:for-each>
  441.  
  442. <xsl:call-template name="showass"/>
  443. </div>
  444. </xsl:otherwise>
  445. </xsl:choose>
  446. </xsl:template>
  447.  
  448. <xsl:template match="SubjectQualifier">
  449. <xsl:variable name="lscema" select="@Scheme"/>
  450. <xsl:choose>
  451. <xsl:when test="@Vocabulary">
  452. <xsl:call-template name="findts">
  453. <xsl:with-param name="scema" select="@Scheme"/>
  454. </xsl:call-template>
  455. </xsl:when>
  456. <xsl:otherwise>
  457. <xsl:variable name="vocurl3">
  458. <xsl:call-template name="findvoc2">
  459. <xsl:with-param name="itemn" select="name()"/>
  460. </xsl:call-template>
  461. </xsl:variable>
  462. <xsl:variable name="subj3" select="@FormalName"/>
  463. <div>
  464. <xsl:value-of select="document($vocurl3)/TopicSet/@FormalName"/>
  465. <xsl:for-each select="document($vocurl3)/TopicSet/Topic">
  466. <xsl:if test="FormalName/@Scheme=$lscema">
  467. <xsl:if test="FormalName=$subj3">
  468. <!--<xsl:value-of select="TopicType/@FormalName"/>-->
  469. <xsl:for-each select="Description">
  470. <xsl:if test="@Variant='Name'">
  471. <xsl:text>:</xsl:text>
  472. <xsl:value-of select="."/>
  473. </xsl:if>
  474. </xsl:for-each>
  475. </xsl:if>
  476. </xsl:if>
  477. </xsl:for-each>
  478. <xsl:call-template name="showass"/>
  479. </div>
  480. </xsl:otherwise>
  481. </xsl:choose>
  482. </xsl:template>
  483.  
  484.  
  485.  
  486. <xsl:template match="BasisForChoice">
  487. <div>
  488. <xsl:value-of select="name()"/>
  489. <xsl:text> = </xsl:text>
  490. <xsl:value-of select="(.)"/>
  491. </div>
  492. </xsl:template>
  493.  
  494. <xsl:template match="ContentItem">
  495.  
  496. <div style="margin:0.5em;border-style:solid double;border-width:thin;border-color:#800800">
  497.  
  498. <a>
  499. <xsl:attribute name="Href">
  500. <xsl:value-of select="@Href"/>
  501. </xsl:attribute>
  502. <xsl:value-of select="Comment"/>
  503. </a>
  504. <xsl:apply-templates select="Mediatype|Format|Mimetype|Notation|Characteristics|Encoding|DataContent"/>
  505. </div>
  506. </xsl:template>
  507.  
  508.  
  509. <xsl:template match="Confidence">
  510. <div>
  511.       <xsl:call-template name="findvoc2">
  512.      <xsl:with-param name="vocab" select="@SchemeRef"/>
  513.       </xsl:call-template>
  514.       <xsl:value-of select="(.)"/>
  515. </div>
  516.      </xsl:template>
  517.  
  518. <xsl:template match="Encoding">
  519. <div>
  520.       <xsl:value-of select="name()"/>
  521.       <xsl:text> = </xsl:text>
  522.       <xsl:value-of select="(.)"/>
  523. </div>
  524. </xsl:template>
  525.  
  526. <xsl:template match="FirstCreated">
  527. <div>
  528.  <xsl:value-of select="name()"/>
  529. <xsl:text>=</xsl:text>
  530.  <xsl:value-of select="(.)"/>
  531.  </div>
  532. </xsl:template>
  533.  
  534. <xsl:template match="ThisRevisionCreated">
  535. <div>
  536.  <xsl:value-of select="name()"/>
  537. <xsl:text>=</xsl:text>
  538.  <xsl:value-of select="(.)"/>
  539.  </div>
  540. </xsl:template>
  541.  
  542.  
  543.  
  544. <xsl:template match="Instruction">
  545. <xsl:choose>
  546. <xsl:when test="@Vocabulary">
  547. <xsl:call-template name="findts">
  548. <xsl:with-param name="scema" select="@Scheme"/>
  549. </xsl:call-template>
  550. </xsl:when>
  551. <xsl:otherwise>
  552. <xsl:variable name="vocurl">
  553. <xsl:call-template name="findvoc2">
  554. <xsl:with-param name="itemn" select="name()"/>
  555. </xsl:call-template>
  556. </xsl:variable>
  557. <xsl:variable name="subj" select="@FormalName"/>
  558. <div>
  559. <xsl:value-of select="$subj"/>
  560. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  561. <xsl:if test="FormalName=$subj">
  562. <xsl:text>(</xsl:text>
  563. <xsl:value-of select="Description"/>
  564. <xsl:text>)</xsl:text>
  565. </xsl:if>
  566. </xsl:for-each>
  567. </div>
  568. </xsl:otherwise>
  569. </xsl:choose>
  570. </xsl:template>
  571.  
  572.  
  573.  
  574. <xsl:template match="DataContent">
  575. <div>
  576.       <xsl:copy-of select="(.)"/>
  577. </div>
  578. </xsl:template>
  579.  
  580. <xsl:template match="Importance">
  581. <div>
  582.         <xsl:call-template name="findvoc2">
  583.      <xsl:with-param name="vocab" select="@SchemeRef"/>
  584.       </xsl:call-template>
  585.       <xsl:value-of select="(.)"/>
  586. </div>
  587.      </xsl:template>
  588.  
  589. <xsl:template match="Format">
  590. <xsl:choose>
  591. <xsl:when test="@Vocabulary">
  592. <xsl:call-template name="findts">
  593. <xsl:with-param name="scema" select="@Scheme"/>
  594. </xsl:call-template>
  595. </xsl:when>
  596. <xsl:otherwise>
  597. <xsl:variable name="vocurl">
  598. <xsl:call-template name="findvoc2">
  599. <xsl:with-param name="itemn" select="name()"/>
  600. </xsl:call-template>
  601. </xsl:variable>
  602. <xsl:variable name="subj" select="@FormalName"/>
  603. <div>
  604. <xsl:value-of select="$subj"/>
  605. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  606. <xsl:if test="FormalName=$subj">
  607. <xsl:text>(</xsl:text>
  608. <xsl:value-of select="Description"/>
  609. <xsl:text>)</xsl:text>
  610. </xsl:if>
  611. </xsl:for-each>
  612. </div>
  613. </xsl:otherwise>
  614. </xsl:choose>
  615. </xsl:template>
  616.  
  617. <xsl:template match="FutureStatus">
  618. <xsl:choose>
  619. <xsl:when test="@Vocabulary">
  620. <xsl:call-template name="findts">
  621. <xsl:with-param name="scema" select="@Scheme"/>
  622. </xsl:call-template>
  623. </xsl:when>
  624. <xsl:otherwise>
  625. <xsl:variable name="vocurl">
  626. <xsl:call-template name="findvoc2">
  627. <xsl:with-param name="itemn" select="name()"/>
  628. </xsl:call-template>
  629. </xsl:variable>
  630. <xsl:variable name="subj" select="@FormalName"/>
  631. <div>
  632. <xsl:value-of select="$subj"/>
  633. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  634. <xsl:if test="FormalName=$subj">
  635. <xsl:text>(</xsl:text>
  636. <xsl:value-of select="Description"/>
  637. <xsl:text>)</xsl:text>
  638. </xsl:if>
  639. </xsl:for-each>
  640. </div>
  641. </xsl:otherwise>
  642. </xsl:choose>
  643. </xsl:template>
  644.  
  645. <xsl:template match="Genre">
  646. <div>
  647. <xsl:choose>
  648. <xsl:when test="@Vocabulary">
  649. <xsl:call-template name="findts">
  650. <xsl:with-param name="scema" select="@Scheme"/>
  651. </xsl:call-template>
  652. </xsl:when>
  653. <xsl:otherwise>
  654. <xsl:variable name="vocurl">
  655. <xsl:call-template name="findvoc2">
  656. <xsl:with-param name="itemn" select="name()"/>
  657. </xsl:call-template>
  658. </xsl:variable>
  659. <xsl:variable name="subj" select="@FormalName"/>
  660. <xsl:value-of select="$subj"/>
  661. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  662. <xsl:if test="FormalName=$subj">
  663. <xsl:text>(</xsl:text>
  664. <xsl:value-of select="Description"/>
  665. <xsl:text>)</xsl:text>
  666. </xsl:if>
  667. </xsl:for-each>
  668. </xsl:otherwise>
  669. </xsl:choose>
  670. <xsl:call-template name="showass"/>
  671.  </div>
  672. </xsl:template>
  673.  
  674. <xsl:template match="HowPresent">
  675. <div>
  676.       <xsl:call-template name="findvoc2">
  677.      <xsl:with-param name="vocab" select="@SchemeRef"/>
  678.       </xsl:call-template>
  679.       <xsl:value-of select="(.)"/>
  680. </div>
  681.  </xsl:template>
  682.  
  683. <xsl:template match="LabelType">
  684. <xsl:choose>
  685. <xsl:when test="@Vocabulary">
  686. <xsl:call-template name="findts">
  687. <xsl:with-param name="scema" select="@Scheme"/>
  688. </xsl:call-template>
  689. </xsl:when>
  690. <xsl:otherwise>
  691. <xsl:variable name="vocurl">
  692. <xsl:call-template name="findvoc2">
  693. <xsl:with-param name="itemn" select="name()"/>
  694. </xsl:call-template>
  695. </xsl:variable>
  696. <xsl:variable name="subj" select="@FormalName"/>
  697. <div>
  698. <xsl:value-of select="$subj"/>
  699. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  700. <xsl:if test="FormalName=$subj">
  701. <xsl:text>(</xsl:text>
  702. <xsl:value-of select="Description"/>
  703. <xsl:text>)</xsl:text>
  704. </xsl:if>
  705. </xsl:for-each>
  706. </div>
  707. </xsl:otherwise>
  708. </xsl:choose>
  709. </xsl:template>
  710.  
  711.  
  712. <xsl:template match="Language">
  713. <div>
  714. <xsl:choose>
  715. <xsl:when test="@Vocabulary">
  716. <xsl:call-template name="findts">
  717. <xsl:with-param name="scema" select="@Scheme"/>
  718. </xsl:call-template>
  719. </xsl:when>
  720. <xsl:otherwise>
  721. <xsl:variable name="vocurl">
  722. <xsl:call-template name="findvoc2">
  723. <xsl:with-param name="itemn" select="name()"/>
  724. </xsl:call-template>
  725. </xsl:variable>
  726. <xsl:variable name="subj" select="@FormalName"/>
  727. <xsl:value-of select="$subj"/>
  728. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  729. <xsl:if test="FormalName=$subj">
  730. <xsl:text>(</xsl:text>
  731. <xsl:value-of select="Description"/>
  732. <xsl:text>)</xsl:text>
  733. </xsl:if>
  734. </xsl:for-each>
  735. </xsl:otherwise>
  736. </xsl:choose>
  737. <xsl:call-template name="showass"/>
  738.  </div>
  739. </xsl:template>
  740.  
  741. <xsl:template match="MediaType">
  742. <xsl:choose>
  743. <xsl:when test="@Vocabulary">
  744. <xsl:call-template name="findts">
  745. <xsl:with-param name="scema" select="@Scheme"/>
  746. </xsl:call-template>
  747. </xsl:when>
  748. <xsl:otherwise>
  749. <xsl:variable name="vocurl">
  750. <xsl:call-template name="findvoc2">
  751. <xsl:with-param name="itemn" select="name()"/>
  752. </xsl:call-template>
  753. </xsl:variable>
  754. <xsl:variable name="subj" select="@FormalName"/>
  755. <div>
  756. <xsl:value-of select="$subj"/>
  757. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  758. <xsl:if test="FormalName=$subj">
  759. <xsl:text>(</xsl:text>
  760. <xsl:value-of select="Description"/>
  761. <xsl:text>)</xsl:text>
  762. </xsl:if>
  763. </xsl:for-each>
  764. </div>
  765. </xsl:otherwise>
  766. </xsl:choose>
  767. </xsl:template>
  768.  
  769. <xsl:template match="MetadataType">
  770. <xsl:choose>
  771. <xsl:when test="@Vocabulary">
  772. <xsl:call-template name="findts">
  773. <xsl:with-param name="scema" select="@Scheme"/>
  774. </xsl:call-template>
  775. </xsl:when>
  776. <xsl:otherwise>
  777. <xsl:variable name="vocurl">
  778. <xsl:call-template name="findvoc2">
  779. <xsl:with-param name="itemn" select="name()"/>
  780. </xsl:call-template>
  781. </xsl:variable>
  782. <xsl:variable name="subj" select="@FormalName"/>
  783. <div>
  784. <xsl:value-of select="$subj"/>
  785. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  786. <xsl:if test="FormalName=$subj">
  787. <xsl:text>(</xsl:text>
  788. <xsl:value-of select="Description"/>
  789. <xsl:text>)</xsl:text>
  790. </xsl:if>
  791. </xsl:for-each>
  792. </div>
  793. </xsl:otherwise>
  794. </xsl:choose>
  795. </xsl:template>
  796.  
  797. <xsl:template match="MimeType">
  798. <xsl:choose>
  799. <xsl:when test="@Vocabulary">
  800. <xsl:call-template name="findts">
  801. <xsl:with-param name="scema" select="@Scheme"/>
  802. </xsl:call-template>
  803. </xsl:when>
  804. <xsl:otherwise>
  805. <xsl:variable name="vocurl">
  806. <xsl:call-template name="findvoc2">
  807. <xsl:with-param name="itemn" select="name()"/>
  808. </xsl:call-template>
  809. </xsl:variable>
  810. <xsl:variable name="subj" select="@FormalName"/>
  811. <div>
  812. <xsl:value-of select="$subj"/>
  813. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  814. <xsl:if test="FormalName=$subj">
  815. <xsl:text>(</xsl:text>
  816. <xsl:value-of select="Description"/>
  817. <xsl:text>)</xsl:text>
  818. </xsl:if>
  819. </xsl:for-each>
  820. </div>
  821. </xsl:otherwise>
  822. </xsl:choose>
  823. </xsl:template>
  824.  
  825. <xsl:template match="NewsItemType">
  826. <xsl:choose>
  827. <xsl:when test="@Vocabulary">
  828. <xsl:call-template name="findts">
  829. <xsl:with-param name="scema" select="@Scheme"/>
  830. </xsl:call-template>
  831. </xsl:when>
  832. <xsl:otherwise>
  833. <xsl:variable name="vocurl">
  834. <xsl:call-template name="findvoc2">
  835. <xsl:with-param name="itemn" select="name()"/>
  836. </xsl:call-template>
  837. </xsl:variable>
  838. <xsl:variable name="subj" select="@FormalName"/>
  839. <div>
  840. <xsl:value-of select="$subj"/>
  841. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  842. <xsl:if test="FormalName=$subj">
  843. <xsl:text>(</xsl:text>
  844. <xsl:value-of select="Description"/>
  845. <xsl:text>)</xsl:text>
  846. </xsl:if>
  847. </xsl:for-each>
  848. </div>
  849. </xsl:otherwise>
  850. </xsl:choose>
  851.  
  852. </xsl:template>
  853.  
  854. <xsl:template match="NewsLineType">
  855. <xsl:choose>
  856. <xsl:when test="@Vocabulary">
  857. <xsl:call-template name="findts">
  858. <xsl:with-param name="scema" select="@Scheme"/>
  859. </xsl:call-template>
  860. </xsl:when>
  861. <xsl:otherwise>
  862. <xsl:variable name="vocurl">
  863. <xsl:call-template name="findvoc2">
  864. <xsl:with-param name="itemn" select="name()"/>
  865. </xsl:call-template>
  866. </xsl:variable>
  867. <xsl:variable name="subj" select="@FormalName"/>
  868. <div>
  869. <xsl:value-of select="$subj"/>
  870. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  871. <xsl:if test="FormalName=$subj">
  872. <xsl:text>(</xsl:text>
  873. <xsl:value-of select="Description"/>
  874. <xsl:text>)</xsl:text>
  875. </xsl:if>
  876. </xsl:for-each>
  877. </div>
  878. </xsl:otherwise>
  879. </xsl:choose>
  880. </xsl:template>
  881.  
  882. <xsl:template match="NewsLines">
  883. <div>
  884. <xsl:text>Newlines:</xsl:text>
  885. <div>
  886. <xsl:value-of select="HeadLine"/>
  887. </div>
  888. <div>
  889. <xsl:value-of select="SubHeadLine"/>
  890. </div>
  891. <xsl:value-of select="ByLine"/>
  892. <xsl:value-of select="DateLine"/>
  893. <xsl:value-of select="CopyrightLine"/>
  894. <div>
  895. <xsl:value-of select="CreditLine"/>
  896. </div>
  897. <div>
  898. <xsl:value-of select="Note"/>
  899. </div>
  900. </div>
  901. </xsl:template>
  902.  
  903. <xsl:template match="NewsProduct">
  904. <xsl:choose>
  905. <xsl:when test="@Vocabulary">
  906. <xsl:call-template name="findts">
  907. <xsl:with-param name="scema" select="@Scheme"/>
  908. </xsl:call-template>
  909. </xsl:when>
  910. <xsl:otherwise>
  911. <xsl:variable name="vocurl">
  912. <xsl:call-template name="findvoc2">
  913. <xsl:with-param name="itemn" select="name()"/>
  914. </xsl:call-template>
  915. </xsl:variable>
  916. <xsl:variable name="subj" select="@FormalName"/>
  917. <div>
  918. <xsl:value-of select="$subj"/>
  919. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  920. <xsl:if test="FormalName=$subj">
  921. <xsl:text>(</xsl:text>
  922. <xsl:value-of select="Description"/>
  923. <xsl:text>)</xsl:text>
  924. </xsl:if>
  925. </xsl:for-each>
  926. </div>
  927. </xsl:otherwise>
  928. </xsl:choose>
  929. </xsl:template>
  930.  
  931. <xsl:template match="NewsService">
  932. <xsl:choose>
  933. <xsl:when test="@Vocabulary">
  934. <xsl:call-template name="findts">
  935. <xsl:with-param name="scema" select="@Scheme"/>
  936. </xsl:call-template>
  937. </xsl:when>
  938. <xsl:otherwise>
  939. <xsl:variable name="vocurl">
  940. <xsl:call-template name="findvoc2">
  941. <xsl:with-param name="itemn" select="name()"/>
  942. </xsl:call-template>
  943. </xsl:variable>
  944. <xsl:variable name="subj" select="@FormalName"/>
  945. <div>
  946. <xsl:value-of select="$subj"/>
  947. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  948. <xsl:if test="FormalName=$subj">
  949. <xsl:text>(</xsl:text>
  950. <xsl:value-of select="Description"/>
  951. <xsl:text>)</xsl:text>
  952. </xsl:if>
  953. </xsl:for-each>
  954. </div>
  955. </xsl:otherwise>
  956. </xsl:choose>
  957. </xsl:template>
  958.  
  959. <xsl:template match="Notation">
  960. <xsl:choose>
  961. <xsl:when test="@Vocabulary">
  962. <xsl:call-template name="findts">
  963. <xsl:with-param name="scema" select="@Scheme"/>
  964. </xsl:call-template>
  965. </xsl:when>
  966. <xsl:otherwise>
  967. <xsl:variable name="vocurl">
  968. <xsl:call-template name="findvoc2">
  969. <xsl:with-param name="itemn" select="name()"/>
  970. </xsl:call-template>
  971. </xsl:variable>
  972. <xsl:variable name="subj" select="@FormalName"/>
  973. <div>
  974. <xsl:value-of select="$subj"/>
  975. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  976. <xsl:if test="FormalName=$subj">
  977. <xsl:text>(</xsl:text>
  978. <xsl:value-of select="Description"/>
  979. <xsl:text>)</xsl:text>
  980. </xsl:if>
  981. </xsl:for-each>
  982. </div>
  983. </xsl:otherwise>
  984. </xsl:choose>
  985. </xsl:template>
  986.  
  987. <xsl:template match="OfIterestTo">
  988. <div>
  989. <xsl:choose>
  990. <xsl:when test="@Vocabulary">
  991. <xsl:call-template name="findts">
  992. <xsl:with-param name="scema" select="@Scheme"/>
  993. </xsl:call-template>
  994. </xsl:when>
  995. <xsl:otherwise>
  996. <xsl:variable name="vocurl">
  997. <xsl:call-template name="findvoc2">
  998. <xsl:with-param name="itemn" select="name()"/>
  999. </xsl:call-template>
  1000. </xsl:variable>
  1001. <xsl:variable name="subj" select="@FormalName"/>
  1002. <xsl:value-of select="$subj"/>
  1003. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1004. <xsl:if test="FormalName=$subj">
  1005. <xsl:text>(</xsl:text>
  1006. <xsl:value-of select="Description"/>
  1007. <xsl:text>)</xsl:text>
  1008. </xsl:if>
  1009. </xsl:for-each>
  1010. </xsl:otherwise>
  1011. </xsl:choose>
  1012. <xsl:call-template name="showass"/>
  1013. </div>
  1014. </xsl:template>
  1015.  
  1016. <xsl:template match="Party">
  1017. <xsl:choose>
  1018. <xsl:when test="@Vocabulary">
  1019. <xsl:call-template name="findts">
  1020. <xsl:with-param name="scema" select="@Scheme"/>
  1021. </xsl:call-template>
  1022. </xsl:when>
  1023. <xsl:otherwise>
  1024. <xsl:variable name="vocurl">
  1025. <xsl:call-template name="findvoc2">
  1026. <xsl:with-param name="itemn" select="name()"/>
  1027. </xsl:call-template>
  1028. </xsl:variable>
  1029. <xsl:variable name="subj" select="@FormalName"/>
  1030. <div>
  1031. <xsl:value-of select="$subj"/>
  1032. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1033. <xsl:if test="FormalName=$subj">
  1034. <xsl:text>(</xsl:text>
  1035. <xsl:value-of select="Description"/>
  1036. <xsl:text>)</xsl:text>
  1037. </xsl:if>
  1038. </xsl:for-each>
  1039. </div>
  1040. </xsl:otherwise>
  1041. </xsl:choose>
  1042.  
  1043. </xsl:template>
  1044.  
  1045.  
  1046.  
  1047. <xsl:template match="Provider">
  1048. <div>
  1049.         <xsl:value-of select="name()"/>
  1050. <xsl:apply-templates/>
  1051. </div>
  1052.      </xsl:template>
  1053.  
  1054. <xsl:template match="Creator">
  1055. <div>
  1056.         <xsl:value-of select="name()"/>
  1057. <xsl:apply-templates/>
  1058. </div>
  1059.      </xsl:template>
  1060. <xsl:template match="Contributor">
  1061. <div>
  1062.         <xsl:value-of select="name()"/>
  1063. <xsl:apply-templates/>
  1064. </div>
  1065.      </xsl:template>
  1066.  
  1067. <xsl:template match="Copyright">
  1068. <xsl:value-of select="name()"/>
  1069. <xsl:text>=</xsl:text>
  1070. <xsl:value-of select="(.)"/>
  1071. <xsl:call-template name="showass"/>
  1072. </xsl:template>
  1073.  
  1074.  
  1075. <xsl:template match="Priority">
  1076. <xsl:choose>
  1077. <xsl:when test="@Vocabulary">
  1078. <xsl:call-template name="findts">
  1079. <xsl:with-param name="scema" select="@Scheme"/>
  1080. </xsl:call-template>
  1081. </xsl:when>
  1082. <xsl:otherwise>
  1083. <xsl:variable name="vocurl">
  1084. <xsl:call-template name="findvoc2">
  1085. <xsl:with-param name="itemn" select="name()"/>
  1086. </xsl:call-template>
  1087. </xsl:variable>
  1088. <xsl:variable name="subj" select="@FormalName"/>
  1089. <div>
  1090. <xsl:value-of select="$subj"/>
  1091. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1092. <xsl:if test="FormalName=$subj">
  1093. <xsl:text>(</xsl:text>
  1094. <xsl:value-of select="Description"/>
  1095. <xsl:text>)</xsl:text>
  1096. </xsl:if>
  1097. </xsl:for-each>
  1098. </div>
  1099. </xsl:otherwise>
  1100. </xsl:choose>
  1101. </xsl:template>
  1102.  
  1103. <xsl:template match="Relevance">
  1104. <div>
  1105. <xsl:choose>
  1106. <xsl:when test="@Vocabulary">
  1107. <xsl:call-template name="findts">
  1108. <xsl:with-param name="scema" select="@Scheme"/>
  1109. </xsl:call-template>
  1110. </xsl:when>
  1111. <xsl:otherwise>
  1112. <xsl:variable name="vocurl">
  1113. <xsl:call-template name="findvoc2">
  1114. <xsl:with-param name="itemn" select="name()"/>
  1115. </xsl:call-template>
  1116. </xsl:variable>
  1117. <xsl:variable name="subj" select="@FormalName"/>
  1118. <xsl:value-of select="$subj"/>
  1119. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1120. <xsl:if test="FormalName=$subj">
  1121. <xsl:text>(</xsl:text>
  1122. <xsl:value-of select="Description"/>
  1123. <xsl:text>)</xsl:text>
  1124. </xsl:if>
  1125. </xsl:for-each>
  1126. </xsl:otherwise>
  1127. </xsl:choose>
  1128. <xsl:call-template name="showass"/>
  1129. </div>
  1130. </xsl:template>
  1131.  
  1132. <xsl:template match="Status">
  1133. <xsl:choose>
  1134. <xsl:when test="@Vocabulary">
  1135. <xsl:call-template name="findts">
  1136. <xsl:with-param name="scema" select="@Scheme"/>
  1137. </xsl:call-template>
  1138. </xsl:when>
  1139. <xsl:otherwise>
  1140. <xsl:variable name="vocurl">
  1141. <xsl:call-template name="findvoc2">
  1142. <xsl:with-param name="itemn" select="name()"/>
  1143. </xsl:call-template>
  1144. </xsl:variable>
  1145. <xsl:variable name="subj" select="@FormalName"/>
  1146. <div>
  1147. <xsl:value-of select="$subj"/>
  1148. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1149. <xsl:if test="FormalName=$subj">
  1150. <xsl:text>(</xsl:text>
  1151. <xsl:value-of select="Description"/>
  1152. <xsl:text>)</xsl:text>
  1153. </xsl:if>
  1154. </xsl:for-each>
  1155. </div>
  1156. </xsl:otherwise>
  1157. </xsl:choose>
  1158. </xsl:template>
  1159.  
  1160. <xsl:template match="TopicType">
  1161. <xsl:choose>
  1162. <xsl:when test="@Vocabulary">
  1163. <xsl:call-template name="findts">
  1164. <xsl:with-param name="scema" select="@Scheme"/>
  1165. </xsl:call-template>
  1166. </xsl:when>
  1167. <xsl:otherwise>
  1168. <xsl:variable name="vocurl">
  1169. <xsl:call-template name="findvoc2">
  1170. <xsl:with-param name="itemn" select="name()"/>
  1171. </xsl:call-template>
  1172. </xsl:variable>
  1173. <xsl:variable name="subj" select="@FormalName"/>
  1174. <div>
  1175. <xsl:value-of select="$subj"/>
  1176. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1177. <xsl:if test="FormalName=$subj">
  1178. <xsl:text>(</xsl:text>
  1179. <xsl:value-of select="Description"/>
  1180. <xsl:text>)</xsl:text>
  1181. </xsl:if>
  1182. </xsl:for-each>
  1183. </div>
  1184. </xsl:otherwise>
  1185. </xsl:choose>
  1186. </xsl:template>
  1187.  
  1188.  
  1189. <xsl:template match="Urgency">
  1190. <xsl:choose>
  1191. <xsl:when test="@Vocabulary">
  1192. <xsl:call-template name="findts">
  1193. <xsl:with-param name="scema" select="@Scheme"/>
  1194. </xsl:call-template>
  1195. </xsl:when>
  1196. <xsl:otherwise>
  1197. <xsl:variable name="vocurl">
  1198. <xsl:call-template name="findvoc2">
  1199. <xsl:with-param name="itemn" select="name()"/>
  1200. </xsl:call-template>
  1201. </xsl:variable>
  1202. <xsl:variable name="subj" select="@FormalName"/>
  1203. <div>
  1204. <xsl:value-of select="$subj"/>
  1205. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1206. <xsl:if test="FormalName=$subj">
  1207. <xsl:text>(</xsl:text>
  1208. <xsl:value-of select="Description"/>
  1209. <xsl:text>)</xsl:text>
  1210. </xsl:if>
  1211. </xsl:for-each>
  1212. </div>
  1213. </xsl:otherwise>
  1214. </xsl:choose>
  1215. </xsl:template>
  1216.  
  1217. <xsl:template match="UsageType">
  1218. <xsl:choose>
  1219. <xsl:when test="@Vocabulary">
  1220. <xsl:call-template name="findts">
  1221. <xsl:with-param name="scema" select="@Scheme"/>
  1222. </xsl:call-template>
  1223. </xsl:when>
  1224. <xsl:otherwise>
  1225. <xsl:variable name="vocurl">
  1226. <xsl:call-template name="findvoc2">
  1227. <xsl:with-param name="itemn" select="name()"/>
  1228. </xsl:call-template>
  1229. </xsl:variable>
  1230. <xsl:variable name="subj" select="@FormalName"/>
  1231. <div>
  1232. <xsl:value-of select="$subj"/>
  1233. <xsl:for-each select="document($vocurl)/TopicSet/Topic">
  1234. <xsl:if test="FormalName=$subj">
  1235. <xsl:text>(</xsl:text>
  1236. <xsl:value-of select="Description"/>
  1237. <xsl:text>)</xsl:text>
  1238. </xsl:if>
  1239. </xsl:for-each>
  1240. </div>
  1241. </xsl:otherwise>
  1242. </xsl:choose>
  1243. </xsl:template>
  1244.  
  1245. <xsl:template match="TopicSet">
  1246. <div style="margin:1em;border-style:solid double;border-width:thick;border-color:#FF8800;padding:0.2em">
  1247. <span style="font:bold;color:#FF8800">
  1248. <xsl:value-of select="@FormalName"/>
  1249. <xsl:apply-templates/>
  1250. </span>
  1251. </div>
  1252. </xsl:template>
  1253.  
  1254. <xsl:template match="TopicOccurences">
  1255. <xsl:value-of select="name()"/>
  1256. <xsl:text>=</xsl:text>
  1257. <xsl:value-of select="(.)"/>
  1258. <xsl:call-template name="showass"/>
  1259. </xsl:template>
  1260.  
  1261. <xsl:template match="UsageRights">
  1262. <xsl:value-of select="name()"/>
  1263. <xsl:text>=</xsl:text>
  1264. <xsl:value-of select="(.)"/>
  1265. <xsl:call-template name="showass"/>
  1266. </xsl:template>
  1267.  
  1268.  
  1269. <xsl:template match="Comment">
  1270. <div>
  1271. <xsl:value-of select="(.)"/>
  1272. </div>
  1273. </xsl:template>
  1274.  
  1275.  
  1276. <xsl:template match="Topic">
  1277. <div>
  1278. <xsl:apply-templates/>
  1279. </div>
  1280. </xsl:template>
  1281.  
  1282.  
  1283. <xsl:template match="FormalName">
  1284. <span style="font:bold;color:#FF0000">
  1285. <xsl:text> = </xsl:text>
  1286. <xsl:value-of select="(.)"/>
  1287. </span>
  1288. </xsl:template>
  1289.  
  1290.  
  1291. <xsl:template match="Description">
  1292. <div style="font:bold;color:#00FF00">
  1293. <xsl:choose>
  1294. <xsl:when test="@Variant">
  1295. <xsl:value-of select="@Variant"/>
  1296. </xsl:when>
  1297. <xsl:otherwise>
  1298. <xsl:value-of select="name()"/>
  1299. </xsl:otherwise>
  1300. </xsl:choose>
  1301. <xsl:text> = </xsl:text>
  1302. <xsl:value-of select="(.)"/>
  1303. </div>
  1304. </xsl:template>
  1305.  
  1306. <xsl:template match="Property">
  1307. <div style="font:bold;color:#00FF00">
  1308. <xsl:value-of select="@FormalName"/>
  1309. <xsl:text> = </xsl:text>
  1310. <xsl:value-of select="@Value"/>
  1311. </div>
  1312. </xsl:template>
  1313.  
  1314.  
  1315. <xsl:template match="Update">
  1316. <xsl:value-of select="name()"/>
  1317. <div>
  1318. <xsl:apply-templates/>
  1319. </div>
  1320. </xsl:template>
  1321.  
  1322. <xsl:template match="Replace">
  1323. <div style="font:bold;color:#00FF00">
  1324. <xsl:value-of select="name()"/>
  1325. <xsl:text>@Duid=</xsl:text>
  1326. <xsl:value-of select="@DuidRef"/>
  1327. </div>
  1328. </xsl:template>
  1329.  
  1330. <xsl:template match="Delete">
  1331. <div style="font:bold;color:#00FF00">
  1332. <xsl:value-of select="name()"/>
  1333. <xsl:text>@Duid=</xsl:text>
  1334. <xsl:value-of select="@DuidRef"/>
  1335.  </div>
  1336. </xsl:template>
  1337.  
  1338. <xsl:template match="InsertBefore">
  1339. <div style="font:bold;color:#00FF00">
  1340. <xsl:value-of select="name()"/>
  1341. <xsl:text>@Duid=</xsl:text>
  1342. <xsl:value-of select="@DuidRef"/>
  1343. <xsl:copy-of select="."/>
  1344.  </div>
  1345. </xsl:template>
  1346.  
  1347. <xsl:template match="InsertAfter">
  1348. <div style="font:bold;color:#00FF00">
  1349. <xsl:value-of select="name()"/>
  1350. <xsl:text>@Duid=</xsl:text>
  1351. <xsl:value-of select="@DuidRef"/>
  1352. <xsl:copy-of select="."/>
  1353.  </div>
  1354. </xsl:template>
  1355.  
  1356. <xsl:template match="*|@*" mode="copyins">
  1357. <xsl:copy>
  1358. <xsl:apply-templates select="@*" mode="copyins"/>
  1359. <xsl:apply-templates mode="copyins"/>
  1360. </xsl:copy>
  1361. </xsl:template>
  1362.  
  1363. </xsl:stylesheet>
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.