| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?xml version='1.0'?>
- <!--
- Copyright © 2004-2006 by Idiom Technologies, Inc. All rights reserved.
- IDIOM is a registered trademark of Idiom Technologies, Inc. and WORLDSERVER
- and WORLDSTART are trademarks of Idiom Technologies, Inc. All other
- trademarks are the property of their respective owners.
- IDIOM TECHNOLOGIES, INC. IS DELIVERING THE SOFTWARE "AS IS," WITH
- ABSOLUTELY NO WARRANTIES WHATSOEVER, WHETHER EXPRESS OR IMPLIED, AND IDIOM
- TECHNOLOGIES, INC. DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE AND WARRANTY OF NON-INFRINGEMENT. IDIOM TECHNOLOGIES, INC. SHALL NOT
- BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, COVER, PUNITIVE, EXEMPLARY,
- RELIANCE, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO LOSS OF
- ANTICIPATED PROFIT), ARISING FROM ANY CAUSE UNDER OR RELATED TO OR ARISING
- OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF IDIOM
- TECHNOLOGIES, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
- Idiom Technologies, Inc. and its licensors shall not be liable for any
- damages suffered by any person as a result of using and/or modifying the
- Software or its derivatives. In no event shall Idiom Technologies, Inc.'s
- liability for any damages hereunder exceed the amounts received by Idiom
- Technologies, Inc. as a result of this transaction.
- These terms and conditions supersede the terms and conditions in any
- licensing agreement to the extent that such terms and conditions conflict
- with those set forth herein.
- This file is part of the DITA Open Toolkit project hosted on Sourceforge.net.
- See the accompanying license.txt file for applicable licenses.
- -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="2.0">
- <xsl:template match="*[contains(@class,' ui-d/uicontrol ')]">
- <!-- insert an arrow before all but the first uicontrol in a menucascade -->
- <xsl:if test="ancestor::*[contains(@class,' ui-d/menucascade ')]">
- <xsl:variable name="uicontrolcount" select="count(preceding-sibling::*[contains(@class,' ui-d/uicontrol ')])"/>
- <xsl:if test="$uicontrolcount > 0">
- <xsl:call-template name="getVariable">
- <xsl:with-param name="id" select="'#menucascade-separator'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:if>
- <fo:inline xsl:use-attribute-sets="uicontrol">
- <xsl:call-template name="commonattributes"/>
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="*[contains(@class,' ui-d/wintitle ')]">
- <fo:inline xsl:use-attribute-sets="wintitle">
- <xsl:call-template name="commonattributes"/>
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="*[contains(@class,' ui-d/menucascade ')]">
- <fo:inline xsl:use-attribute-sets="menucascade">
- <xsl:call-template name="commonattributes"/>
- <xsl:apply-templates select="* | processing-instruction() | comment()"/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="*[contains(@class,' ui-d/shortcut ')]">
- <fo:inline xsl:use-attribute-sets="shortcut">
- <xsl:call-template name="commonattributes"/>
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
- <xsl:template match="*[contains(@class,' ui-d/screen ')]">
- <xsl:call-template name="generateAttrLabel"/>
- <fo:block xsl:use-attribute-sets="screen">
- <xsl:call-template name="commonattributes"/>
- <xsl:call-template name="setFrame"/>
- <xsl:call-template name="setScale"/>
- <xsl:call-template name="setExpanse"/>
- <xsl:apply-templates/>
- </fo:block>
- </xsl:template>
- <xsl:template name="generateAttrLabel">
- <xsl:if test="@spectitle">
- <fo:block font-weight="bold">
- <xsl:value-of select="@spectitle"/>
- </fo:block>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
|