xsl-list
[Top] [All Lists]

Re: [xsl] xsl:copy- of and namespaces

2008-04-01 10:52:10
Thanks for your detailled answer! Now I figured out that my mistake was somewhere else.

regards,
Garvin
Garvin Riensche wrote:

how do I choose elements by their namespace?

  Assuming the following bindings are in scope in the stylesheet:

    xmlns:old="you-old-namespace-uri"
    xmlns:new="you-new-namespace-uri"

you can use the following XPath expression (or match patterns):

    old:elem (: select element named 'elem' in old ns :)
    new:elem (: select element named 'elem' in new ns :)
    old:*    (: select any element in old ns :)
    new:*    (: select any element in new ns :)
    *:elem   (: select element named 'elem' in any ns :)

  If you still have a problem, please post the relevant part of your
stylesheet and of your input, as well as the required output.

  Regards,

--drkm
























_____________________________________________________________________________ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>