[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Where will xpointer() apply in case of xml-stylesheet PI presence?

  • From: Hermann Stamm-Wilbrandt <STAMMW@de.ibm.com>
  • To: xml-dev@lists.xml.org
  • Date: Tue, 25 Jan 2011 13:37:57 +0100

Where will xpointer() apply in case of xml-stylesheet PI presence?

[1] defines several xpointer schemes:
xpointer, element, xpath1, xpath2, ...
In [2] Simon proposed a css selector scheme.
Browser support for these schemes seems not to exist currently.

[3] defines the fragment identifier of a URI.

Now if the URI references a XML file with a xml-stylesheet PI [4]
generating HTML as here:
http://stamm-wilbrandt.de/en/xsl-list/lines.xml#line=250

and opening this in a web browser it will display line 250
(with id "line=250") in the browser window.

So for generated HTML the fragment identifier references into
the data generated by the xml-stylesheet PI.


This file's (genxml.xml [5])
<?xml-stylesheet href="genxml.xsl" type="text/xsl"?>
<data>
  <row>
    <col>a</col>
    <col>b</col>
  </row>
  <row>
    <col>c</col>
    <col>d</col>
  </row>
</data>

xml-stylesheet PI references genxml.xsl [6] which generates XML document:
<generated>
  <line>1</line>
  <line>2</line>
  <line>3</line>
  <line>4</line>
</generated>


So my question now is what will be referenced by
"http://stamm-wilbrandt.de/en/xsl-list/genxml.xml#xpointer(/*/1)"
if opened in a web browser supporting xpointer() scheme?

Is it the first <row> of genxml.xml?
Or the first <line> of the generated XML?


[1] http://www.w3.org/2005/04/xpointer-schemes/
[2] http://lists.xml.org/archives/xml-dev/201101/msg00110.html
[3] http://tools.ietf.org/html/rfc3986#section-3.5
[4] http://stamm-wilbrandt.de/en/xsl-list/lines.xml#line=250
[5] http://stamm-wilbrandt.de/en/xsl-list/genxml.xml
[6] http://stamm-wilbrandt.de/en/xsl-list/genxml.xsl


Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
Fixpack team lead
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.