[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Weird problem with doc()

Subject: Re: Weird problem with doc()
From: "Mark Giffin m1879@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 May 2022 20:01:41 -0000
Re:  Weird problem with doc()
That worked, thanks so much!

I am overriding code that I don't know much about, but it is converting and
merging XHTML, and indeed, at the top the stylesheet I'm overriding it has
this attribute:

xpath-default-namespace="http://www.w3.org/1999/xhtml"

So I pulled down from my shelf the big fat book by Mr. Kay[1] and looked up
this attribute. Page 480 has a nice description of this problem and a fix. So
I changed to the null namespace on my xsl:message element like this and now
XPath will read successfully from my non-namespaced external file:

 FTITLE:

(if that doesn't come through because of angle brackets, here it is without
them:)
xsl:message xpath-default-namespace="" FTITLE:B  xsl:value-of
select="$testxml//ishfield[@name='FTITLE']" /B  /xsl:message

Thanks very much!
Mark
B 
-----Original Message-----
From:
Sent: May 30, 2022 12:07 AM
To: xsl-list
Subject: Re:  Weird problem with doc()
B 
B 
B 
> On 30 May 2022, at 08:02, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx
wrote:
>
> I suspected a namespace issue, too, but the ishobjects XML seems to be in no
namespace, see for example
https://www.oxygenxml.com/forum/post55006.html#p55006
>
>
B 
So check for an xpath-default-namespace declaration, which would stop the code
working on no-namespace input.
B 
Michael Kay
Saxonica

B 

B 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.