Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Transforming a Schema [Thread Next] Re: Transforming a SchemaTo: NULL Date: 10/4/2006 11:38:00 AM Sorry. Maybe this is a little more clear. I only want to all select the FINAL child elements. Martin Honnen wrote: > smadden wrote: > > > I have a schema that I have written an XSLT for - in order to put it > > into a simple HTML table so the values of xs:element/@name can be seen. > > Is there a way in XSLT (certain key term or trick) to grab all end > > nodes, or must you keep drilling down in a repetitive manner, as in: > > > > <xsl:value-of select > > ="xs:element/xs:complexType/xs:sequence/xs:element/@name"/> > > <xsl:value-of select = "xs:element/xs:sequence/xs:element/@name"/> > > <xsl:value-of select > > ="xs:element/xs:complexType/xs:sequence/xs:element/xs:complexType/xs:sequence/xs:element/@name"/> > > > > Is there a certain way I could get these end nodes with one statement? > > I am not sure I understand what you are asking for. In terms of XPath > you can use e.g. > //xs:element > to select all xs:element elements at all levels or > //xs:element/@name > to select all name attributes of xs:element elements at all levels. > > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
