[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: beginner problem with attlist
> Now it looks like: > > <xsl:for-each select="Dokument"> > <xsl:choose> > <xsl:when test=".[@Art='Rechnung']"> > > <xsl:for-each select="Dokument/Adresse"> The first <xsl:for-each> changes the current node to be a Dokument. Your second <xsl:for-each> will select the Adresse children of the Dokument children of the current node. Unless you have Dokument elements nested within Dokument elements, I suspect the second <xsl:for-each> should be <xsl:for-each select="Adresse">. Incidentally, the <xsl:when> here will work but is very contorted. Much simpler to write <xsl:when test="@Art='Rechnung'"> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|