|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Effecient element "filtering" technique recommenda
Edward L. Knoll wrote:
We have some XML which effectively represents the contents of a table. Each row from the table is an element; each column in a row is a... XSL (fragments) w/ filtering:: Instead of selecting all elements and filtering out later, select
only the elements you want. Also, using a key might speed it up:
<xsl:key name="cols" match="/Table/Columns/*" use="name()"/>
<xsl:template select="/Table/Row">
<xsl:for-each select="*[key('cols',name())]">I also suggest to try other XML designs, like
<Table>
<Columns>
<Column>1</Column>
...
</Columns> <Row>
<Column id="1">...</Column>
...J.Pietschmann 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
|

Cart








