[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    RE: Dynamically replace argument for 'if' test
From:       "Amick, Eric" <Eric.Amick () mail ! house ! gov>
Date:       2009-03-16 12:26:43
Message-ID: 1C972EC37048FA409A9EE8B360613ECD0F3660 () HRM09 ! US ! House ! gov
[Download RAW message or body]

>You are also confused about the difference between XSLT instructions
and output
>elements and attributes.  The curly braces are needed in literal output

>attributes, because otherwise the processor will just output $foo
literally.  In 
>an XSLT instruction, such as <xsl:if>, the values are presumed to be
XPath 
>instructions, and $foo is interpreted. 

At risk of being pedantic, there are a few XSLT instructions where at
least some of the attribute values require curly braces if the attribute
value is an expression. Based on the syntax description (Appendix B) in
the spec, they are:

xsl:attribute
xsl:element
xsl:number
xsl:processing-instruction
xsl:sort


Eric Amick
Legislative Computer Systems
Office of the Clerk


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic