xsl-list
[Top] [All Lists]

Re: transforming from xml to text -- creates a blank line on the first line (new question regarding use of Output Text i InDesign)

2005-10-25 22:06:40
Thanks for the reply, it helped a lot! About the
namespaces those were automatically put in when i
create a new xsl file from xmlspy and i did not bother
to remove them.

I have another question, (for those familliar with
InDesgin Tags) why is it that after transforming my
xml to text i still have to open it in notepad and
save it before i can properly place it in InDesign. If
i dont resave it in notepad it just treat the output
text as normal text and it does not interpret the
InDesign Tags

--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:


sorry I see you did post your code.


xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:fn="http://www.w3.org/2005/02/xpath-functions";

xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes";


why have you declared these namespaces? Yout project
doesn't appear to
use xSL-Fo at all, and the fn and xsdt namespaces
seem suspect, the
current draft uses 2005/xpath-datatypes and the
previous one used
2005/04/xpath-datatypes, The one before did use /02
but in any case you
don't use these namespaces.

<xsl:template match="/">
<ASCII-WIN>

that generates a text node that starts
newline < a s C ...

If you don't want it to start with a newline, delete
the newline

<xsl:template match="/"><ASCII-WIN>


David


________________________________________________________________________
This e-mail has been scanned for all viruses by
Star. The
service is powered by MessageLabs. For more
information on a proactive
anti-virus service working around the clock, around
the globe, visit:
http://www.star.net.uk

________________________________________________________________________


--~------------------------------------------------------------------
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>
--~--





        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.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>
--~--



<Prev in Thread] Current Thread [Next in Thread>