Hi!
I'm using XML Rules in Indesign CS3 to find every table element in an xml file in Indesign. (The tables are imported as CALS and looks just like normal Indesign tables in the layout) I find the table element but when I try to attach a TableStyle "table" nothing happens. Does anyone know what im doing wrong? I know that I find the tables because the text "TEST" is inserted after each table.
here's my code:
Public Property Get name()
name = "ProcessDevice"
End Property
'XPath
Public Property Get xpath()
xpath = "//Table"
End Property
Public Function apply(myXMLElement, myRuleProcessor)
With myXMLElement
.InsertTextAsContent "TEST",InDesign.idXMLElementPosition.idAfterElement
.ApplyParagraphStyle ("table")
End With
apply = False
End Function
In advance thanks!
Pål Nesteby
PDC-Tangen
Norway
I'm using XML Rules in Indesign CS3 to find every table element in an xml file in Indesign. (The tables are imported as CALS and looks just like normal Indesign tables in the layout) I find the table element but when I try to attach a TableStyle "table" nothing happens. Does anyone know what im doing wrong? I know that I find the tables because the text "TEST" is inserted after each table.
here's my code:
Public Property Get name()
name = "ProcessDevice"
End Property
'XPath
Public Property Get xpath()
xpath = "//Table"
End Property
Public Function apply(myXMLElement, myRuleProcessor)
With myXMLElement
.InsertTextAsContent "TEST",InDesign.idXMLElementPosition.idAfterElement
.ApplyParagraphStyle ("table")
End With
apply = False
End Function
In advance thanks!
Pål Nesteby
PDC-Tangen
Norway