[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Restricting Element Order with Attribute Values

Subject: Re: Restricting Element Order with Attribute Values
From: Rudi Starcevic <tech@xxxxxxxxxxxx>
Date: Tue, 27 Sep 2005 00:33:55 +1000
Re:  Restricting Element Order with Attribute Values
David,

>Can you give a small
>example where you think that constraining the source order would save you a
>test?
>  
>

My current stylesheet is hard-coded with the order of webstats.

<xsl:template name="list_servers">
<a>
<xsl:attribute name="href">
    <xsl:value-of select="webstats[1]/@uri"/>
</xsl:attribute>
MRTG</a>

<a>
<xsl:attribute name="href">
    <xsl:value-of select="webstats[2]/@uri"/>
</xsl:attribute>
Bytes</a>

</xsl:template>

I'm investigating ways to make sure the webstat uri's do not
get mixed up. Hard coding output on unrestricted input order
seems like trouble if I don't add some error/order controls.

Sorry I understand xsd is off-topic, apologies, I'll keep to
the list topic from now on.

Thanks.
Regards,
Rudi.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.