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(_dot_)Honnen(_at_)gmx(_dot_)de> 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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--