RE: select v. select-elements

Subject: RE: select v. select-elements
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Mon, 9 Mar 1998 08:22:37 -0800
Ah! I think I see a couple of potential sources for confusion.
1)	The contents of <select-elements> is a single pattern, thus it can
have only a single <target-element>.
2)	Hierarchy may also be included as in the following example.  But
<select-elements> looks for <target-elements>s that are immediate children
of the current node, in general from="descendants" must be used to search
deeper down in the tree.

<select-elements from="descendants">
  <element type="chapter">
    <target-element type="title"/>

If from="children" (the default) is used, then this action would only return
results when inside a rule for "chapter", which makes <element/> redundant.

This is at least the way we understood the Proposal and implemented MSXSL.

Jonathan Marsh
phone   425.703.4591
 <mailto:jmarsh@xxxxxxxxxxxxx> jmarsh@xxxxxxxxxxxxx

		-----Original Message-----
		From:	Martin Bryan [mailto:mtbryan@xxxxxxxxxxxxxx]
		Sent:	Saturday, March 07, 1998 1:00 AM
		To:	xsl-list@xxxxxxxxxxxxxxxx
		Subject:	Re: select v. select-elements

		>Has any-one had any luck using either of the  above
elements in the MSXSL
		>processor? Select-elements seems to produce no result at
all( I cant even
		>generate an HTM file), inspite of the MS tutorial
championing it, and
		>just produces an empty drop down box. ( the select seems to
be passed on to
		>the HTML code unprocessed)

		<select-elements> does work, providing you only put a single
		<target-element> in each select-elements, e.g.
		      <target-element type="Message-Date"/>
		      <target-element type="Buyer-EAN"/>
		      <target-element type="Order-No"/>

		 XSL-List info and archive:

 XSL-List info and archive:

Current Thread