[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-2E2B43BFAE17 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi 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" http://www.webdna.us/page.dna?numero=3D289 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] %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). Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au --Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi

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"

http://www.webdna.us/p= age.dna?numero=3D289

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"
xmlns:xsl=3D"http://www.w3.org/1999/XSL/T= ransform">
<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
webdna@idfk.com.au




= --Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17-- Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Docs very incorrect (Stuart Tremain 2011)
--Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi 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" http://www.webdna.us/page.dna?numero=3D289 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] %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). Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au --Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi

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"

http://www.webdna.us/p= age.dna?numero=3D289

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"
xmlns:xsl=3D"http://www.w3.org/1999/XSL/T= ransform">
<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




= --Apple-Mail=_08DFD112-D5CB-4227-B0AF-2E2B43BFAE17-- Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[format 40s]text[/format] doesn't work (1997) [Webcat 2]Next (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) [WebDNA] Rewrite url (2013) Page-Execution-Timer...PHP vs WebDNA (2004) Pop-up menu (1998) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) [WebDNA] File Upload Issue (2012) Rhapsody? (1997) [WebDNA] listfiles bugs on linux (2009) WCf2 and nested tags (1997) requiring form fields? (2000) unable to launch acgi in WebCat (1997) Another question (1997) WebCat2.0 [format thousands .0f] no go (1997) Thanks ! (1997) mass mailing (1998) WebCatalog for Postcards ? (1997) WebCat2 - [format thousands] (1997) Duplicates (1998)