[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
select v
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"/>
  </element>
</select-elements>

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
		select
		>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.
		     <select-elements>
		      <target-element type="Message-Date"/>
		     </select-elements>
		     <select-elements>
		      <target-element type="Buyer-EAN"/>
		     </select-elements>
		     <select-elements>
		      <target-element type="Order-No"/>
		     </select-elements>



		 XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.