NX_USER.XSL 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. -->
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
  5. <xsl:output method ="html"/>
  6. <xsl:template match="/">
  7. <html>
  8. <body>
  9. <xsl:apply-templates select="PrefValues" />
  10. </body>
  11. </html>
  12. </xsl:template>
  13. <xsl:template match="Pref">
  14. <p>
  15. <xsl:text>Location: </xsl:text><xsl:value-of select="@Application"/> <xsl:text>; </xsl:text> <xsl:value-of select="@Category"/> <xsl:text>; </xsl:text> <xsl:value-of select="@Tab"/><br/>
  16. <xsl:text>Setting: </xsl:text><xsl:value-of select="@title"/><br/>
  17. <xsl:choose>
  18. <xsl:when test="contains(@name,'_EU')">
  19. <xsl:text>Applies to: English</xsl:text><br/>
  20. </xsl:when>
  21. <xsl:when test="contains(@name,'_MU')">
  22. <xsl:text>Applies to: Metric</xsl:text><br/>
  23. </xsl:when>
  24. <xsl:when test="contains(@name,'_UNX')">
  25. <xsl:text>Applies to: Unix</xsl:text><br/>
  26. </xsl:when>
  27. <xsl:when test="contains(@name,'_WIN')">
  28. <xsl:text>Applies to: Windows</xsl:text><br/>
  29. </xsl:when>
  30. </xsl:choose>
  31. <xsl:text> Setting unique identifier: </xsl:text><xsl:value-of select="@name"/><br/>
  32. <xsl:text>Value: </xsl:text><xsl:value-of select="@displayValue"/> <br/>
  33. <xsl:choose>
  34. <xsl:when test="../@defaultLockStatus='unlocked'">
  35. <xsl:choose>
  36. <xsl:when test="@locked">
  37. <xsl:text>Locked: yes</xsl:text><br/>
  38. </xsl:when>
  39. <xsl:otherwise >
  40. <xsl:text>Locked: no </xsl:text> <br/>
  41. </xsl:otherwise>
  42. </xsl:choose>
  43. </xsl:when>
  44. <xsl:when test="../@defaultLockStatus='locked'">
  45. <xsl:choose>
  46. <xsl:when test="@locked">
  47. <xsl:text>Locked: no</xsl:text><br/>
  48. </xsl:when>
  49. <xsl:otherwise >
  50. <xsl:text>Locked: yes</xsl:text> <br/>
  51. </xsl:otherwise>
  52. </xsl:choose>
  53. </xsl:when>
  54. </xsl:choose>
  55. <xsl:text>Set on: </xsl:text><xsl:value-of select="@modified"/><br/>
  56. <xsl:apply-templates/>
  57. </p>
  58. </xsl:template>
  59. <xsl:template match="UserComment">
  60. <xsl:text>User Comment: </xsl:text> <xsl:value-of select="."/>
  61. </xsl:template>
  62. </xsl:stylesheet>