From: Wim T. <wt...@us...> - 2003-02-20 23:41:16
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wtay Date: Thu Feb 20 2003 15:41:15 PST Log message: Added pad implementation + element properties Modified files: tools : xml2text.xsl Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/xml2text.xsl.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: xml2text.xsl =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/xml2text.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- xml2text.xsl 20 Feb 2003 23:07:01 -0000 1.1 +++ xml2text.xsl 20 Feb 2003 23:41:02 -0000 1.2 @@ -179,11 +179,129 @@ <xsl:template match="pads"> <xsl:text>Pads: </xsl:text> + <xsl:apply-templates select="pad"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="pad"> + <xsl:text> </xsl:text> + <xsl:value-of select="direction"/> + <xsl:text>: '</xsl:text> + <xsl:value-of select="name"/> + <xsl:text>' </xsl:text> + <xsl:apply-templates select="implementation"/> + <xsl:text> Pad Template: '</xsl:text> + <xsl:value-of select="template"/> + <xsl:text>' </xsl:text> + </xsl:template> + + <xsl:template match="implementation"> + <xsl:text> Implementation: </xsl:text> + <xsl:apply-templates select="*"/> + </xsl:template> + + <xsl:template match="chain-based"> + <xsl:text> Has chainfunc(): </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="bufferpool-function"> + <xsl:text> Has bufferpoolfunc(): </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="format"> + <xsl:text> (</xsl:text> + <xsl:value-of select="@id"/> + <xsl:text>)	</xsl:text> + <xsl:value-of select="@nick"/> + <xsl:text> (</xsl:text> + <xsl:value-of select="."/> + <xsl:text>) </xsl:text> + </xsl:template> + + <xsl:template match="formats-function"> + <xsl:text> Supports seeking/conversion/query formats: </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="format"/> + </xsl:template> + + <xsl:template match="convert-function"> + <xsl:text> Has custom convertfunc(): </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="query-function"> + <xsl:text> Has custom queryfunc(): </xsl:text> + <xsl:value-of select="@function"/> <xsl:text> </xsl:text> </xsl:template> + <xsl:template match="event-function"> + <xsl:text> Has custom eventfunc(): </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="event"> + <xsl:text> </xsl:text> + <xsl:value-of select="@type"/> + <xsl:for-each select="flag"> + <xsl:text> | </xsl:text> + <xsl:value-of select='.'/> + </xsl:for-each> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="event-mask-func"> + <xsl:text> Provides event masks: </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="event"/> + </xsl:template> + + <xsl:template match="query-type"> + <xsl:text> (</xsl:text> + <xsl:value-of select="@id"/> + <xsl:text>)	</xsl:text> + <xsl:value-of select="@nick"/> + <xsl:text> (</xsl:text> + <xsl:value-of select="."/> + <xsl:text>) </xsl:text> + </xsl:template> + + <xsl:template match="query-type-func"> + <xsl:text> Provides query types: </xsl:text> + <xsl:value-of select="@function"/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="query-type"/> + </xsl:template> + <xsl:template match="element-properties"> <xsl:text>Element Arguments: </xsl:text> + <xsl:text> </xsl:text> + <xsl:apply-templates select="element-property"/> + </xsl:template> + + <xsl:template match="default"> + <xsl:text>. (Default </xsl:text> + <xsl:value-of select="."/> + <xsl:text>)</xsl:text> + </xsl:template> + + <xsl:template match="element-property"> + <xsl:text> </xsl:text> + <xsl:value-of select="name"/> + <xsl:text>:	 </xsl:text> + <xsl:value-of select="blurb"/> + <xsl:text> </xsl:text> + <xsl:text> </xsl:text> + <xsl:value-of select="type"/> + <xsl:apply-templates select="default"/> <xsl:text> </xsl:text> </xsl:template> |