[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Value of attribute starts-with or contains
I just learned about the -- very old and long-existing, but I never had to use it -- function starts-with() by browsing Michael Kays wonderful (and heavy) Reference ("The Book"). Am 05.06.2008 um 09:52 schrieb Michael M|ller-Hillebrand: I guess you want something like
Or if you want to match those special cells: <xsl:template match="entry[starts-with(@aid5:cellstyle, 'tbody_cell')]"> </xsl:template> In your original post you mention looking for ;contains or starts- with+. Since starts-with is a subset of contains, there is no use of checking both. You either want contains() or you want starts-with(). The above works with XSLT 1 or 2 for your markup: <table> <thead> <entry aid5:cellstyle=tbody_cell"> <para>xxx</para> </entry> <entry aid5:cellstyle=tbody_cell"> <para>xxx</para> </entry><entry aid5:cellstyle=tbody_cell_l"> <para>xxx</para> </entry><entry aid5:cellstyle=tbody_cell_l"> <para>xxx</para> </entry> </thead> </table> HTH, - Michael -- _______________________________________________________________ Michael M|ller-Hillebrand: Dokumentation Technology Adobe Certified Expert, FrameMaker Consulting and Training, FrameScript, XML/XSL, Unicode Blog [de]: http://cap-studio.de/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|