[XSL-LIST Mailing List Archive Home]
RE: [xsl] two namespaces and a position problem
Subject: RE: [xsl] two namespaces and a position problem|
From: April Fleming <AFleming@xxxxxxxxxxxx>
Date: Thu, 13 May 2004 12:05:21 -0400
Strange thing is ... Schema is the top element under the <xml> element,
however if I remove the // or replace it with /s:Schema it does not work.
That is why I used the //. Not sure of an alternative.
Not sure if it is because this code is inside of
and the Schema is in s namespace at top of xml doc.
Dixon Ticonderoga Company
407-829-9000 ext. 153
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Thursday, May 13, 2004 12:03 PM
Subject: Re: [xsl] two namespaces and a position problem
> please let me know if you see anything else wrong
since you asked:-)
Beware // there which means search the whole document, You may know
that s:Schema is always at the top, but XSLT doesn't and will search the
entire document looking for all the s:Schema elements it can find.
It's probably right at the top in which case you want / not //
but even if you have some wrappers round the Schema element it is worth
having a more explict xpath /x/y/z/s:Schema.
The LaTeX Companion
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit: