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

RE: That didnt work either! RE: How to add a "less than" or

Subject: RE: That didnt work either! RE: How to add a "less than" or "grea ter than" sign?
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Thu, 13 Apr 2000 14:36:08 -0400
create less than in xsl
At 09:53 AM 4/13/2000 -0700, Selva, Francis wrote:
But how will you make it to display ur open and close tags.It will display
only the Type attribute name in ur output.right?.

which was in reply to:
> From: Wendell Piez [quoting Bob duCharme]
>
>  <xsl:element name="{@Type}">myvalue</xsl:element>
>

The xsl:element XSLT element is used to create an element (what you're referring to as "open and close tags") in the result tree. The difference between using xsl:element and simply placing the literal tags in the template is that the former allows you to "compute" the element name, based on conditions in the source tree or elsewhere. For the latter, you have to have a fixed string value as the element name.


The original poster was trying to do something like this:
     < <elementname> >content</ <elementname> >
which would cause his stylesheet to be not well-formed.

Bob's/Wendell's solution doesn't "display only the Type attribute name"; it displays the Type attribute *value*.

================================================================
John E. Simpson          | "After they make styrofoam, what do
http://www.flixml.org    | they ship it in?" (Steven Wright)
simpson@xxxxxxxxxxx      |



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.