RE: XSL Transform

I agree with Merlin.  

My take on the correct schema construct would be

<schema targetNamespace='&dsig;' 
   xmlns:xsl=""> <!--  NEW  -->
  <element name='Transform'> 
    <complexType content='mixed'>
      <choice minOccurs='1' maxOccurs='unbounded'> 
        <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
        <element name='Xpath' type='string'/> 
        <element ref="xsl:stylesheet"/>    <!--  NEW  -->
      <attribute name='Algorithm' type='uriReference' use='required'/> 

where the <!--  NEW  --> comments indicate which lines have changed
in the XML Signature schema.

Thanks, Ed

-----Original Message-----
From: Merlin Hughes []
Sent: Tuesday, July 25, 2000 6:44 AM
Subject: XSL Transform

An XSL stylesheet is a well-formed XML document. Is there
a reason for it being stringified in an XSLT element?

   <element name='Transform'> 
         <element name='XSLT' type='string'/>

Would not a more useful expression be:

         <element ref='xsl:stylesheet' minOccurs='1' maxOccurs='1'>

Or however one expresses that as a schema. Or just put it
as an ANY element so the external schema/DTD is not required.

I looked in the archives and could not easily discover an
explanation for the current expression.


Received on Tuesday, 25 July 2000 09:18:41 UTC