Article View: pl.comp.xml
Article #9549Re: Sterownik ODBC, ISAM do odczytu XML ? Czy jest cos takiego ?
From: Sws
Date: Tue, 20 Nov 2007 06:23
Date: Tue, 20 Nov 2007 06:23
43 lines
2535 bytes
2535 bytes
Witam
Wstawiajac samo <xsl:apply-templates/> wrzuca nadal puste linie dla innych
niz <n> znacznikow lub wogole nic nie ma:
----------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-2"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="ISO-8859-2"
omit-xml-declaration="yes" indent="no"/>
<xsl:strip-space elements="recepty"/>
<xsl:template match="lekarz">
<xsl:apply-templates>
<xsl:sort select="n"/>
</xsl:apply-templates>
</xsl:template>
</xsl:stylesheet>
-------------------------------------------------
Obrabiany plik:
-------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-2"?>
<recepty typ="S">
<swiad nazwa="GABINET" adres="xxxx"/>
<lekarz pr_zawod="1234" pesel="12345" imie_nazw="PRZYKLAD" il_rec="2000">
<n>12673290110100000179</n>
<n>12673290110100000272</n>
<n>12673290110100000375</n>
...
-------------------------------------------------
Stosujac instrukcje:
<xsl:strip-space elements="recepty"/>
zostaje mi tylko jedna pusta linia na pocztatku i na koncu.
Z powazaniem
Sws
Technical Details
Message-ID:
<fhtuij$d71$1@news2.task.gda.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mailReferences:
<fhc6ln$ci3$1@news2.task.gda.pl> <fhc9rb$3ev$1@atlantis.news.tpi.pl> <fhcajp$r56$1@news2.task.gda.pl> <fhcb7i$8cr$1@atlantis.news.tpi.pl> <fhcl74$c8q$1@news2.task.gda.pl> <fhcq6o$o39$1@nemesis.news.tpi.pl> <fhe328$qma$1@news2.task.gda.pl> <fheahr$ane$1@nemesis.news.tpi.pl> <fhh9jr$3pm$1@news2.task.gda.pl> <fhhlll$lo1$1@nemesis.news.tpi.pl> <fhr8lu$2r8$1@news2.task.gda.pl> <fhsqp9$olg$1@atlantis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail From: "Sws" <silos@poczta.onet.pl> Newsgroups: pl.comp.xml Subject: Re: Sterownik ODBC, ISAM do odczytu XML ? Czy jest cos takiego ? Date: Tue, 20 Nov 2007 07:23:48 +0100 Organization: CI TASK http://www.task.gda.pl/ Lines: 45 Message-ID: <fhtuij$d71$1@news2.task.gda.pl> References: <fhc6ln$ci3$1@news2.task.gda.pl> <fhc9rb$3ev$1@atlantis.news.tpi.pl> <fhcajp$r56$1@news2.task.gda.pl> <fhcb7i$8cr$1@atlantis.news.tpi.pl> <fhcl74$c8q$1@news2.task.gda.pl> <fhcq6o$o39$1@nemesis.news.tpi.pl> <fhe328$qma$1@news2.task.gda.pl> <fheahr$ane$1@nemesis.news.tpi.pl> <fhh9jr$3pm$1@news2.task.gda.pl> <fhhlll$lo1$1@nemesis.news.tpi.pl> <fhr8lu$2r8$1@news2.task.gda.pl> <fhsqp9$olg$1@atlantis.news.tpi.pl> NNTP-Posting-Host: hfi250.internetdsl.tpnet.pl X-Trace: news2.task.gda.pl 1195539859 13537 79.187.138.250 (20 Nov 2007 06:24:19 GMT) X-Complaints-To: abuse@news.task.gda.pl NNTP-Posting-Date: Tue, 20 Nov 2007 06:24:19 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit