[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: RE: [xsl] XPath to match XML from Cocoon Request Generator
Subject: RE: RE: [xsl] XPath to match XML from Cocoon Request Generator From: "Passin, Tom" <tpassin@xxxxxxxxxxxx> Date: Thu, 15 May 2003 10:25:01 -0400 |
[Tim Heighes] > Thanks for the response Jarno but I still have the problem - > may be I have > misunderstood you - there is no x, so '/path/request/@target' > should work: You have to declare the "x" (or whatever) prefix and bind it to the namespace in question __in the stylesheet__ (usually in the xsl:stylesheet element). Then your select expressions like "/page/x:request/@target" will work as you desire. The point is that all the unprefixed elements in your source __do__ have a namespace - the default namespace. In the stylesheet you have to refer to that namespace somehow, and to do that you need to declare it __with a prefix__. It does not matter whether or not a prefix is used in the source document. What matters is whether a particular element in the source is bound a a specific namespace, with or without a prefix. You do not need to match the prefix in the stylesheet with the prefix in the source - only the corresponding namespace URIs have to match. Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: RE: [xsl] XPath to match XML fr, Tim Heighes | Thread | RE: [xsl] selecting the nearest pre, Jarno . Elovirta |
RE: [xsl] XSLT In the Build Process, Passin, Tom | Date | RE: [xsl] counter in nested for-eac, David Neary |
Month |