xsl-list
[Top] [All Lists]

RE: resolving namespace for attribute content with a QName

2005-09-23 02:10:09
You're talking about namespace resolvers - does that mean you are trying to
do this in Java, rather than in XPath/XSLT? In that case, it depends on the
object model you are using: DOM, XOM, JDOM? - and should probably be asked
on a different list. More info needed.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Ramkumar Menon [mailto:ramkumar(_dot_)menon(_at_)gmail(_dot_)com] 
Sent: 23 September 2005 09:53
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] resolving namespace for attribute content with a QName

Hi all,

  I was trying to parse a simple Document before invoking an XSLT
using  JAXP APIs.
  The XML has roughly the following structure
  ......
  <customer idName="tns:customerId"  
xmlns:tns="http://abcd.org";>Sample Customer</customer>
  .....

Here, i need to resolve the namespace for customerId.. I want to do
this in a parser independant way. How do i achieve this ? Basically,
how do i generically get the namespace resolver irrespective of a
parser impl ?

rgds,
menon



--
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
 A typical Macroprocessor

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>