[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Move elements to preceding parent
At 2009-06-18 21:15 +0300, you wrote:
I tried to test the stylesheet with non-<p> elements inside body and I see they break the paragraph. Indeed they do ... your original specification implied paragraphs were adjacent. Input Example: No, because group-ending-with= and group-starting-with= work on consecutive members of the population. What should I change so the output will be: <?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"> <body> <p dir="rtl"> <span class="chapter">line1</span> I wouldn't want to try until I better understood the specification. Your need now breaks my top-down perspective of the content. Up until now all output information was in input order, and you are now asking for an arbitrary re-ordering of non-<p> elements with the <p> elements. Your image is being moved after "line 16" rather than the original order of being after "line 15". Perhaps Martin can exploit his axis-based approach to meet this new requirement. Nothing comes immediately to mind for my approach within the bounds of a voluntary effort. I'll post something if I think of it. Meanwhile, if you can provide more detail about your complete needs, that will help everyone interested in assisting you. . . . . . . . . . . . Ken -- Crane Softwrights Ltd. http://www.CraneSoftwrights.com/m/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/m/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|