Re: p:template question/issue - attributes in text content

The p:template note states at the end of 1. Introduction

'Where the expressions occur in attribute values, their string value
is used. Where they appear in text content, their node values are
used.'

though as this is a Note we can just change the document, but don't
you think this sentence is enough ?

You can still do string(/element/@someattr) to achieve what  you want.

Jim Fuller

On Fri, May 31, 2013 at 9:31 PM, Alex Milowski <alex@milowski.com> wrote:
> I just ran into a bit with attributes in text content via p:template.
>
> The note says:
>
> "In text content, an expression that selects nodes will cause those nodes to
> be copied into the template document."
>
> Yet, an attribute cannot be copied as such.
>
> In Calabash, I get an empty string.  I was expecting the node's string
> value.
>
> It appears we are rather silent on what should happen.
>
> --
> --Alex Milowski
> "The excellence of grammar as a guide is proportional to the paucity of the
> inflexions, i.e. to the degree of analysis effected by the language
> considered."
>
> Bertrand Russell in a footnote of Principles of Mathematics

Received on Saturday, 1 June 2013 10:36:54 UTC