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

Re: Transform all tags into attributes with some tags

Subject: Re: Transform all tags into attributes with some tags omitted
From: "Philipp Kursawe" <phil.kursawe@xxxxxxxxx>
Date: Fri, 16 May 2008 13:36:37 +0200
Re:  Transform all tags into attributes with some tags
wonderful! This works! How can I ommit empty tags? They should not be
converted to attributes.

On Fri, May 16, 2008 at 12:32 PM, Michael Ludwig <mlu@xxxxxxxxxxxxx> wrote:
> Michael Ludwig schrieb:
>> Philipp Kursawe schrieb:
>>> thanks Michael! Is there a way to format the tags to lowercase when
>>> they are attributes?
>> Yes:
>>    <xsl:attribute name="{
>>      translate( name(),
>>        'abcdefghijklmnopqrstuvwxyz' ) }">
> The above is for XSLT version 1.0. Note that in 2.0, there is a much
> bigger and better function library than in 1.0.
> http://www.w3.org/TR/xquery-operators/#func-lower-case
> If you have to use 1.0, there is EXSLT. If that's not enough, there is
> an escape to calling the XSL transform from Perl, PHP, or whatever, and
> make the host language functions available to the XSL transform.
> Michael

The Dude Abides!

Current Thread


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.
First Name
Last Name
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.