vgritsenko 02/02/24 12:08:22 Modified: src/java/org/apache/cocoon/components/language/markup/xsp/java xsp.xsl Log: formatting Revision Changes Path 1.6 +9 -18 xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl Index: xsp.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- xsp.xsl 13 Feb 2002 01:09:08 -0000 1.5 +++ xsp.xsl 24 Feb 2002 20:08:22 -0000 1.6 @@ -1,6 +1,6 @@ <?xml version="1.0"?> -<!-- $Id: xsp.xsl,v 1.5 2002/02/13 01:09:08 vgritsenko Exp $--> +<!-- $Id: xsp.xsl,v 1.6 2002/02/24 20:08:22 vgritsenko Exp $--> <!-- ============================================================================ @@ -57,7 +57,7 @@ * * @author <a href="mailto:[EMAIL PROTECTED]>Ricardo Rocha</a> * @author <a href="[EMAIL PROTECTED]">Sylvain Wallez</a> - * @version CVS $Revision: 1.5 $ $Date: 2002/02/13 01:09:08 $ + * @version CVS $Revision: 1.6 $ $Date: 2002/02/24 20:08:22 $ --> <xsl:stylesheet version="1.0" @@ -335,28 +335,21 @@ <xsl:when test="$prefix = '""'"> <xsl:copy-of select="$name"/> </xsl:when> - <xsl:otherwise> - (<xsl:copy-of select="$prefix"/> + ":" + <xsl:copy-of select="$name"/>) </xsl:otherwise> + <xsl:otherwise> (<xsl:copy-of select="$prefix"/> + ":" + <xsl:copy-of select="$name"/>) </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="content"> <xsl:for-each select="text()|xsp:expr|xsp:text"> - <xsl:if test="position() > 1"> - + - </xsl:if> + <xsl:if test="position() > 1"> + </xsl:if> <xsl:choose> <xsl:when test="namespace-uri(.) = $xsp-uri and local-name(.) = 'expr'"> String.valueOf(<xsl:value-of select="."/>) </xsl:when> - <xsl:otherwise> - "<xsl:value-of select="."/>" - </xsl:otherwise> + <xsl:otherwise> "<xsl:value-of select="."/>" </xsl:otherwise> </xsl:choose> </xsl:for-each> - <xsl:if test="not(text()|xsp:expr|xsp:text)"> - "" - </xsl:if> + <xsl:if test="not(text()|xsp:expr|xsp:text)"> "" </xsl:if> </xsl:variable> xspAttr.addAttribute( @@ -409,13 +402,11 @@ <xsl:when test="namespace-uri(.) = $xsp-uri and local-name(.) = 'expr'"> String.valueOf(<xsl:value-of select="."/>) </xsl:when> - <xsl:otherwise> - "<xsl:value-of select="."/>" - </xsl:otherwise> + <xsl:otherwise> "<xsl:value-of select="."/>" </xsl:otherwise> </xsl:choose> - + + <xsl:text> + </xsl:text> </xsl:for-each> - "" + <xsl:text> "" </xsl:text> </xsl:variable> this.contentHandler.processingInstruction(
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]