Hi,
Is there any way of identifying the number of rows in a DITA table through Oxygen XML Author?
Thanks in advance,
Ann
Count of rows in a DITA table
Re: Count of rows in a DITA table
Hi Ann,
Maybe if the caret is inside the table, you could run an XPath using our XPath toolbar with something like:
Regards,
Radu
Maybe if the caret is inside the table, you could run an XPath using our XPath toolbar with something like:
Code: Select all
ancestor-or-self::table/count(.//row)
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 243
- Joined: Wed Jun 17, 2015 10:19 am
Re: Count of rows in a DITA table
Hi Radu,
That worked perfectly
thanks again,
Ann
That worked perfectly

thanks again,
Ann
-
- Posts: 243
- Joined: Wed Jun 17, 2015 10:19 am
Re: Count of rows in a DITA table
Is it possible to use something like CSS in Oxygen Author to automatically include this value in the DITA table title.
Regards,
Ann
Regards,
Ann
Re: Count of rows in a DITA table
Hi Ann,
Sure, you need to use a CSS selector like:
The oxy_xpath may induce editing performance problems though so please do not use it if you have very large topics.
More about using your custom editing CSS with DITA:
http://blog.oxygenxml.com/2016/10/custo ... iting.html
Regards,
Radu
Sure, you need to use a CSS selector like:
Code: Select all
*[class~="topic/table"] > *[class~="topic/title"]:after{
content: " [Number of rows]:" oxy_xpath('ancestor::table/count(.//row)');
}
More about using your custom editing CSS with DITA:
http://blog.oxygenxml.com/2016/10/custo ... iting.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 243
- Joined: Wed Jun 17, 2015 10:19 am
Re: Count of rows in a DITA table
Thank you for making these things so doable 
