Subject: Re: [xsl] Weird problem with doc() From: "Mark Giffin m1879@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 30 May 2022 20:01:41 -0000 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Weird problem with doc(), Mark Giffin m1879@xx | Thread | |
Re: [xsl] Weird problem with doc(), Michael Kay mike@xxx | Date | |
Month |