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: namespace23 --> 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 elements, apparent code path 15 are different for numerous elements. Should actually output a "bogus" 16 stylesheet. --> 17 18<xsl:import href="test1.xsl" ped:a="a"/> 19<xsl:include href="test2.xsl" ped:b="b"/> 20<xsl:output method="xml" indent="yes" lotus:c="c"/> 21 22<xsl:key name="sprtest" match="TestID" use="Name" lotus:d="d"/> 23 24<xsl:strip-space elements="a" ped:e="e"/> 25<xsl:preserve-space elements="b" lotus:f="f"/> 26 27<xsl:variable name="Var1" ped:g="g"> 28DefaultValueOfVar1 29</xsl:variable> 30 31<xsl:param name="Param1" lotus:h="h"> 32DefaultValueOfParam1 33</xsl:param> 34 35<xsl:attribute-set name="my-style" ped:i="i"> 36 <xsl:attribute name="my-size" lotus:j="j">12pt</xsl:attribute> 37 <xsl:attribute name="my-weight">bold</xsl:attribute> 38</xsl:attribute-set> 39 40<xsl:namespace-alias stylesheet-prefix="bogus" result-prefix="xsl" ped:k="k"/> 41<xsl:decimal-format decimal-separator="," grouping-separator=" " lotus:l="l" /> 42 43<xsl:template match="/"> 44 <bogus:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 45 <bogus:template match="/"> 46 <out> 47 Yeee ha 48 </out> 49 </bogus:template> 50 </bogus:stylesheet> 51</xsl:template> 52 53 54 <!-- 55 * Licensed to the Apache Software Foundation (ASF) under one 56 * or more contributor license agreements. See the NOTICE file 57 * distributed with this work for additional information 58 * regarding copyright ownership. The ASF licenses this file 59 * to you under the Apache License, Version 2.0 (the "License"); 60 * you may not use this file except in compliance with the License. 61 * You may obtain a copy of the License at 62 * 63 * http://www.apache.org/licenses/LICENSE-2.0 64 * 65 * Unless required by applicable law or agreed to in writing, software 66 * distributed under the License is distributed on an "AS IS" BASIS, 67 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 68 * See the License for the specific language governing permissions and 69 * limitations under the License. 70 --> 71 72</xsl:stylesheet> 73