diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-27 21:54:54 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-27 22:13:20 +0200 |
commit | 051361a9a9e38d3fb42d021a5d025e12b96425a6 (patch) | |
tree | d2e250a770fb765ccb21ca33518f86cfe98d6357 /writerfilter | |
parent | 18504a6b0fba700423a0260b1af90ab73c51f1ad (diff) |
writerfilter: remove unused attrsprm.xsl
Change-Id: I71e7e1fbab6ec2ecc525f7d637199f6f7a69f8ea
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/attrsprm.xsl | 160 |
1 files changed, 0 insertions, 160 deletions
diff --git a/writerfilter/source/ooxml/attrsprm.xsl b/writerfilter/source/ooxml/attrsprm.xsl deleted file mode 100644 index f61a4c65aac5..000000000000 --- a/writerfilter/source/ooxml/attrsprm.xsl +++ /dev/null @@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> - -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:xalan="http://xml.apache.org/xalan" - exclude-result-prefixes = "xalan" - xml:indent="true"> - <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no"/> - - <xsl:include href="factorytools.xsl"/> - - <xsl:template match="/"> - <class> - <xsl:for-each select="//rng:define[@name='CT_FFData']"> - <xsl:call-template name="sprm"/> - <xsl:call-template name="attribute"/> - </xsl:for-each> - </class> - </xsl:template> - - <xsl:template name="sprminner"> - <xsl:variable name="defname" select="@name"/> - <xsl:for-each select=".//rng:ref[not(ancestor::rng:element or ancestor::rng:attribute)]"> - <xsl:call-template name="sprminner"/> - </xsl:for-each> - <xsl:for-each select=".//rng:element"> - <xsl:for-each select="rng:ref"> - <xsl:variable name="refname" select="@name"/> - <xsl:for-each select="ancestor::namespace/rng:grammar/rng:define[@name=$refname]"> - <xsl:call-template name="sprminner"/> - </xsl:for-each> - </xsl:for-each> - <element> - <xsl:variable name="elementname" select="@name"/> - <xsl:attribute name="name"> - <xsl:value-of select="@name"/> - </xsl:attribute> - <xsl:for-each select="rng:ref"> - <xsl:variable name="refname" select="@name"/> - <xsl:for-each select="ancestor::namespace/resource[@name=$refname]"> - <xsl:attribute name="action"> - <xsl:choose> - <xsl:when test="@resource='Properties'"> - <xsl:text>resolve</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>set</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:attribute> - </xsl:for-each> - <xsl:for-each select="ancestor::namespace/resource[@name=$defname]"> - <xsl:for-each select="element[@name=$elementname]"> - <xsl:attribute name="id"> - <xsl:call-template name="idtoqname"> - <xsl:with-param name="id"> - <xsl:value-of select="@tokenid"/> - </xsl:with-param> - </xsl:call-template> - </xsl:attribute> - </xsl:for-each> - </xsl:for-each> - </xsl:for-each> - </element> - </xsl:for-each> - </xsl:template> - - <xsl:template name="sprm"> - <sprm> - <xsl:call-template name="sprminner"/> - </sprm> - </xsl:template> - - <xsl:template name="attributeinner"> - <xsl:param name="parent"/> - <xsl:for-each select=".//rng:ref[not(ancestor::rng:element or ancestor::rng:attribute)]"> - <xsl:variable name="refname" select="@name"/> - <xsl:comment><xsl:value-of select="$newparent"/></xsl:comment> - <xsl:for-each select="ancestor::namespace/rng:grammar/rng:define[@name=$refname]"> - <xsl:call-template name="attributeinner"> - <xsl:with-param name="parent" select="$parent"/> - </xsl:call-template> - </xsl:for-each> - </xsl:for-each> - <xsl:for-each select=".//rng:element"> - <xsl:variable name="newparent"> - <xsl:if test="string-length($parent)"> - <xsl:value-of select="$parent"/> - <xsl:text>:</xsl:text> - </xsl:if> - <xsl:value-of select="@name"/> - </xsl:variable> - <xsl:for-each select="rng:ref"> - <xsl:variable name="refname" select="@name"/> - <xsl:for-each select="ancestor::namespace/rng:grammar/rng:define[@name=$refname]"> - <xsl:call-template name="attributeinner"> - <xsl:with-param name="parent" select="$newparent"/> - </xsl:call-template> - </xsl:for-each> - </xsl:for-each> - </xsl:for-each> - <xsl:variable name="defname" select="@name"/> - <xsl:variable name="resource"> - <xsl:for-each select="ancestor::namespace/resource[@name=$defname]"> - <xsl:value-of select="@resource"/> - </xsl:for-each> - </xsl:variable> - <xsl:if test="$resource='Properties'"> - <xsl:for-each select=".//rng:attribute"> - <xsl:variable name="attrname" select="@name"/> - <attribute> - <xsl:attribute name="name"> - <xsl:if test="string-length($parent) > 0"> - <xsl:value-of select="$parent"/> - <xsl:text>:</xsl:text> - </xsl:if> - <xsl:value-of select="$attrname"/> - </xsl:attribute> - <xsl:for-each select="ancestor::namespace/resource[@name=$defname]"> - <xsl:for-each select="attribute[@name=$attrname]"> - <xsl:attribute name="id"> - <xsl:call-template name="idtoqname"> - <xsl:with-param name="id"> - <xsl:value-of select="@tokenid"/> - </xsl:with-param> - </xsl:call-template> - </xsl:attribute> - </xsl:for-each> - </xsl:for-each> - </attribute> - </xsl:for-each> - </xsl:if> - </xsl:template> - - <xsl:template name="attribute"> - <attribute> - <xsl:call-template name="attributeinner"/> - </attribute> - </xsl:template> - -</xsl:stylesheet>
\ No newline at end of file |