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

Re: apply-templates issue

Subject: Re: apply-templates issue
From: footh <footh@xxxxxxxxx>
Date: Wed, 7 Sep 2005 08:23:23 -0700 (PDT)
footh
Thanks a ton for the input.

However, and I should've mentioned this in my original
post, the issue with this solution is that I'm not
guaranteed to have "MyFields" as a tag.  In fact,
everything below the "xml-to-input" tag will contain
varying tag names.

Not to mention, the xml can be many levels deep, and
I'd want to print all the levels.  Example:

<xml-to-input>
  <FormXYZTitle>
    <Name type="string"/>
    <Address>
      <Street type="string"/>
      <City type="string"/>
      <Country type="string" select="1">
        <option>A</option>
        etc...
      </Country>
    </Address>
  </FormXYZTitle>
</xml-to-input>

Would result in this:

FormXYZTitle
  Name [input box]
    Address
      Street [input box]
      City [input box]
      Country [select box]

--- Joris Gillis <roac@xxxxxxxxxx> wrote:

> Tempore 23:43:55, die 09/06/2005 AD, hinc in
> xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit footh
> <footh@xxxxxxxxx>:
> 
> > If I do that then the stylesheet will not iterate
> > through the entire xml doc.  It stops at the first
> > element.
> 
> Oh, yes, I forgot to mention that the match pattern
> of the middle template should be changed to
> 'MyFields/*'.
> 
> -- 
> Joris Gillis
> (http://users.telenet.be/root-jg/me.html)
> Gaudiam omnibus traderat W3C, nec vana fides
> 
> 



	
		
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

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.