|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Fwd: trouble with namespaces
Subject: Re: Fwd: trouble with namespaces
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Sat, 15 Feb 2003 15:33:01 -0500
|
Waah!
I just found this from google:
Xpaths like attribute names do not use the default namespace binding:
unprefixed QNames in XPath always refer to elements or attributes in no
namespace.
David
(This is a FAQ)
http://www.biglist.com/lists/xsl-list/archives/200207/msg00496.html
it is? I can't find it in the FAQ .. I think it may be the source of my
problem? I assumed that the default namespace would apply to everything
in the stylesheet, including xpaths.
So would I solve my problem like this:
<xsl:template match="mynms:form_textarea">
<b>SIMONHELLO</b>
</xsl:template>
?
simon
On Saturday, February 15, 2003, at 03:23 PM, S Woodside wrote:
Hi, I think this might be a problem with my XSLT rather than axkit.
Help?
Begin forwarded message:
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Fri Feb 14, 2003 2:38:50 PM America/Montreal
To: axkit-users@xxxxxxxxx
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@xxxxxxxxx
For additional commands, e-mail: axkit-users-help@xxxxxxxxx
---
www.simonwoodside.com
<http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
---
anti-spam: do not post this address publicly
www.simonwoodside.com -- 99% Devil, 1% Angel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|