Subject: Re: [xsl] Grouping - using Referenced Schema From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 16 Mar 2007 11:17:52 -0400 |
<xsl:stylesheet xmlns:xys="http://ABC/XYZ" xmlns:xyy="http://ABC/XYY" xmlns:qwe="http://ABC/QWE" ...
Cheers, Wendell
Hi,
I am new to XSLT. I have to group based on a node.
The source schema is a referenced Schema hence I am using Qualified Name in XPath.
In a normal scenario we will use like
<xsl:variable name="unique-countries" select="//cities/city[not(country=preceding-sibling::city/country)]/country" />
If using referenced schema then how to use the preceding sibling ???
<xsl:variable name="unique-countries" select="/*[local-name()='cities' and namespace-uri()='http://ABC/XYZ']/[local-name()='city' and namespace-uri()='http://ABC/XYY'][not(country=preceding-sibling::city/country)]/*[local-name()='country' and namespace-uri()='http://ABC/QWE']" />
Thanks in advance
-- Thanks, Karthik
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Grouping - using Referenced S, Karthik | Thread | [xsl] Variation on adjaceny list qu, Simon Shutter |
Re: [xsl] Sequential numbers in pur, Abel Braaksma | Date | Re: [xsl] Sequential numbers in pur, Dimitre Novatchev |
Month |