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