[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: selecting elements by attributes when working with

Subject: Re: selecting elements by attributes when working with namespaces
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 22 Jul 2008 10:16:34 +0200 (CEST)
Re:  selecting elements by attributes when working with
Joelle Tegwen wrote:

  Hi

>     <xsl:template match="tt:span[@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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.