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