RE: [xsl] document() function - unknown protocol

Subject: RE: [xsl] document() function - unknown protocol
From: cknell@xxxxxxxxxx
Date: Tue, 14 Oct 2003 13:35:58 -0400
The document() function takes one or two arguments. These are both of the type URI, as in "http://, ftp://";. So, seeing "arg:/", the document function perceives this as a new and unkown protocol, thus barfing up the error. So why are you putting this string in your template?
Charles Knell
cknell@xxxxxxxxxx - email

-----Original Message-----
From:     Jim Nachlin <jnachlin@xxxxxxxxxxx>
Sent:     Tue, 14 Oct 2003 13:21:55 -0400 (EDT)
To:       XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  [xsl] document() function - unknown protocol

Hi List,

I hope that this is an appropriate question for this list.

In trying to process an RDF foaf document [1] using the
stylesheet [2], the processor, which is members of the
javax.xml.transform package, gives an error which tells me that
the protocol "arg" is unknown in this statement:

<xsl:when test="document('arg:/ifp')/*/*/*">
  <xsl:variable name="ifp">
    <xsl:copy-of select="document('arg:/ifp')/*[1]/*[1]/*[1]"/>
  <xsl:apply-templates mode="output"  ...   />


<xsl:variable name="def"
 select="document('arg:/schema')/ns/schema[@ns=$ns]/rdf:RDF/*[@rdf:about=$this or @rdf:ID=$name or @ID=$name]"/>

and in several other places.

In looking over the documentation on document(), there is no
mention of a protocol "arg" or what this could possibly be.  It
seems that the stylesheet is trying to refer to one of the
namespace URIs.


Thanks in advance for helping an XSL noob.


 XSL-List info and archive:

 XSL-List info and archive:

Current Thread