Question
xpath equivalent of FOSI #CONTENT?
What is thexpath equivalent of FOSI #CONTENT? I need to save an element's #PCDATA and any tags. Not PIs, although FOSI probably would ignore them.
The SGML doc has the following. Note that and <brk> are singletons.
<title>Lorem ipsum<brk>dolor sit amet</title>
In the FOSI, precedingsibling is trying to save the <title> element's #CONTENT. The FOSI had the following, which worked until <brk> was added to the title:
<e-i-c gi="a">
>...
><att>
><fillval attname="following-sibling::title[1]/text()" attloc="#XPATH"fillcat="savetext" fillchar="conrule"/">
><charsubset>
><savetext textid="title.txt">
>...
>
>
When <brk> is added in the title, #PCDATA is captured up to but not including the <brk> tag.
Here is what I've tried, and the results:
following-sibling::title[1]/text() captures the content up to but not including the <brk> tag.
following-sibling::title[1]/node() ditto.
following-sibling::title[1] saves all the #PCDATA but not <brk>.
following-sibling::title ditto
following-sibling::title[1]/string() savesnothing.
Thanks for any ideas!
Suzanne Napoleon
www.FOSIexpert.com
"WYSIWYG is last-century technology!"
The SGML doc has the following. Note that and <brk> are singletons.
<title>Lorem ipsum<brk>dolor sit amet</title>
In the FOSI, precedingsibling is trying to save the <title> element's #CONTENT. The FOSI had the following, which worked until <brk> was added to the title:
<e-i-c gi="a">
>...
><att>
><fillval attname="following-sibling::title[1]/text()" attloc="#XPATH"fillcat="savetext" fillchar="conrule"/">
><charsubset>
><savetext textid="title.txt">
>...
>
>
When <brk> is added in the title, #PCDATA is captured up to but not including the <brk> tag.
Here is what I've tried, and the results:
following-sibling::title[1]/text() captures the content up to but not including the <brk> tag.
following-sibling::title[1]/node() ditto.
following-sibling::title[1] saves all the #PCDATA but not <brk>.
following-sibling::title ditto
following-sibling::title[1]/string() savesnothing.
Thanks for any ideas!
Suzanne Napoleon
www.FOSIexpert.com
"WYSIWYG is last-century technology!"

