diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 926d907a2fb69573f1c6337f064645dde18b1e5e (patch) | |
tree | 5a3788da7cfdb44d8c15bb91c6605606d8ac4636 /tssl/tssl-models.xslt | |
parent | 70e83658cac1d0d766e93853e3698921af269a37 (diff) | |
download | tagsoup-926d907a2fb69573f1c6337f064645dde18b1e5e.tar.gz |
Initial Contributionandroid-1.0release-1.0cdma-import
Diffstat (limited to 'tssl/tssl-models.xslt')
-rw-r--r-- | tssl/tssl-models.xslt | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tssl/tssl-models.xslt b/tssl/tssl-models.xslt deleted file mode 100644 index 6a983b4..0000000 --- a/tssl/tssl-models.xslt +++ /dev/null @@ -1,47 +0,0 @@ -<!-- Generate Java code to be inserted into HTMLModels.java. --> - -<!-- -// This file is part of TagSoup and is Copyright 2002-2008 by John Cowan. -// -// This file is part of TagSoup and is Copyright 2002-2008 by John Cowan. -// -// TagSoup is licensed under the Apache License, -// Version 2.0. You may obtain a copy of this license at -// http://www.apache.org/licenses/LICENSE-2.0 . You may also have -// additional legal rights not granted by this license. -// -// TagSoup is distributed in the hope that it will be useful, but -// unless required by applicable law or agreed to in writing, TagSoup -// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS -// OF ANY KIND, either express or implied; not even the implied warranty -// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---> - -<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:tssl="http://www.ccil.org/~cowan/XML/tagsoup/tssl" - version="1.0"> - - <xsl:output method="text"/> - - <xsl:strip-space elements="*"/> - - <!-- The main template. We are going to generate Java constant - definitions for the groups in the file. --> - <xsl:template match="tssl:schema"> - <xsl:apply-templates select="tssl:group"> - <xsl:sort select="@id"/> - </xsl:apply-templates> - </xsl:template> - - <!-- Generate a declaration for a single group. --> - <xsl:template match="tssl:group" name="tssl:group"> - <xsl:param name="id" select="@id"/> - <xsl:param name="number" select="position()"/> - <xsl:text>	public static final int </xsl:text> - <xsl:value-of select="$id"/> - <xsl:text> = 1 << </xsl:text> - <xsl:value-of select="$number"/> - <xsl:text>;
</xsl:text> - </xsl:template> - -</xsl:transform> |