How to use XSL:Key to get the following-sibling in XSLT 2.0
问题 I have XML with embedded rich text formatting, which looks roughly like this: <?xml version="1.0" encoding="UTF-8"?> <document> <richtext> <pardef/> <par><run>This is the </run><run>preamble.</run></par> <pardef list='bullet'/> <par><run>This is the </run><run>first bullet.</run></par> <par><run>This is the second </run><run>bullet.</run></par> </richtext> </document> I am attempting to generate the following HTML: <p>This is the preamble.</p> <ul> <li>This is the first bullet</li> <li>This