1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 3 xmlns:bogus="http://www.bogus_ns.com" 4 xmlns:lotus="http://www.lotus.com" 5 xmlns:ped="www.ped.com"> 6 7 <!-- FileName: namespaceerr04 --> 8 <!-- Document: http://www.w3.org/TR/xslt --> 9 <!-- DocVersion: 19991116 --> 10 <!-- Section: 2.1 XSLT Namespace --> 11 <!-- Creator: Paul Dick --> 12 <!-- Purpose: Testing an attribute not from the XSLT namespace, which is 13 legal provided that the expanded name of the attribute has a non-null 14 namespace URI. This tests for many xslt TOP-LEVEL elements, apparent code path 15 are different for numerous elements. Should not have namespaces to inherit. --> 16 17<!-- xsl:import href="..\test1.xsl" a="a"/ --> 18<!-- xsl:include href="..\test2.xsl" b="b"/ --> 19<xsl:output method="xml" indent="yes" ped:c="c"/> 20 21<xsl:key name="sprtest" match="TestID" use="Name" ped:d="d"/> 22 23<xsl:strip-space elements="a" ped:e="e"/> 24<xsl:preserve-space elements="b" ped:f="f"/> 25 26<xsl:variable name="Var1" ped:g="g"> 27DefaultValueOfVar1 28</xsl:variable> 29 30<xsl:param name="Param1" ped:h="h"> 31DefaultValueOfParam1 32</xsl:param> 33 34<xsl:attribute-set name="my-style" ped:i="i"> 35 <xsl:attribute name="my-size" ped:j="j">12pt</xsl:attribute> 36 <xsl:attribute name="my-weight">bold</xsl:attribute> 37</xsl:attribute-set> 38 39<xsl:namespace-alias stylesheet-prefix="bogus" result-prefix="xsl" ped:k="k"/> 40<xsl:decimal-format decimal-separator="," grouping-separator=" " ped:l="l"/> 41 42<xsl:template match="docs" ped:m="m"> 43 <bogus:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 44 <bogus:template match="/"> 45 <out> 46 Yeee ha 47 <xsl:for-each select="block" ped:n="n"> 48 <xsl:if test=" .='p'" ped:o="o"> 49 Whoopie 50 </xsl:if> 51 <xsl:value-of select="." ped:p="p"/> 52 </xsl:for-each> 53 </out> 54 </bogus:template> 55 </bogus:stylesheet> 56</xsl:template> 57 58 59 <!-- 60 * Licensed to the Apache Software Foundation (ASF) under one 61 * or more contributor license agreements. See the NOTICE file 62 * distributed with this work for additional information 63 * regarding copyright ownership. The ASF licenses this file 64 * to you under the Apache License, Version 2.0 (the "License"); 65 * you may not use this file except in compliance with the License. 66 * You may obtain a copy of the License at 67 * 68 * http://www.apache.org/licenses/LICENSE-2.0 69 * 70 * Unless required by applicable law or agreed to in writing, software 71 * distributed under the License is distributed on an "AS IS" BASIS, 72 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 73 * See the License for the specific language governing permissions and 74 * limitations under the License. 75 --> 76 77</xsl:stylesheet> 78