On Friday, Feb 14, 2003, at 19:38 Europe/London, S Woodside wrote:
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:This has to be:
<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">
<xsl:template match="m:form_textarea" xmlns:m="mynms">
XSLT doesn't take unprefixed element names to mean the default namespace as its too ambiguous (even though it works in XML::XPath and XPathScript because I like the effect of "least surprise").
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
