[WebDNA] Docs very incorrect
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107510
interpreted = N
texte = --Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiHiI have been working through XSLT using what I know and have used in the =past.I was reading through the docs about "Append XML data to a database"http://www.webdna.us/page.dna?numero=3D289The example given is very wrong and will not work in a month of Sundays =....The [XSL var=3Dxsl_var1] should read as follows:[xsl var=3Dxsl_var1]
%5Breplace db=3Dmusic.db[url]&[/url]eqTITLEdata=3D[url]&[/url]append=3DT%5=D[!][/!]TITLE=3D[url]&[/url][!][/!]ARTIST=3D%5B/replace%5D[/xsl]There is no way that the current code could work because it does not =even give a value to append for TITLE or ARTIST, plus the XML Stylesheet =is not declared.The code in the docs is courtesy of SmithMicro (need I say any more).RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.au--Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiHi
I have been working through XSLT using what I =know and have used in the past.
I was reading =through the docs about "Append XML data to a =database"
The example given is =very wrong and will not work in a month of Sundays =....
The [XSL var=3Dxsl_var1] =should read as follows:
[xsl =var=3Dxsl_var1]
<xsl:stylesheet =version=3D"1.0"
<xsl:template =match=3D"/">
<xsl:for-each =select=3D"CATALOG/CD">
<xsl:sort select=3D"ARTIST"/>
%5Breplace =db=3Dmusic.db[url]&[/url]eqTITLEdata=3D[url]&[/url]append=3DT%5D[!=]
[/!]TITLE=3D<xsl:value-of select=3D"TITLE"/>[url]&[/url][!]
[/!]ARTIST=3D<xsl:value-of select=3D"ARTIST"/>%5B/replace%5D
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
[/xsl]
There is no way that the current code could work =because it does not even give a value to append for TITLE or ARTIST, =plus the XML Stylesheet is not declared.
The =code in the docs is courtesy of SmithMicro (need I say any =more).
Regards
Stuart =Tremain
IDFK Web Developments
AUSTRALIA
=div>
=--Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17--
Associated Messages, from the most recent to the oldest:
|
- [WebDNA] Docs very incorrect (Stuart Tremain 2011)
|
--Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiHiI have been working through XSLT using what I know and have used in the =past.I was reading through the docs about "Append XML data to a database"http://www.webdna.us/page.dna?numero=3D289The example given is very wrong and will not work in a month of Sundays =....The [XSL var=3Dxsl_var1] should read as follows:[xsl var=3Dxsl_var1]%5Breplace db=3Dmusic.db[url]&[/url]eqTITLEdata=3D[url]&[/url]append=3DT%5=D[!][/!]TITLE=3D[url]&[/url][!][/!]ARTIST=3D%5B/replace%5D[/xsl]There is no way that the current code could work because it does not =even give a value to append for TITLE or ARTIST, plus the XML Stylesheet =is not declared.The code in the docs is courtesy of SmithMicro (need I say any more).RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.au--Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiHi
I have been working through XSLT using what I =know and have used in the past.
I was reading =through the docs about "Append XML data to a =database"
The example given is =very wrong and will not work in a month of Sundays =....
The [XSL var=3Dxsl_var1] =should read as follows:
[xsl =var=3Dxsl_var1]
<xsl:stylesheet =version=3D"1.0"
<xsl:template =match=3D"/">
<xsl:for-each =select=3D"CATALOG/CD">
<xsl:sort select=3D"ARTIST"/>
%5Breplace =db=3Dmusic.db
[url]&[/url]eqTITLEdata=3D
[url]&[/url]append=3DT%5D[!=]
[/!]TITLE=3D<xsl:value-of select=3D"TITLE"/>
[url]&[/url][!] [/!]ARTIST=3D<xsl:value-of select=3D"ARTIST"/>%5B/replace%5D
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
[/xsl]
There is no way that the current code could work =because it does not even give a value to append for TITLE or ARTIST, =plus the XML Stylesheet is not declared.
The =code in the docs is courtesy of SmithMicro (need I say any =more).