[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: group-starting-with drops child text nodes - work
It's not clear what you're doing unless you post an example, but I'm
guessing it's the
'select' rather than the 'group-starting-with' that may be giving you
trouble.
Do you have select="*|text()" , or just select="*" ?
On Jun 15, 2010, at 1:40 PM, tom schmitter wrote:
Hello,
It seems that using the grouping method "group-starting-with" will
cause child text nodes of the element that starts each group to be
omitted from the resulting populations. eg, group-starting-
with="subtitle":
<subtitle/>
text
<b>bolded text</b>
more text
<subtitle/>
...
results in a population that looks like:
<subtitle/>
<b>bolded text</b>
I believe this is the expected behavior. If so, does anyone know of
a workaround? ie, a way to somehow preserve the child text?
For example, my first thought was to wrap the child text nodes in
<p>s before performing the grouping, but of course this caused
linebreaks to appear between the child text nodes and following
inline elements (in the example above, linebreaks would appear
between "text", "bolded text", and "more text").
My ultimate objective is create hierarchy (in the example, for
<subtitle> to be the parent of all nodes between each subtitle). Is
there a better way?
Thanks
Tim
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|