I need to transform a XML to XHTML. Within the XML are multiple paragraphs and embedded quotations e.g.
<para>SomeText</para>
<para><quote>SomeText</quote></para>
<para>SomeText</para>
I tried this:
<xsl:choose>
    <xsl:when test="//text/para">
        <xsl:for-each select="//text">
            <xsl:for-each select="//para">
                <p><xsl:value-of select="text()"/></p>
            </xsl:for-each>
        </xsl:for-each>
    </xsl:when>
    <xsl:when test="//text/para[quote]">
        <xsl:for-each select="//text">
            <xsl:for-each select="//para/quote">
                <p><q><xsl:value-of select="text()"/></q></p>
            </xsl:for-each>
        </xsl:for-each>
    </xsl:when>
</xsl:choose>
The second condition simply gets ignored however.
 
     
     
     
    