xsl-list
[Top] [All Lists]

Re: [xsl] selecting elements by attributes when working with namespaces

2008-07-22 01:17:01
Joelle Tegwen wrote:

  Hi

    <xsl:template match="tt:span[(_at_)class='defaultSpeaker']">
        <xsl:if test="count(../preceding-sibling::*)>0">
            <xsl:text
disable-output-escaping="yes">&lt;/dd&gt;</xsl:text>
        </xsl:if>
        <dt>
            <xsl:value-of disable-output-escaping="yes" select="."/>
        </dt>
        <xsl:text disable-output-escaping="yes">&lt;dd&gt;</xsl:text>

  Please, never, never do that.  You are not generating correct XML
regarding XDM, but you are instead cheating with the serializer.  I
didn't look in details of what you want, but you should be able to find
another solution.

  If not, please post a simple excerpt of your input and your expected
output.

    </xsl:template>
    <xsl:template match="tt:span">
<!-- do something else -->
    </xsl:template>

but when I do that the selector doesn't work.

  Which selector?  What doesn't work?  How?

  Regards,

--drkm























      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--