1<xsl:stylesheet version="1.0" 2 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 5 6 7 <!-- Test FileName: mk021.xsl --> 8 9 <!-- Source Attribution: 10 11 This test was written by Michael Kay and is taken from 12 13 'XSLT Programmer's Reference' published by Wrox Press Limited in 2000; 14 15 ISBN 1-861003-12-9; copyright Wrox Press Limited 2000; all rights reserved. 16 17 Now updated in the second edition (ISBN 1861005067), http://www.wrox.com. 18 19 No part of this book may be reproduced, stored in a retrieval system or 20 21 transmitted in any form or by any means - electronic, electrostatic, mechanical, 22 23 photocopying, recording or otherwise - without the prior written permission of 24 25 the publisher, except in the case of brief quotations embodied in critical articles or reviews. 26 27 --> 28 29 <!-- Example: poem.xml, numbered-style.xsl --> 30 31 <!-- Chapter/Page: 4-217 --> 32 33 <!-- Purpose: Precedence of template rules --> 34 35 36 37<xsl:import href="mk020.xsl"/> 38 39 40 41<xsl:template match="line"> 42 43 <xsl:number level="any" format="001"/>   44 45 <xsl:apply-imports/> 46 47</xsl:template> 48 49 <!-- 50 * Licensed to the Apache Software Foundation (ASF) under one 51 * or more contributor license agreements. See the NOTICE file 52 * distributed with this work for additional information 53 * regarding copyright ownership. The ASF licenses this file 54 * to you under the Apache License, Version 2.0 (the "License"); 55 * you may not use this file except in compliance with the License. 56 * You may obtain a copy of the License at 57 * 58 * http://www.apache.org/licenses/LICENSE-2.0 59 * 60 * Unless required by applicable law or agreed to in writing, software 61 * distributed under the License is distributed on an "AS IS" BASIS, 62 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 63 * See the License for the specific language governing permissions and 64 * limitations under the License. 65 --> 66 67</xsl:stylesheet> 68