Click here to Skip to main content
16,006,531 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML Pin
Anonymous6-Apr-05 3:34
Anonymous6-Apr-05 3:34 
GeneralXML with Crystal Report Pin
Anonymous6-Apr-05 3:23
Anonymous6-Apr-05 3:23 
GeneralXML Table Hint Pin
Anonymous6-Apr-05 3:19
Anonymous6-Apr-05 3:19 
GeneralXSLT Pin
Daredeviljpr4-Apr-05 4:15
Daredeviljpr4-Apr-05 4:15 
GeneralRe: XSLT Pin
Christian Graus4-Apr-05 10:30
protectorChristian Graus4-Apr-05 10:30 
GeneralRe: XSLT Pin
Daredeviljpr4-Apr-05 19:18
Daredeviljpr4-Apr-05 19:18 
GeneralRe: XSLT Pin
Stuart Dootson4-Apr-05 21:56
professionalStuart Dootson4-Apr-05 21:56 
GeneralRe: XSLT Pin
Daredeviljpr5-Apr-05 5:13
Daredeviljpr5-Apr-05 5:13 
Thanks Christian Graus and Stuart Dootson for your support. I was able to get the line feed in my text file. Now there is another problem, the XML gets written in my text file after the transformed data. The xsl being used is given below.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:AES="urn:my-scripts" >

<xsl:output method="text"/>
<msxsl:script language="VB" implements-prefix="AES">

Function ReturnCharacter
return VbCrlf
End Function
</msxsl:script>

<xsl:template match="/">
<xsl:for-each select="NewDataSet/Table">
<xsl:value-of select="CustomerID"/>
<xsl:value-of select="CompanyName"/>
<xsl:value-of select="ContactName"/>
<xsl:value-of select="Country"/>
<xsl:value-of select="Phone"/>
<xsl:value-of select="AES:ReturnCharacter()"/>
</xsl:for-each>
</xsl:template>


</xsl:stylesheet>


<big><b>The OutPut is: </b></big> In the output you can see the xml appended at the last. I do not want thi sXML in my text document. What should I do.

TRAIHTrail's Head Gourmet ProvisionersHelvetius NagyUSA(206) 555-8257
VAFFEVaffeljernetPalle IbsenDenmark86 21 32 43
VICTEVictuailles en stockMary SaveleyFrance78.32.54.86
VINETVins et alcools ChevalierPaul HenriotFrance26.47.15.10
WANDKDie Wandernde KuhRita MüllerGermany0711-020361
WARTHWartian HerkkuPirkko KoskitaloFinland981-443655
WELLIWellington ImportadoraPaula ParenteBrazil(14) 555-8122
WHITCWhite Clover MarketsKarl JablonskiUSA(206) 555-4112
WILMKWilman KalaMatti KarttunenFinland90-224 8858
WOLZAWolski ZajazdZbyszek PiestrzeniewiczPoland(26) 642-7012
<NewDataSet><Table><CustomerID>ALFKI</CustomerID><CompanyName>Alfreds Futterkiste</CompanyName><ContactName>Maria Anders</ContactName><Country>Germany</Country><Phone>030-0074321</Phone></Table><Table><CustomerID>ANATR</CustomerID><CompanyName>Ana Trujillo Emparedados y helados</CompanyName><ContactName>Ana Trujillo</ContactName><Country>Mexico</Country><Phone>(5) 555-4729</Phone></Table><Table><CustomerID>ANTON</CustomerID><CompanyName>Antonio Moreno Taquería</CompanyName><ContactName>Antonio Moreno</ContactName><Country>Mexico</Country><Phone>(5) 555-3932</Phone></Table><Table><CustomerID>AROUT</CustomerID><CompanyName>Around the Horn</CompanyName><ContactName>Thomas Hardy</ContactName><Country>UK</Country><Phone>(171) 555-7788</Phone></Table><Table><CustomerID>BERGS</CustomerID><CompanyName>Berglunds snabbköp</CompanyName><ContactName>Christina Berglund</ContactName><Country>Sweden</Country><Phone>0921-12 34
GeneralRe: XSLT Pin
Daredeviljpr5-Apr-05 5:21
Daredeviljpr5-Apr-05 5:21 
GeneralRe: XSLT Pin
hp10811-May-05 4:20
hp10811-May-05 4:20 
GeneralQuestion Pin
reema13-Apr-05 21:27
reema13-Apr-05 21:27 
GeneralRe: Question Pin
Christian Graus4-Apr-05 10:29
protectorChristian Graus4-Apr-05 10:29 
Generaldataset+xml schema Pin
Dpriya3-Apr-05 18:43
Dpriya3-Apr-05 18:43 
GeneralUsing code behind with xml - xsl Pin
Maarook3-Apr-05 11:19
Maarook3-Apr-05 11:19 
GeneralRe: Using code behind with xml - xsl Pin
Christian Graus3-Apr-05 13:45
protectorChristian Graus3-Apr-05 13:45 
GeneralRe: Using code behind with xml - xsl Pin
Maarook3-Apr-05 20:20
Maarook3-Apr-05 20:20 
GeneralRe: Using code behind with xml - xsl Pin
Christian Graus4-Apr-05 10:27
protectorChristian Graus4-Apr-05 10:27 
Generalusing steganography techniques on XML doc Pin
sunshine_c2-Apr-05 13:52
sunshine_c2-Apr-05 13:52 
GeneralRe: using steganography techniques on XML doc Pin
DavidNohejl3-Apr-05 13:30
DavidNohejl3-Apr-05 13:30 
GeneralRe: using steganography techniques on XML doc Pin
sunshine_c4-Apr-05 22:05
sunshine_c4-Apr-05 22:05 
GeneralGenerate C++ classes from XML schema Pin
RoyceF1-Apr-05 7:30
RoyceF1-Apr-05 7:30 
GeneralXML Expert Advice Needed! XMLDOM VS XML Reader Pin
Ian Bowler31-Mar-05 5:35
Ian Bowler31-Mar-05 5:35 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
DavidNohejl31-Mar-05 10:52
DavidNohejl31-Mar-05 10:52 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
Ian Bowler1-Apr-05 6:11
Ian Bowler1-Apr-05 6:11 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
raman_learn10-Apr-05 18:44
raman_learn10-Apr-05 18:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.