"Mark Harburg" <[EMAIL PROTECTED]> writes:

> I'm trying to match an element in an XML that has a namespace, but with no 
> luck.  Here's what I tried:
> 
> -------- source xml --------
> <?xml version="1.0"?>
> <Workbook xmlns="aaa:bbb">
>       hi
> </Workbook>

Your example isn't that great...

There are a number of things broken here.

It is generally a bad idea to have the above XML with a colon.  I think it may
be invalid.  Or at least a bad idea.

Try 

<?xml version="1.0"?>
<Workbook xmlns="urn:aaa">
        hi
</Workbook>


<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns="urn:aaa">

   <xsl:template match="Workbook">

      <ws>
          <xsl:apply-templates/>
       </ws>

   </xsl:template>

</xsl:stylesheet>
 

btw... you will also need to declare the xsl namespace.

Kevin

-- 
Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - [EMAIL PROTECTED],  Web - http://relativity.yi.org/

I'm intercontinental when I eat french toast...
    - Beck 

Reply via email to