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

RE: More newbie questions

Subject: RE: More newbie questions
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 08:52:02 -0000
RE:  More newbie questions
> I tried assigning the value to a variable with
> xsl:variable, but the transformation fails. Any help
> appreciated...

Show us what you did, and we'll tell you where you went wrong.

You don't really need a variable here: you can get the value by navigation.
Depending where you are when you start, an expression like
ancestor::Response/preceding-sibling::Database/@DatabaseName should do the
trick.
> 
> 2- How would I create multiple CITY tags in the output
> when faced with a response like that in record # 2,
> where the value is Toronto, Montreal?  I don't want a
> comma separated value in the body of the tag.

XSLT 2.0 has a tokenize() function. The EXSLT library of extensions, and
also the FXSL library, have library routines to do the same job. If you want
to code it yourself in XSLT 1.0, you need to learn how to write recursive
templates.
> 
> 3- You may have noticed the escaped angle brackets for
> the HTML tags in the TEXT tag value. How do I have them
> display properly? I played with the output="html" and
> the escape attribute to no avail.

It would be better not to generate them like that. Check the options
available for extracting XML from your database.

Michael Kay
http://www.saxonica.com/

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.