Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/output-method-callout-test/output-method-callout.xsl
Ariel Backenroth 1507f7387a - terminology changes to wcmModel (needs to be propogated to java classes as well). template is now form. template output method is now form transformer.
- added an aspect to differentiate form derived from form transformer derived (allowed removing some workarounds from XSLTOutputMethod)

- namespacing variables passed to the xsl processor with alfresco:



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4154 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-10-18 19:01:45 +00:00

49 lines
1.7 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">My value accessed using /simple/string:</div>
<span><xsl:value-of select="/simple/string"/></span>
<div class="name">My value accessed using alfresco:getXMLDocument(<xsl:value-of select="$alfresco:derived_from_file_name"/>):</div>
<span><xsl:value-of select="alfresco:getXMLDocument($alfresco:derived_from_file_name)/simple/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:getXMLDocuments('output-method-callout')/simple">
<li><xsl:value-of select="@alfresco:file-name"/> = <xsl:value-of select="string"/></li>
</xsl:for-each>
</ul>
</body>
</html>
</xsl:template>
</xsl:stylesheet>