xsl-list
[Top] [All Lists]

Fwd: trouble with namespaces

2003-02-15 13:23:18
Hi, I think this might be a problem with my XSLT rather than axkit. Help?

Begin forwarded message:

From: S Woodside <sbwoodside(_at_)yahoo(_dot_)com>
Date: Fri Feb 14, 2003  2:38:50  PM America/Montreal
To: axkit-users(_at_)axkit(_dot_)org
Subject: trouble with namespaces

I'm having trouble getting namespaces to work in a pipeline with PIs. it works in a test but doesn't work with these files. I have a largish xslt rng2mid.xsl that contains this amongst many other templates:


  <xsl:template match="text">
    <form_textarea xmlns="mynms">
      FOOBAR
    </form_textarea>
  </xsl:template>

and then the next stylesheet (mid2html.xsl) in the pipeline is this:

-------------------------------------------------
<?xml version="1.0"?>

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  version="1.0"
  >

  <xsl:template match="form_textarea" xmlns="mynms">
    <b>SIMONHELLO</b>
  </xsl:template>

  <xsl:template match="*">
    <xsl:copy-of select="."/>
  </xsl:template>

</xsl:stylesheet>
-------------------------------------------------

I've got axtrace on, and FOOBAR gets placed into the output, but never gets transformed into SIMONHELLO. What's going on?

simon


---------------------------------------------------------------------
To unsubscribe, e-mail: axkit-users-unsubscribe(_at_)axkit(_dot_)org
For additional commands, e-mail: axkit-users-help(_at_)axkit(_dot_)org


---
www.simonwoodside.com

<http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org>


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list