|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] nodes() before and after a string delimiter
I have the following element (I'm using Saxon9 and XSLT2) <p>Crazing b Hairline cracking of the resin, giving it an opaque, <q>frosty</q> appearance.</p> I need to break it into two halves like the following based on the b (space en dash space) and only the first b (space en dash space). <p> <term>Crazing</term> <definition>Hairline cracking of the resin, giving it an opaque, <q>frosty</q> appearance.</definition> </p> Ibm used to breaking strings on delimiters and not worrying about any inline elements, but his time the inline elements matter. Is this a for-each-group solution? Break it into two for-each-groups and in the first test for a following-sibling[. = 'b'] and the second test for the following-sibling[. = 'b']. No need to apply templates at this point a copy-of will suffice. Any insight would be appreciated. Thanks Marijan (Mario) Madunic Publishing Specialist New Flyer Industries -------------------------------------------------------------------- Please consider the environment before printing this e-mail. CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.
|
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








