Upon doing a XSL Transform to XML how do I remove white space from a Node's attribute or data?
Posted
by Randy
on Stack Overflow
See other posts from Stack Overflow
or by Randy
Published on 2010-04-14T15:56:19Z
Indexed on
2010/04/14
17:03 UTC
Read the original article
Hit count: 323
I have a part's list built out in XML and each part is labeled as such:
<division>
<parts>
<part number="123456 " drawing="123456 " cad="y">
<attribute>
<header>Header</header>
<list>2</list>
</attribute>
</part>
And I need to get the data behind the number and drawing attributes without the white space. I tried xsl:strip-space on the specific elements, and across the board, but that only strips the content in between the tags. I unfortunately have no access to the back-end that's producing the XML, so removing the spaces there doesn't look like an option.
© Stack Overflow or respective owner