You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/09/04 20:02:40 UTC

cvs commit: xml-xalan/test/tests/conf/attribvaltemplate/err attribvaltemplateerr02.xml attribvaltemplateerr02.xsl

dmarston    01/09/04 11:02:40

  Added:       test/tests/conf/attribvaltemplate attribvaltemplate06.xml
                        attribvaltemplate06.xsl attribvaltemplate10.xml
                        attribvaltemplate10.xsl attribvaltemplate11.xml
                        attribvaltemplate11.xsl attribvaltemplate12.xml
                        attribvaltemplate12.xsl attribvaltemplate13.xml
                        attribvaltemplate13.xsl
               test/tests/conf/attribvaltemplate/err
                        attribvaltemplateerr02.xml
                        attribvaltemplateerr02.xsl
  Log:
  New case from fginestrini@3di.it, plus variations.
  Also: variations on an idea discussed on xsl-list a few months ago.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate06.xml
  
  Index: attribvaltemplate06.xml
  ===================================================================
  <?xml version="1.0"?>
  <response indice="1"/>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate06.xsl
  
  Index: attribvaltemplate06.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribvaltemplate06 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.6.2 -->
    <!-- Creator: fginestrini@3di.it -->
    <!-- Purpose: Evaluation of numeric expression in AVT, surrounded by strings. -->
  
  <xsl:template match="response">
    <out y="before{@indice - 1}after"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate10.xml
  
  Index: attribvaltemplate10.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc a="Front" b="Back" />
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate10.xsl
  
  Index: attribvaltemplate10.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribvaltemplate10 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.6.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Evaluation of string expression in AVT, surrounded by fixed strings. -->
  
  <xsl:template match="doc">
    <out z="Before{concat(@a,@b)}After"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate11.xml
  
  Index: attribvaltemplate11.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc a="fools" b="foo" />
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate11.xsl
  
  Index: attribvaltemplate11.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribvaltemplate11 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.6.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Evaluation of boolean expression in AVT, surrounded by fixed strings. -->
  
  <xsl:template match="doc">
    <out z="Before{starts-with(@a,@b)}After"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate12.xml
  
  Index: attribvaltemplate12.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:font="xyz">
    <font:helvetica>pfu</font:helvetica>
    <helvetica>dfu</helvetica>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate12.xsl
  
  Index: attribvaltemplate12.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribvaltemplate12 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.6.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Double braces to neutralize AVT processing, including colon. -->
  
  <xsl:template match="doc">
    <out style="{{font:helvetica}}"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate13.xml
  
  Index: attribvaltemplate13.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:http="xyz">
    <http:val>pfu</http:val>
    <val>dfu</val>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/attribvaltemplate13.xsl
  
  Index: attribvaltemplate13.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:http="xyz"
    exclude-result-prefixes="http">
  
    <!-- FileName: attribvaltemplate12 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.6.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Use of colon in AVT expression to signify namespaced element. -->
  
  <xsl:template match="doc">
    <out href="{http:val}"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/err/attribvaltemplateerr02.xml
  
  Index: attribvaltemplateerr02.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:http="xyz">
    <http:val>pfu</http:val>
    <val>dfu</val>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/attribvaltemplate/err/attribvaltemplateerr02.xsl
  
  Index: attribvaltemplateerr02.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: attribvaltemplateerr02 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.6.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Value with a colon is interpreted as having a namespace prefix. -->
    <!-- ExpectedException: Prefix must resolve to a namespace -->
  
  <xsl:template match="doc">
    <out href="{http:val}"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org