XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 20th, 2004, 06:17 AM
Pastoortje Pastoortje is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 4 Pastoortje User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Writing text to a txt-doc using xslt

I have the following xml-doc:

<bibtex:file>
<bibtex:entry id="unopt">
<bibtex:unpublished>
<bibtex:author>BibTeXML team 20</bibtex:author>
<bibtex:title>Unpublished title 20</bibtex:title>
<bibtex:abstract>De samenvatting 20</bibtex:abstract>
</bibtex:unpublished>
</bibtex:entry>
...
</bibtex:file>

Now I have to write the content of bibtex:abstract to a new txt-file.

How do I do that and how do I give the file the name I want?

Thanks already.

Reply With Quote
  #2  
Old January 21st, 2004, 09:00 AM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 260 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 23 h 19 m 32 sec
Reputation Power: 6
The answer is that it depends on which XSLT parser tool
you are using.

You need to tell us what parser you are using.

- Finnbarr

Reply With Quote
  #3  
Old January 31st, 2004, 08:15 AM
Pastoortje Pastoortje is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 4 Pastoortje User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Another solution

Since I was allowed to use only true xslt-commands and no parser-specific commands I had to find a different way and I did!
I used xsl:document from version 1.1 and this works perfectly.
My code now looks like this:

<xsl:document href="documenten/{$ID}.txt" format="txt">
<xsl:value-of select="bibtex:abstract"/>
</xsl:document>

But thanks for your attempt to help me.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Writing text to a txt-doc using xslt


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway