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

Re: Normalizing Whitespace When Not Using "xsl:value-o

Subject: Re: Normalizing Whitespace When Not Using "xsl:value-of"
From: Nathan Tallman <ntallman@xxxxxxxxx>
Date: Thu, 21 Feb 2013 13:57:31 -0500
Re:  Normalizing Whitespace When Not Using "xsl:value-o
Thank you, Martin!

I had tried a few similar statements, but couldn't get it to work.
That's what I was looking for.

Many thanks,
Nathan

On Thu, Feb 21, 2013 at 1:08 PM, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> Nathan Tallman wrote:
>>
>> Is it possible to remove whitespace when inserting values without
>> using xsl:value-of?
>>
>> This is my template. It outputs HTML meta tags, but I can't figure out
>> how to normalize the space when not using xsl:value-of. I'm using xslt
>> 1.0.
>
>
>
>> <xsl:template name="metadata">
>> <meta http-equiv="Content-Type" name="dc.title"
>> content="{eadheader/filedesc/titlestmt/titleproper}"/>
>
>
> Well you can use any XPath expression in the attribute value template so
>
>
> <meta http-equiv="Content-Type" name="dc.title"
> content="{normalize-space(eadheader/filedesc/titlestmt/titleproper)}"/>
>
> might be all you are looking for.

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.