|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Re: How can i get line numbers for each result returned in XQueryHi,
I am able to get line numbers of the results which are instances of Nodeinfo. But for the results which are atomic values i am not able to retreive line numbers. How can i get line numbers of text content or atomic values. Also the results contain namespace decalartion for each element retrurned.Why does this occur. For example: <bvf:StockholdersEquityBeforeComprehensiveIncomeNetOfTax xmlns="http://www.xbrl.org/2003/instance" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:ap="http://xbrl.us/dis/ap/2009-01-31" xmlns:dei="http://xbrl.us/dei/2009-01-31" xmlns:us-gaap="http://xbrl.us/us-gaap/2009-01-31" xmlns:bvf="http://www.biovail.com/2008-12-31" id="DIM830" contextRef="I2008" unitRef="USD" decimals="-3">1038608000</bvf:StockholdersEquityBeforeComprehensiveIncomeNetOfTax> I get all the namespace declarations for every elements returned. Thanks Sweta On Tue, Oct 20, 2009 at 6:58 PM, <saxon-help-request@...> wrote: Send saxon-help mailing list submissions to ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
|
|
Re: How can i get line numbers for each result returned inXQueryAtomic values are not associated with any position in the
source document, so they do not have a line number. If you want to know where in
the document the atomic value came from, then you need to return the node rather
than its value.
When your query selects an element, it returns a reference to
that element, without any changes. One of the properties of an element is the
set of namespaces that are in-scope for that element. When you
serialize (display) the node, then the default serialization shows all the
in-scope namespaces. To get rid of them you need to make a modified copy of the
element, which can be expensive, so it really depends whether the issue is just
a cosmetic one, or whether your application really needs a copy of the element
without its namespaces.
(You
should also consider whether the source document really needs to declare all
these namespaces anyway. I think people sometimes declare every imaginable
namespace in every document just in case it's needed. That's not a practice I
would recommend.)
Regards,
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@... https://lists.sourceforge.net/lists/listinfo/saxon-help |
| Free embeddable forum powered by Nabble | Forum Help |