Subject: Re: [xsl] re-ordering nodes/partial sort From: Anton Triest <anton@xxxxxxxx> Date: Sun, 10 Oct 2004 22:05:29 +0200 |
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="urn:mine" extension-element-prefixes="my">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/> <xsl:strip-space elements="*"/>
<my:priorities> <my:p desc="Bed & Breakfast"/> <my:p desc="Bed & Breakfast (child)"/> <my:p desc="Half Board"/> <my:p desc="Half Board (child)"/> <my:p desc="Full Board"/> <my:p desc="Full Board (child)"/> </my:priorities>
<xsl:template match="supp"> <xsl:copy-of select="."/> </xsl:template>
Cheers, Anton
Hi David
Thanks for the answer(s). It is not a straighforward sort. Looking at in terms of priority:
Bed & Breakfast --> priority 1 Bed & Breakfast (child) --> priority 2 Half Board --> priority 3 Half Board (child) --> priority 4 Full Board --> priority 5 Full Board (child) --> priority 6
All other <supp> nodes are output before the priority ones above (in document order).
Kind regards.
-- Kevin
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] re-ordering nodes/partial, Kevin Bird | Thread | RE: [xsl] re-ordering nodes/partial, Kevin Bird |
[xsl] xsl:sequence produces error I, Kenneth Stephen | Date | Re: [xsl] xsl:sequence produces err, Jeni Tennison |
Month |