1<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 2 xmlns:sql="org.apache.xalan.lib.sql.XConnection" 3 xmlns:xalan="http://xml.apache.org/xalan" 4 exclude-result-prefixes="xalan java" 5 extension-element-prefixes="sql" 6 xmlns:java="http://xml.apache.org/xslt/java"> 7 <xsl:output method="xml" omit-xml-declaration="yes" standalone="yes"/> 8 9 <!-- Varaible that will be replaced by the XSL Dynamic Query Processor --> 10 <xsl:param name="stylesheets"> 11 <STYLESHEETS> 12 <SUCCESS> 13 <XSL_SHEET MEDIA="ns">success1.xsl</XSL_SHEET> 14 <XSL_SHEET MEDIA="ie">success2.xsl</XSL_SHEET> 15 <XSL_SHEET MEDIA="123">success3.xsl</XSL_SHEET> 16 </SUCCESS> 17 <ERROR> 18 <XSL_SHEET MEDIA="456">error1.xsl</XSL_SHEET> 19 <XSL_SHEET MEDIA="789">error2.xsl</XSL_SHEET> 20 <XSL_SHEET MEDIA="000">error3.xsl</XSL_SHEET> 21 </ERROR> 22 </STYLESHEETS> 23 </xsl:param> 24 25 <xsl:template match="/"> 26 <!-- P911X Response Element --> 27 <xsl:element name="TEMPLATES"> 28 <!--xsl:copy-of select="xalan:nodeset($stylesheets)"/--> 29 <!-- This is a test to make sure we can still call methods on the 30 passed in node. --> 31 <xsl:text> ===== Test java:getNodeName from RTF param. ===== </xsl:text> 32 <xsl:value-of select="java:getNodeName($stylesheets)" /> 33 34 <xsl:text> ===== Test xsl:copy-of of RTF param. ===== </xsl:text> 35 <xsl:copy-of select="$stylesheets"/> 36 37 <xsl:text> ===== Test return of xalan:nodeset of RTF param. ===== </xsl:text> 38 <xsl:copy-of select="xalan:nodeset($stylesheets)"/> 39 40 <xsl:text> ===== Test return of DTM from extension. ===== </xsl:text> 41 <xsl:copy-of select="java:Bugzilla2925.dtmTest('Bugzilla2925Params.xml')"/> 42 43 <xsl:text> ===== Test return of DTMAxisIterator from extension. ===== </xsl:text> 44 <xsl:copy-of select="java:Bugzilla2925.DTMAxisIteratorTest('Bugzilla2925Params.xml')"/> 45 46 <xsl:text> ===== Test return of DTMIterator from extension. ===== </xsl:text> 47 <xsl:copy-of select="java:Bugzilla2925.DTMIteratorTest('Bugzilla2925Params.xml')"/> 48 </xsl:element> 49 </xsl:template> 50 51 <!-- 52 * Licensed to the Apache Software Foundation (ASF) under one 53 * or more contributor license agreements. See the NOTICE file 54 * distributed with this work for additional information 55 * regarding copyright ownership. The ASF licenses this file 56 * to you under the Apache License, Version 2.0 (the "License"); 57 * you may not use this file except in compliance with the License. 58 * You may obtain a copy of the License at 59 * 60 * http://www.apache.org/licenses/LICENSE-2.0 61 * 62 * Unless required by applicable law or agreed to in writing, software 63 * distributed under the License is distributed on an "AS IS" BASIS, 64 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 65 * See the License for the specific language governing permissions and 66 * limitations under the License. 67 --> 68 69</xsl:stylesheet> 70