|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Selecting First Letter
Hi Jeff,
At 03:28 PM 9/30/2003, you wrote: The second match criteria you gave was able to pick off the first bit of text successfully. However (and this has been the crux of my issue) if I include a template that tries to copy-of the contents of the <content> node, the text selection template never gets matched. Yes, that's correct; you need to copy the element and attribute nodes with the stepwise identity transform that copies one node at a time, rather than copy-of. Ask again if you don't know the transform to which I am referring ... it's in the spec and appears frequently on this list. The second match will work, but it's not foolproof: if your source has <content><p><a href="gohere.com">Special</a> pages are on <i>Special</i> this month!</p></content> ...both the text node in the <a> and the one in the <i> will match... Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








