dmarston 00/12/15 16:54:39
Added: test/tests/conf/attribvaltemplate attribvaltemplate09.xsl
attribvaltemplate01.xsl attribvaltemplate02.xml
attribvaltemplate02.xsl attribvaltemplate03.xml
attribvaltemplate03.xsl attribvaltemplate04.xml
attribvaltemplate04.xsl attribvaltemplate05.xml
attribvaltemplate05.xsl attribvaltemplate07.xml
attribvaltemplate07.xsl attribvaltemplate08.xml
attribvaltemplate08.xsl attribvaltemplate09.xml
attribvaltemplate01.xml
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate09.xsl
Index: attribvaltemplate09.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: attribvaltemplate09 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 7.6.2 -->
<!-- Purpose: Testing generation of null attribute. This was a problem with
the C++ version. If $From was null it was not outputting the
attribute. -->
<!-- Author: Geoff Crowther -->
<xsl:param name="From"/>
<xsl:template match="/">
<out>
<setvar name="From" value="{$From}"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate01.xsl
Index: attribvaltemplate01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: AVT01 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 7.6.2 -->
<!-- Purpose: Test of single attribute value template (AVT). -->
<xsl:template match="doc">
<out test="{.}"/>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate02.xml
Index: attribvaltemplate02.xml
===================================================================
<?xml version="1.0"?>
<photograph>
<href>headquarters.jpg</href>
<size width="300"/>
</photograph>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate02.xsl
Index: attribvaltemplate02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: AVT02 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 7.6.2 -->
<!-- Purpose: Test two AVTs with literal element between
them (based on example in the spec). -->
<xsl:template match="photograph">
<xsl:variable name="image-dir">/images</xsl:variable>
<out src="{$image-dir}/{href}" width="{size/@width}"/>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate03.xml
Index: attribvaltemplate03.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate03.xsl
Index: attribvaltemplate03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: AVT03 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 7.6.2 -->
<!-- Purpose: Test of left curly brace escape. -->
<xsl:template match="doc">
<out test="{{"/>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate04.xml
Index: attribvaltemplate04.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate04.xsl
Index: attribvaltemplate04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: AVT04 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 7.6.2 -->
<!-- Purpose: Test of right curly brace escape. -->
<xsl:template match="doc">
<out test="}}"/>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate05.xml
Index: attribvaltemplate05.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc1>
<a level="1">A1</a>
<b level="1">B2</b>
<c level="1">C3</c>
</doc1>
<doc2>
<a level="2">A1</a>
<b level="2">B2</b>
<c level="2">C3</c>
<doc3>
<a level="Out1">A1</a>
<bat level="3">Out2</bat>
<cat level="3">C33</cat>
</doc3>
</doc2>
</docs>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate05.xsl
Index: attribvaltemplate05.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: AVT05 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 -->
<!-- Purpose: Use of Curly brace to set value of HTML attribute. -->
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<HTML>
<a href="/cgi-bin/app?p_parm1={.//doc2/doc3/a/@level}"></a>
</HTML>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate07.xml
Index: attribvaltemplate07.xml
===================================================================
<?xml version="1.0"?>
<doc>
<link desc="Edit Accounts" value="Good Job">Link</link>
</doc>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate07.xsl
Index: attribvaltemplate07.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: AVT07 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Purpose: Use of Curly brace to set value of html attributes. This was
a
test based on SPR PDIK4D2JCF. Apparently we could not parse the
attribute
that had a space in it i.e. Edit Accounts. -->
<xsl:output method="html" indent="yes"/>
<xsl:template match="doc">
<HTML>
<a href="{./[EMAIL PROTECTED]'Edit Accounts']/@value}"></a>
</HTML>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate08.xml
Index: attribvaltemplate08.xml
===================================================================
<?xml version='1.0' encoding='iso-8859-1'?>
<doc>
<problem code="70" title="Consulta de Informaci�n"/>
</doc>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate08.xsl
Index: attribvaltemplate08.xsl
===================================================================
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html"/>
<!-- FileName: attribvaltemplate08 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Purpose: Compare the results of attribute value generated by AVT vs
xsl:value-of, with the output specified to be html. We differ from both
XT and Saxon on this.
-->
<xsl:template match="doc/problem">
<out value="[EMAIL PROTECTED]">
<xsl:value-of select="@title"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate09.xml
Index: attribvaltemplate09.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1
xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate01.xml
Index: attribvaltemplate01.xml
===================================================================
<?xml version="1.0"?>
<doc>hello</doc>