Thank You so much. Your email was extremely helpful.
Cheers,
Chandra
----Original Message Follows----
From: sara(_dot_)mitchell(_at_)ps(_dot_)ge(_dot_)com
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] XSL Help!!
Date: Thu, 5 Dec 2002 18:42:50 -0500
MIME-Version: 1.0
Received: from mc5-f4.law1.hotmail.com ([65.54.252.11]) by
mc5-s20.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 5 Dec
2002 15:46:36 -0800
Received: from biglist.com ([216.223.208.41]) by mc5-f4.law1.hotmail.com
with Microsoft SMTPSVC(5.0.2195.5600); Thu, 5 Dec 2002 15:46:36 -0800
Received: from localhost (daemon(_at_)localhost)by biglist.com (8.8.8/8.8.5/BL-2)
with SMTP id SAA12571;Thu, 5 Dec 2002 18:38:06 -0500 (EST)
Received: by biglist.com (km_bm v1.13); Thu, 5 Dec 2002 18:38:02 -0500
Received: (from majordom(_at_)localhost)by biglist.com (8.8.8/8.8.5/BL-2) id
SAA12545;Thu, 5 Dec 2002 18:37:58 -0500 (EST)
Message-ID:
<4B571C0EB6C0D4119C4A00508BF907DA0918D678(_at_)nyschx19psge(_dot_)sch(_dot_)ge(_dot_)com>
X-Mailer: Internet Mail Service (5.5.2653.19)
Sender: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
X-MailLoop: 1
Return-Path: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
X-OriginalArrivalTime: 05 Dec 2002 23:46:36.0648 (UTC)
FILETIME=[8C97F680:01C29CB8]
Chandra, you might want to look through the
XSLT FAQ at http://www.dpawson.co.uk/. This
along with some of the books suggested at the site
can help a lot. But to answer your questions:
> When u say <xsl:apply-templates select="NAME"/>, Will all the
> NAME nodes
> under MEMBER be selected(say there are more than 1 NAME nodes under
> MEMBER)?
yes (but only NAME children, not descendants that are an lower
in the hierarchy)
>Also will the NAME template rule be applied to each
> one of the NAME
> nodes before the Phone node is selected?
yes
>
> 2)
> <xsl:variable name='signers'
> select=/legal_authenticator/person'/>
> <xsl:if test='$signers'>
> .....
> .....
> </xsl:if>
>
> What is the xsl:if tag doing here? Is it testing whether
> /legal_authenticator/person' exists??
yes
>
> 3)<person_name>
> <nm>
> <GIV V="Henry"/>
> <FAM V="Levin"/>
> </nm>
> <person_name.type_cd V="L" S="2d"/>
> </person_name>
>
> For the above xml, I see the following in the stylesheet
> <xsl:apply-templates
> select='person_name[person_name.type_cd/@V="L"]'/>
> What do the [] mean?? Why can't I just have / instead of the []??
[] is what the XSLT spec calls a predicate. It's a way of
specifying a criteria rather than pointing to a specific node.
So, what this select is saying (in English) is:
Select all person_name nodes from the current context that
contain a person_name.type_cd element with a V attribute
whose value is "L"
But what is selected is the person_name node and that's
what the XSLT engine looks for and how it selects the template
to apply to person_name. If you had this instead:
<xsl:apply-templates select='person_name/person_name.type_cd/@V="L"/>
what the select would say would be:
Select the V attribute on the person_name.type_cd element that is
a child of a person_name element that is a child of the current
context.
It selects the attribute.
Sara
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list