Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Transforming a Schema >Thread Next - Re: Transforming a Schema Re: Transforming a SchemaTo: NULL Date: 10/4/2006 3:24:00 PM 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 | |||
|
