Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xslt / x-path problem

From: "Bart" <orion_@-------.-->
To: NULL
Date: 9/4/2005 12:07:00 PM
"Joris Gillis" <roac@p...> schreef in bericht 
news:op.swkudfexyf9v9r@n......
> Hallo Bart,
>
> Tempore 13:44:57, die Sunday 04 September 2005 AD, hinc in foro 
> {comp.text.xml} scripsit Bart <orion_@p...>:
>
>> I'm trying to transform an xml file to another xml file by using xslt.
>> for every child node, i need to do some transformations, except for the
>> first one, so I can't use a for-each construction.
>> Does anyone now the correct x-path expression or another way to work 
>> around
>> this problem?
>
> The problem could be solved with this:
>
> <xsl:for-each select="child[position() &gt; 1]" />
>
> or you could use the push style:
> Instead of using for-each, you would then use templates.
>
> <xsl:template match="child">
>  Some transformation
> </xsl:template>
>
> <xsl:template match="root/child[1]"/>
>
> The last template would make sure that the first child is ignored.
>
> regards,

Thanks!

Bart




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent