xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] filtering


Subject: Re: [xsl] filtering
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 2 Nov 2004 16:13:41 +0000

Daniel,

I wrote:
> Since you know the element names in the header, I guess you can list
> the elements in the header. In which case, you can select the rows
> that you're interested in with:
>
>   row[not(column[position() = $header/AAA or
>                  position() = $header/BBB or
>                  position() = $header/CCC or
>                  position() = $header/DDD]
>                 [not(normalize-space())])]
>
> where $header is set with:
>
> <xsl:variable name="header" select="/root/header" />

Actually, without knowing the names of the elements in the header, you
can do:

  row[not(column[position() = $header/*]
                [not(normalize-space())])]

which is somewhat easier.
                
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor