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

Pushing the liquidity of templates?

Subject: Pushing the liquidity of templates?
From: Steve <subsume@xxxxxxxxx>
Date: Mon, 31 Jul 2006 16:17:10 -0400
 Pushing the liquidity of templates?
XSL 1.0

Let's save I have a template for an an address form which I call using
apply-templates mode="address" select="/"> and I pass it existing
address data which autofills text input values.

I can use the select statement to match either the XML being
transformed or a remote variable, and this is great. But let's say the
mailing address information is coming from the XML being transformed
and the telephone and fax information is coming from a variable.

I know I could just use with-param but I'm wondering if there is a way
to pass information implicitly ( match="/" ) but also pass explicitly
when the "/" doesn't contain the neccesary data.

A) Just give in and use with-param on everything.

B) A series of when/choose, testing whether //phone exists and
declaring it if it is empty.

C) Some super elegant way I am currently unaware of.

Thanks for readin',

-Steve

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.