Has anyone went from PHP templating to XSLT templating and not regretted it?
There is a certain framework I'm using in which the main developers are considering drastically changing from native PHP based templating to XSLT templating.

I'm worried that this won't be feasible because on our sites we usually have very complex templating logic.

For something as simple as this:

        if ( $something ) { ?>
            <p><?php if ( $another ) { ?>Lorem Ipsum<?php } else { ?>Dolor amet<?php } ?>.</p>
        <?php } else { ?>
            <p><?php if ( $another ) { ?>Lorem Ipsum<?php } else { ?>Dolor amet<?php } ?>.</p>
        <?php } ?>
       

The equivalent XSLT would be:

        <xsl:choose>
            <xsl:when test="blah">
                <xsl:choose>
                    <xsl:when test="another">
                        <p>Lorem Ipsum.</p>
                    </xsl:when>
                    <xsl:otherwise>
                        <p>Dolor amet.</p>
                    </xsl:otherwise>
            </xsl:when>
            <xsl:otherwise>
                    <xsl:when test="another">
                        <p>Lorem Ipsum.</p>
                    </xsl:when>
                    <xsl:otherwise>
                        <p>Dolor amet.</p>
                    </xsl:otherwise>
            </xsl:otherwise>
        </xsl:choose>

With such a simple code snippet, it scares me when I think of advanced scenarios.

I'm wondering if anyone has undergone through a similar templating conversion and if so, how did you cope with it? Did you go back?
Has anyone went from PHP templating to XSLT templating and not regretted it?
===

There is a certain framework I'm using in which the main developers are considering drastically changing from native PHP based templating to XSLT templating.

I'm worried that this won't be feasible because on our sites we usually have very complex templating logic.

For something as simple as this:

        if ( $something ) { ?>
            <p><?php if ( $another ) { ?>Lorem Ipsum<?php } else { ?>Dolor amet<?php } ?>.</p>
        <?php } else { ?>
            <p><?php if ( $another ) { ?>Lorem Ipsum<?php } else { ?>Dolor amet<?php } ?>.</p>
        <?php } ?>
       

The equivalent XSLT would be:

        <xsl:choose>
            <xsl:when test="blah">
                <xsl:choose>
                    <xsl:when test="another">
                        <p>Lorem Ipsum.</p>
                    </xsl:when>
                    <xsl:otherwise>
                        <p>Dolor amet.</p>
                    </xsl:otherwise>
            </xsl:when>
            <xsl:otherwise>
                    <xsl:when test="another">
                        <p>Lorem Ipsum.</p>
                    </xsl:when>
                    <xsl:otherwise>
                        <p>Dolor amet.</p>
                    </xsl:otherwise>
            </xsl:otherwise>
        </xsl:choose>

With such a simple code snippet, it scares me when I think of advanced scenarios.

I'm wondering if anyone has undergone through a similar templating conversion and if so, how did you cope with it? Did you go back?