Article View: adobe.framemaker.sgml
Article #1491Re: Conditional formating based on child element
From: Carlos_Andreotti
Date: Sat, 22 Jul 2006 21:57
Date: Sat, 22 Jul 2006 21:57
32 lines
1814 bytes
1814 bytes
Lynne
Thank you for your help.
I had the same thought, to move the child element to the same level as you suggested but I�m not sure I can do it. I�m using a large XML file and this condition happens all the time.
Reading the Structure Application Developer�s Guide (page 135) I understand that I can declare a sibling this way:
Element (Container): p_content
Text format rules
If context is: {before p_variation}
Text range.
Use character format: sec_var
This routine does not work at all.
I guess the reason is because siblings must be at the same level, as you said
P_AREA
p_content
p_variation
if I move p_variation to the same level as p_content:
P_AREA
p_content
p_variation
it works fine.
Is it correct? Siblings are elements that must be at the same level?
Another way could be a routine at the p_variation that tests if there is the anscestor p_content and if true apply the char format to the ancestor p_content. Is there a way to apply a char/parag format to an ancestor?
Carlos
Technical Details
Message-ID:
<3bc0ff17.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!colt.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bc0ff17.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,df1e4d00f12a0903 X-Google-Attributes: gidfcc08,public X-Google-Language: ENGLISH,ASCII From: Carlos_Andreotti@adobeforums.com Newsgroups: adobe.framemaker.sgml Subject: Re: Conditional formating based on child element Message-ID: <3bc0ff17.1@webcrossing.la2eafNXanI> Date: Sat, 22 Jul 2006 14:57:16 -0700 References: <3bc0ff17.-1@webcrossing.la2eafNXanI> Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!colt.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing