Subject: [xsl] Re: using OR in a group-ending-with test From: Jeff Wilson <jeffrey@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 16 Aug 2011 02:43:05 -0700 |
<w:p><w:pPr><w:pStyle @w:val="Para"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="Para"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeatureType"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeatureTitle"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeaturePara"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeaturePara"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeatureSlug"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeatureList"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeatureList"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeatureList"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="FeaturePara"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="Para"></w:pPr></w:p> <w:p><w:pPr><w:pStyle @w:val="H1"></w:pPr></w:p>
<Para>...</Para> <Para>...</Para> <AnchoredFeature> <FeatureTitle>...</FeatureTitle> <FeaturePara>...</FeaturePara> <FeaturePara>...</FeaturePara> <img src="..."> <FeatureList>...</FeatureList> <FeatureList>...</FeatureList> <FeatureList>...</FeatureList> <FeaturePara>...</FeaturePara> </AnchoredFeature> <Para>...</Para> <H1>...</H1>
Good afternoon,
I'm trying to get a group to end with either of two conditions.
This is the current group test:
<xsl:for-each-group select="following-sibling::w:p/w:pPr/w:pStyle/ @w:val[starts-with(.,'Feature')]/ancestor::w:p" group-ending- with="w:p/w:pPr/w:pStyle/@w:val[not(starts-with(.,'Feature')) or 'FeatureType']">
The resulting xml runs includes every following-sibling in the document, so I assume (and may be incorrect) that the problem is with my ending-with test.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using OR in a group-endin, Brandon Ibach | Thread | Re: [xsl] Re: using OR in a group-e, Andrew Welch |
[xsl] math and dita 1.2, JSRawat | Date | Re: [xsl] Re: using OR in a group-e, Andrew Welch |
Month |