[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|