| 1 |
<!-- |
|---|
| 2 |
Licensed to Jasig under one or more contributor license |
|---|
| 3 |
agreements. See the NOTICE file distributed with this work |
|---|
| 4 |
for additional information regarding copyright ownership. |
|---|
| 5 |
Jasig licenses this file to you under the Apache License, |
|---|
| 6 |
Version 2.0 (the "License"); you may not use this file |
|---|
| 7 |
except in compliance with the License. You may obtain a |
|---|
| 8 |
copy of the License at: |
|---|
| 9 |
|
|---|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 11 |
|
|---|
| 12 |
Unless required by applicable law or agreed to in writing, |
|---|
| 13 |
software distributed under the License is distributed on |
|---|
| 14 |
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|---|
| 15 |
KIND, either express or implied. See the License for the |
|---|
| 16 |
specific language governing permissions and limitations |
|---|
| 17 |
under the License. |
|---|
| 18 |
--> |
|---|
| 19 |
<xsl:stylesheet |
|---|
| 20 |
version="1.0" |
|---|
| 21 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 22 |
xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 23 |
|
|---|
| 24 |
<!-- branch to an arbitrary page using the |
|---|
| 25 |
"appvar" session variable on a link like so: |
|---|
| 26 |
/misc/showPage.rdo?setappvar=page(mypage) --> |
|---|
| 27 |
|
|---|
| 28 |
<xsl:template name="showPage"> |
|---|
| 29 |
<xsl:param name="pageName"/> |
|---|
| 30 |
<!-- branch here by adding xsl:when statements --> |
|---|
| 31 |
<xsl:choose> |
|---|
| 32 |
<xsl:when test="$pageName = 'urlbuilder'"> |
|---|
| 33 |
<xsl:call-template name="urlbuilder"/> |
|---|
| 34 |
</xsl:when> |
|---|
| 35 |
<xsl:otherwise> |
|---|
| 36 |
<div id="page"> |
|---|
| 37 |
<xsl:copy-of select="$bwStr-Error-PageNotDefined"/> |
|---|
| 38 |
</div> |
|---|
| 39 |
</xsl:otherwise> |
|---|
| 40 |
</xsl:choose> |
|---|
| 41 |
</xsl:template> |
|---|
| 42 |
|
|---|
| 43 |
<xsl:template name="urlbuilder"> |
|---|
| 44 |
<!-- call the urlbuilder by its globally defined prefix --> |
|---|
| 45 |
<iframe id="feedBuilder" src="{$urlbuilder}" width="790" height="2200"> |
|---|
| 46 |
<p> |
|---|
| 47 |
<xsl:copy-of select="$bwStr-Error-IframeUnsupported"/> |
|---|
| 48 |
</p> |
|---|
| 49 |
</iframe> |
|---|
| 50 |
</xsl:template> |
|---|
| 51 |
|
|---|
| 52 |
</xsl:stylesheet> |
|---|