[Home] [By Thread] [By Date] [Recent Entries]
Thatbs not how the as attribute is supposed to work. It serves as as a
"treat as" assertion, not so much as a filter that drops nodes from a
sequence.
You can filter out unwanted whitespace-only text nodes in at least 3 ways: 1. by declaring xsl:strip-space for certain contexts 2. by defining "empty" templates in ac:image mode that match text()[not(normalize-space())] in certain contexts 3. or by doing something like this: <xsl:variable name="prelim" as="item()*"> <xsl:apply-templates mode="ac:image"/> </xsl:variable> <xsl:variable name="images"as="element()*" select="$prelim/self::*"/> Gerrit
Hi,
Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 GeschC$ftsfC<hrer / Managing Directors: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
|

Cart



