mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4682 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
97 lines
3.2 KiB
XML
97 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
exclude-result-prefixes="xhtml">
|
|
|
|
<xsl:output method="html" version="4.01" encoding="UTF-8" indent="yes"
|
|
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
|
|
<xsl:preserve-space elements="*"/>
|
|
|
|
<xsl:template match="/">
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
body
|
|
{
|
|
font-family: Tahoma, Arial, Helvetica, sans-serif;
|
|
background-color: white;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.name
|
|
{
|
|
color: #003366;
|
|
font-weight: bold;
|
|
margin-right: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
</style>
|
|
<title>Simple Test</title>
|
|
</head>
|
|
<body>
|
|
<div>Generated by output-method-callout.xsl</div>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="$alfresco:avm_sandbox_url"/>
|
|
</div>
|
|
<span><xsl:value-of select="$alfresco:avm_sandbox_url"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="$alfresco:form_instance_data_file_name"/>
|
|
</div>
|
|
<span><xsl:value-of select="$alfresco:form_instance_data_file_name"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="$alfresco:rendition_file_name"/>
|
|
</div>
|
|
<span><xsl:value-of select="$alfresco:rendition_file_name"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="$alfresco:parent_path"/>
|
|
</div>
|
|
<span><xsl:value-of select="$alfresco:parent_path"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="$alfresco:request_context_path"/>
|
|
</div>
|
|
<span><xsl:value-of select="$alfresco:request_context_path"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="$alfresco:request_context_path"/><xsl:value-of select="/simple/uri"/>
|
|
</div>
|
|
<span><xsl:value-of select="$alfresco:request_context_path"/><xsl:value-of select="/simple/uri"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="alfresco:_getAVMPath('foo')"/>
|
|
</div>
|
|
<span><xsl:value-of select="alfresco:_getAVMPath('foo')"/></span>
|
|
|
|
<div class="name">
|
|
<xsl:value-of select="alfresco:_getAVMPath('/foo')"/>
|
|
</div>
|
|
<span><xsl:value-of select="alfresco:_getAVMPath('/foo')"/></span>
|
|
|
|
<div class="name">My value accessed using /simple/string:</div>
|
|
<span><xsl:value-of select="/simple/string"/></span>
|
|
<div class="name">My value accessed using alfresco:parseXMLDocument($alfresco:form_instance_data_file_name):</div>
|
|
<span><xsl:value-of select="alfresco:parseXMLDocument($alfresco:form_instance_data_file_name)/string"/></span>
|
|
<div class="name">Values from xml files generated by in <xsl:value-of select="$alfresco:parent_path"/>:</div>
|
|
<ul>
|
|
<xsl:for-each select="alfresco:parseXMLDocuments('output-method-callout')">
|
|
<li>
|
|
<div class="name">
|
|
<xsl:value-of select="@alfresco:file_name"/> = <xsl:value-of select="string"/>
|
|
</div>
|
|
<span>
|
|
<xsl:value-of select="@alfresco:file_name"/> = <xsl:value-of select="string"/>
|
|
</span>
|
|
</li>
|
|
</xsl:for-each>
|
|
</ul>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|