1*cdf0e10cSrcweir<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4*cdf0e10cSrcweir xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 5*cdf0e10cSrcweir xmlns:xs="http://www.w3.org/2001/XMLSchema" 6*cdf0e10cSrcweir xmlns:oor="http://openoffice.org/2001/registry" 7*cdf0e10cSrcweir version="1.0"> 8*cdf0e10cSrcweir 9*cdf0e10cSrcweir<xsl:output method="text" indent="no" encoding="ISO-8859-1"/> 10*cdf0e10cSrcweir 11*cdf0e10cSrcweir<xsl:namespace-alias stylesheet-prefix="xs" result-prefix="xs"></xsl:namespace-alias> 12*cdf0e10cSrcweir 13*cdf0e10cSrcweir <!-- match root --> 14*cdf0e10cSrcweir <xsl:template match="/"> 15*cdf0e10cSrcweir <xsl:apply-templates/> 16*cdf0e10cSrcweir </xsl:template> 17*cdf0e10cSrcweir 18*cdf0e10cSrcweir <!-- match all elements that could possibly contain info/desc elements --> 19*cdf0e10cSrcweir <xsl:template match="group|set|node-ref|prop|enumeration|length|minLength|maxLength|minInclusive|maxInclusive|minExclusive|maxExclusive|whiteSpace"> 20*cdf0e10cSrcweir 21*cdf0e10cSrcweir <xsl:if test="1>string-length(info/desc)"> 22*cdf0e10cSrcweir <!-- print TPF's path to current node --> 23*cdf0e10cSrcweir <xsl:message terminate="yes"> 24*cdf0e10cSrcweir 25*cdf0e10cSrcweir <!-- print linefeed --> 26*cdf0e10cSrcweir <xsl:text> </xsl:text> 27*cdf0e10cSrcweir <xsl:text>ERROR: No info/desc element specified or string length of info/desc element is 0.</xsl:text> 28*cdf0e10cSrcweir <xsl:text> </xsl:text> 29*cdf0e10cSrcweir <xsl:text> There has to be a reasonable description to be specified for any item.</xsl:text> 30*cdf0e10cSrcweir <xsl:text> </xsl:text> 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir <xsl:text> - path: </xsl:text> 33*cdf0e10cSrcweir <xsl:for-each select="ancestor-or-self::*"><xsl:text>/</xsl:text> 34*cdf0e10cSrcweir <xsl:value-of select="local-name(.)"/> 35*cdf0e10cSrcweir <xsl:choose> 36*cdf0e10cSrcweir <xsl:when test="@oor:name">[<xsl:value-of select="@oor:name"/>]</xsl:when> 37*cdf0e10cSrcweir <xsl:when test="@oor:value">[<xsl:value-of select="@oor:value"/>]</xsl:when> 38*cdf0e10cSrcweir </xsl:choose> 39*cdf0e10cSrcweir </xsl:for-each> 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir <xsl:text> </xsl:text> 42*cdf0e10cSrcweir <xsl:text> - author: </xsl:text> 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir <xsl:for-each select="ancestor-or-self::*"> 45*cdf0e10cSrcweir <!-- print element name --> 46*cdf0e10cSrcweir <xsl:if test="info/author"> 47*cdf0e10cSrcweir <!-- print arrow --> 48*cdf0e10cSrcweir <xsl:text>-></xsl:text> 49*cdf0e10cSrcweir <xsl:value-of select="info/author"/> 50*cdf0e10cSrcweir </xsl:if> 51*cdf0e10cSrcweir </xsl:for-each> 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir </xsl:message> 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir </xsl:if> 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir <xsl:apply-templates/> 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir </xsl:template> 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir</xsl:transform> 62