[DAS2] Re: Apollo and DAS/2 priorities

Andrew Dalke dalke at dalkescientific.com
Mon Feb 6 13:53:10 UTC 2006


Trying out Allen's XML

> <?xml version="1.0" standalone="no"?>
> <?xml-stylesheet type="text/xsl" href="/xsl/das.xsl"?>
> <!DOCTYPE DAS2DSN SYSTEM "http://www.biodas.org/dtd/das2dsn.dtd">
> <!-- this doesn't work and screws up the xsl     
> xmlns="http://www.biodas.org/ns/das/genome/2.00" -->
> <SOURCES
>       xmlns:xlink="http://www.w3.org/1999/xlink"
>       xml:base="http://radius.genomics.ctrl.ucla.edu/das/sequence/">
>

The xmlns is needed, else "SOURCES" is in the unnamed namespace,
rather than the DAS2 namespace.

It looks like your XSLT might not declare the namespace?  I
can't find the document to check, at either of

   http://das.biopackages.net/xsl/das.xsl
   http://radius.genomics.ctrl.ucla.edu/xsl/das.xsl

The page at
  http://www.xml.com/pub/a/2001/04/04/trxml/

describes a bit on how to include namespace in your xslt


> <!-- xq242.xsl: converts xq241.html into xq243.xml -->
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 xmlns:xlink="http://www.w3.org/1999/xlink"
>                 version="1.0">
> <xsl:output method="xml" omit-xml-declaration="yes"/>
>
> <xsl:template match="a">
>   <author xlink:type="simple" xlink:href="{@href}">
>     <xsl:apply-templates/></author>
> </xsl:template>
>
> <xsl:template match="p">
>   <para><xsl:apply-templates/></para>
> </xsl:template>
>
> </xsl:stylesheet>

Note the use of the "xlink:" namespace abbreviation.

					Andrew
					dalke at dalkescientific.com




More information about the DAS2 mailing list