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

Ann Marie Rubin (anrubin)

Subject: Ann Marie Rubin (anrubin)
From: "Ann Marie Rubin \(anrubin\)" <anrubin@xxxxxxxxx>
Date: Tue, 29 Aug 2006 09:12:04 -0700
ann marie rubin
Hi,

An xsl v1.0 stylesheet that does an xml-to-xml transformation contains
this code to ouput title text:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
...

<Component>
<xsl:attribute name="Name">
<xsl:value-of select="." />
</xsl:attribute>

...


The problem is that if the title text in the source xml file contains a
line feed or carriage return, the resulting xml contains #13 and #10
asciii characters.
This output xml is being parsed by another tool that breaks on these
characters.  How can I write the style sheet to include the title text,
but exclude line feed/carriage returns?



Thanks for your help.

Ann Marie

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.