XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
Jasbir LutheraSubject: With XSLT excluding nested elements/attributes without manually linking in Stylus
Author: Jasbir Luthera
Date: 27 Mar 2007 02:17 PM
In the following example, Line 1 - PARENT element has several more nested elements. It is a requirement that only subset of PARENT's nested elements be included in the process, see line 5, which includes all (*).

Is there a way to do this in Stylus other than linking respective source and destination elements manually (there are about 200 nested elements under various "parent" nodes in the document, and only one or two elements need to be excluded for each "parent" node!).

...
L1: <xsl:for-each select="$Sample/root/PARENT">
L2: <xsl:variable name="vSampleID" select="self::node()/PARENT_ID"/>
L3: <xsl:if test="$MyVariable=self::node()/PARENT_ID">
L4: <SAMPLE>
L5: <xsl:sequence select="self::node()/*"/>
...
L6: </SAMPLE>
...
L7: </xsl:if>
...
L8: </xsl:for-each>
...

-Jasbir

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.