summaryrefslogtreecommitdiff
path: root/test/tests/conf/namespace/namespace23.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/conf/namespace/namespace23.xsl')
-rw-r--r--test/tests/conf/namespace/namespace23.xsl72
1 files changed, 72 insertions, 0 deletions
diff --git a/test/tests/conf/namespace/namespace23.xsl b/test/tests/conf/namespace/namespace23.xsl
new file mode 100644
index 0000000..2a7cf00
--- /dev/null
+++ b/test/tests/conf/namespace/namespace23.xsl
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns:bogus="http://www.bogus_ns.com"
+ xmlns:lotus="http://www.lotus.com"
+ xmlns:ped="www.ped.com">
+
+ <!-- FileName: namespace23 -->
+ <!-- Document: http://www.w3.org/TR/xslt -->
+ <!-- DocVersion: 19991116 -->
+ <!-- Section: 2.1 XSLT Namespace -->
+ <!-- Creator: Paul Dick -->
+ <!-- Purpose: Testing an attribute not from the XSLT namespace, which is
+ legal provided that the expanded name of the attribute has a non-null
+ namespace URI. This tests for many xslt elements, apparent code path
+ are different for numerous elements. Should actually output a "bogus"
+ stylesheet. -->
+
+<xsl:import href="test1.xsl" ped:a="a"/>
+<xsl:include href="test2.xsl" ped:b="b"/>
+<xsl:output method="xml" indent="yes" lotus:c="c"/>
+
+<xsl:key name="sprtest" match="TestID" use="Name" lotus:d="d"/>
+
+<xsl:strip-space elements="a" ped:e="e"/>
+<xsl:preserve-space elements="b" lotus:f="f"/>
+
+<xsl:variable name="Var1" ped:g="g">
+DefaultValueOfVar1
+</xsl:variable>
+
+<xsl:param name="Param1" lotus:h="h">
+DefaultValueOfParam1
+</xsl:param>
+
+<xsl:attribute-set name="my-style" ped:i="i">
+ <xsl:attribute name="my-size" lotus:j="j">12pt</xsl:attribute>
+ <xsl:attribute name="my-weight">bold</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:namespace-alias stylesheet-prefix="bogus" result-prefix="xsl" ped:k="k"/>
+<xsl:decimal-format decimal-separator="," grouping-separator=" " lotus:l="l" />
+
+<xsl:template match="/">
+ <bogus:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <bogus:template match="/">
+ <out>
+ Yeee ha
+ </out>
+ </bogus:template>
+ </bogus:stylesheet>
+</xsl:template>
+
+
+ <!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+
+</xsl:stylesheet>