1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4 <!-- CaseName: numbering77 --> 5 <!-- Author: David Marston --> 6 <!-- Purpose: Test of numbering of multi-level document with two from levels, level=multiple. --> 7 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[2]/item[2]/p[1]/text()[5]" --> 8 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[2]/p[1]/text()[1]" --> 9 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[3]/p[1]/text()[1]" --> 10 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/p[2]/text()[5]" --> 11 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/p[2]/text()[7]" --> 12 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/ulist[1]/item[1]/p[1]/text()[1]" --> 13 <!-- Scenario: operation="standard-XML" --> 14 15<xsl:template match="doc"> 16 <out><xsl:apply-templates/></out> 17</xsl:template> 18 19<xsl:template match="title"> 20 <xsl:number level="multiple" from="doc|b" count="a|b|c|d|e" format="1-1"/><xsl:text>: </xsl:text><xsl:value-of select="."/><xsl:text> 21</xsl:text> 22</xsl:template> 23 24<xsl:template match="text()"><!-- To suppress empty lines --><xsl:apply-templates/></xsl:template> 25 26 27 <!-- 28 * Licensed to the Apache Software Foundation (ASF) under one 29 * or more contributor license agreements. See the NOTICE file 30 * distributed with this work for additional information 31 * regarding copyright ownership. The ASF licenses this file 32 * to you under the Apache License, Version 2.0 (the "License"); 33 * you may not use this file except in compliance with the License. 34 * You may obtain a copy of the License at 35 * 36 * http://www.apache.org/licenses/LICENSE-2.0 37 * 38 * Unless required by applicable law or agreed to in writing, software 39 * distributed under the License is distributed on an "AS IS" BASIS, 40 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 41 * See the License for the specific language governing permissions and 42 * limitations under the License. 43 --> 44 45</xsl:stylesheet> 46