This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Antwort: Re: Indexing a fop generated document.


Sorry,

that's always the problem when handcrafting a example...

Snippet of the real one:
<xsl:element name="copyDownAttributes_elem">
...
<xsl:if 
test="count(//Foundation.Core.Generalization[Foundation.Core.Generalization.chil
d/Foundation.Core.GeneralizableElement/@xmi.idref=$classID]) &gt; 0">
<xsl:for-each 
select="//Foundation.Core.Generalization[Foundation.Core.Generalization.child/Fo
undation.Core.GeneralizableElement/@xmi.idref=$classID]">
		<xsl:call-template 
name="copyDownAttributes_elem"><xsl:with-param name="classID" 
select="Foundation.Core.Generalization.parent/Foundation.Core.GeneralizableEleme
nt/@xmi.idref"/></xsl:call-template>
	</xsl:for-each>
</xsl:if>

It only works if the if-test is applied _before_  for-each is performed.

any ideas?
Mario
-----------------------
Mario Jeckle
mario.jeckle@daimlerchrysler.com
DaimlerChrysler Corporate Research
DaimlerChrysler Forschungszentrum Ulm

URL: http://www.jeckle.de
-----------------------

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]