View Single Post
Old 11-12-2012, 11:15 PM   PM User | #1
hermanpeckel
New to the CF scene

 
Join Date: Aug 2012
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
hermanpeckel is an unknown quantity at this point
XPath Referencing Integer

Folks,

I've had some success with my XPath forays, mostly thanks to people on this site. I thought I'd try my luck again!

I need to access the value of the WIDTH attribute of the TRIM BOX in -

Code:
<od:PageBoxInfo ID="Link6">
<Page>
<PageBox BoxType="MediaBox" Width="610" Height="1280"/>
<PageBox BoxType="CropBox" Width="592" Height="1280"/>
<PageBox BoxType="BleedBox" Width="593" Height="1280"/>
<PageBox BoxType="ArtBox" Width="594" Height="1280"/>
<PageBox BoxType="TrimBox" Width="595" Height="1280"/>
</Page>
</od:PageBoxInfo>
...and I have tried to do this using the XPath -

//od:PageBoxInfo/Page/PageBox[@BoxType="TrimBox"]/@Width

but to no avail. Does this XPath look correct?

I was thinking that the result may have been returned to me as a string rather than an integer, but I'm not sure. I'm no XPath master!

Any ideas?

Thanks in advance
HP
hermanpeckel is offline   Reply With Quote