Subject: Re: [xsl] Find attribute of node derived from extended base of ComplexType From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 23 Jun 2004 19:06:32 -0400 |
I want to know wheter or not an ancester of a node has an attribute maxOccurs and the value of this attribute.
For nodes like the countries in the example below this is no problem with:
<xsl:when test="ancestor::*/@maxOccurs"> <xsl:value-of select="ancestor::*/@maxOccurs"/> </xsl:when>
I get the '3' of the node <xs:element name="ACountry" minOccurs="0" maxOccurs="3">.
The question now is: How do I find the attribute and get the 'unbounded' value of the element: <xs:element name="AnEntry" type="AnEntryType" maxOccurs="unbounded"/>
when the current node is i.e:
<xs:element name="ANumber"> of the extended base of the complexType "AnEntryType"?
Any Ideas?
-- Public training 3 days XSLT & 2 days XSL-FO: Phoenix,AZ 2004-08-23 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Find attribute of node derived from, xdevpj | Thread | Re: [xsl] a beginner question, Antonio Santos |
Find attribute of node derived from, xdevpj | Date | RE: [xsl] alternate backgrounds pro, David . Pawson |
Month |